arcade-mcp/toolkits/datadog_api/arcade_datadog_api/wrapper_tools/CreateRole.json
jottakka f05560bbf4
[MOAR][DATADOG] Adding DataDog starter toolkit (+590) (#633)
Co-authored-by: Francisco Liberal <francisco@arcade.dev>
2025-10-20 15:49:48 -03:00

322 lines
15 KiB
JSON

{
"name": "CreateRole",
"fully_qualified_name": "DatadogApi.CreateRole@0.1.0",
"description": "Create a new role for your organization in Datadog.\n\nThis tool should be called when you need to create a new organizational role within the Datadog system. It returns details about the newly created role, helping to manage access and permissions for users.",
"toolkit": {
"name": "ArcadeDatadogApi",
"description": null,
"version": "0.1.0"
},
"input": {
"parameters": [
{
"name": "role_creation_data",
"required": true,
"description": "JSON data required for creating a role, including attributes such as name, created_at, modified_at, and relationships to permissions.",
"value_schema": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"data": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"attributes": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"created_at": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "Creation time of the role."
},
"modified_at": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "Time of last role modification."
},
"name": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "Name of the role."
}
},
"inner_properties": null,
"description": "Attributes of the created role."
},
"relationships": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"permissions": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"data": {
"val_type": "array",
"inner_val_type": "json",
"enum": null,
"properties": null,
"inner_properties": {
"id": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "ID of the permission."
},
"type": {
"val_type": "string",
"inner_val_type": null,
"enum": [
"permissions"
],
"properties": null,
"inner_properties": null,
"description": "Permissions resource type."
}
},
"description": "Relationships to permission objects."
}
},
"inner_properties": null,
"description": "Relationship to multiple permissions objects."
}
},
"inner_properties": null,
"description": "Relationships of the role object."
},
"type": {
"val_type": "string",
"inner_val_type": null,
"enum": [
"roles"
],
"properties": null,
"inner_properties": null,
"description": "Roles type."
}
},
"inner_properties": null,
"description": "Data related to the creation of a role."
}
},
"inner_properties": null,
"description": ""
},
"inferrable": true,
"http_endpoint_parameter_name": "requestBody"
}
]
},
"output": {
"description": "Response from the API endpoint 'CreateRole'.",
"available_modes": [
"value",
"error",
"null"
],
"value_schema": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
}
},
"requirements": {
"authorization": null,
"secrets": [
{
"key": "DATADOG_API_KEY"
},
{
"key": "DATADOG_APPLICATION_KEY"
},
{
"key": "DATADOG_BASE_URL"
}
],
"metadata": null
},
"deprecation_message": null,
"metadata": {
"object_type": "api_wrapper_tool",
"version": "1.1.0",
"description": "Tools that enable LLMs to interact directly with the Datadog API."
},
"http_endpoint": {
"metadata": {
"object_type": "http_endpoint",
"version": "1.2.0",
"description": ""
},
"url": "https://{datadog_base_url}/api/v2/roles",
"http_method": "POST",
"headers": {},
"parameters": [
{
"name": "requestBody",
"tool_parameter_name": "role_creation_data",
"description": "",
"value_schema": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"data": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"attributes": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"created_at": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "Creation time of the role."
},
"modified_at": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "Time of last role modification."
},
"name": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "Name of the role."
}
},
"inner_properties": null,
"description": "Attributes of the created role."
},
"relationships": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"permissions": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"data": {
"val_type": "array",
"inner_val_type": "json",
"enum": null,
"properties": null,
"inner_properties": {
"id": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "ID of the permission."
},
"type": {
"val_type": "string",
"inner_val_type": null,
"enum": [
"permissions"
],
"properties": null,
"inner_properties": null,
"description": "Permissions resource type."
}
},
"description": "Relationships to permission objects."
}
},
"inner_properties": null,
"description": "Relationship to multiple permissions objects."
}
},
"inner_properties": null,
"description": "Relationships of the role object."
},
"type": {
"val_type": "string",
"inner_val_type": null,
"enum": [
"roles"
],
"properties": null,
"inner_properties": null,
"description": "Roles type."
}
},
"inner_properties": null,
"description": "Data related to the creation of a role."
}
},
"inner_properties": null,
"description": ""
},
"accepted_as": "body",
"required": true,
"deprecated": false,
"default": null,
"documentation_urls": []
}
],
"documentation_urls": [],
"secrets": [
{
"arcade_key": "DATADOG_API_KEY",
"parameter_name": "DD-API-KEY",
"accepted_as": "header",
"formatted_value": null,
"description": "",
"is_auth_token": false
},
{
"arcade_key": "DATADOG_APPLICATION_KEY",
"parameter_name": "DD-APPLICATION-KEY",
"accepted_as": "header",
"formatted_value": null,
"description": "",
"is_auth_token": false
},
{
"arcade_key": "DATADOG_BASE_URL",
"parameter_name": "datadog_base_url",
"accepted_as": "path",
"formatted_value": null,
"description": "",
"is_auth_token": false
}
],
"request_body_spec": "{\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"description\": \"Create a role.\",\n \"properties\": {\n \"data\": {\n \"description\": \"Data related to the creation of a role.\",\n \"properties\": {\n \"attributes\": {\n \"description\": \"Attributes of the created role.\",\n \"properties\": {\n \"created_at\": {\n \"description\": \"Creation time of the role.\",\n \"format\": \"date-time\",\n \"readOnly\": true,\n \"type\": \"string\"\n },\n \"modified_at\": {\n \"description\": \"Time of last role modification.\",\n \"format\": \"date-time\",\n \"readOnly\": true,\n \"type\": \"string\"\n },\n \"name\": {\n \"description\": \"Name of the role.\",\n \"example\": \"developers\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"name\"\n ],\n \"type\": \"object\"\n },\n \"relationships\": {\n \"description\": \"Relationships of the role object.\",\n \"properties\": {\n \"permissions\": {\n \"description\": \"Relationship to multiple permissions objects.\",\n \"properties\": {\n \"data\": {\n \"description\": \"Relationships to permission objects.\",\n \"items\": {\n \"description\": \"Relationship to permission object.\",\n \"properties\": {\n \"id\": {\n \"description\": \"ID of the permission.\",\n \"type\": \"string\"\n },\n \"type\": {\n \"default\": \"permissions\",\n \"description\": \"Permissions resource type.\",\n \"enum\": [\n \"permissions\"\n ],\n \"example\": \"permissions\",\n \"type\": \"string\",\n \"x-enum-varnames\": [\n \"PERMISSIONS\"\n ]\n }\n },\n \"type\": \"object\"\n },\n \"type\": \"array\"\n }\n },\n \"type\": \"object\"\n }\n },\n \"type\": \"object\"\n },\n \"type\": {\n \"default\": \"roles\",\n \"description\": \"Roles type.\",\n \"enum\": [\n \"roles\"\n ],\n \"example\": \"roles\",\n \"type\": \"string\",\n \"x-enum-varnames\": [\n \"ROLES\"\n ]\n }\n },\n \"required\": [\n \"attributes\"\n ],\n \"type\": \"object\"\n }\n },\n \"required\": [\n \"data\"\n ],\n \"type\": \"object\"\n }\n }\n },\n \"required\": true\n}",
"use_request_body_schema_mode": true,
"validate_request_body_schema": true
}
}