arcade-mcp/toolkits/datadog_api/arcade_datadog_api/wrapper_tools/EditRestrictionQuery.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

196 lines
7.1 KiB
JSON

{
"name": "EditRestrictionQuery",
"fully_qualified_name": "DatadogApi.EditRestrictionQuery@0.1.0",
"description": "Edit an existing restriction query in Datadog.\n\nUse this tool to modify restriction queries in Datadog's log configuration. Call this when you need to update specific restriction parameters for log queries.",
"toolkit": {
"name": "ArcadeDatadogApi",
"description": null,
"version": "0.1.0"
},
"input": {
"parameters": [
{
"name": "restriction_query_id",
"required": true,
"description": "The ID of the restriction query to be edited.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The ID of the restriction query."
},
"inferrable": true,
"http_endpoint_parameter_name": "restriction_query_id"
},
{
"name": "restriction_query_string",
"required": false,
"description": "The restriction query string to update for the restriction query in Datadog.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The restriction query."
},
"inferrable": true,
"http_endpoint_parameter_name": "data.attributes.restriction_query"
},
{
"name": "restriction_query_resource_type",
"required": false,
"description": "The type of restriction query resource. Must be 'logs_restriction_queries'.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": [
"logs_restriction_queries"
],
"properties": null,
"inner_properties": null,
"description": "Restriction query resource type."
},
"inferrable": true,
"http_endpoint_parameter_name": "data.type"
}
]
},
"output": {
"description": "Response from the API endpoint 'UpdateRestrictionQuery'.",
"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/logs/config/restriction_queries/{restriction_query_id}",
"http_method": "PATCH",
"headers": {},
"parameters": [
{
"name": "restriction_query_id",
"tool_parameter_name": "restriction_query_id",
"description": "The ID of the restriction query.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The ID of the restriction query."
},
"accepted_as": "path",
"required": true,
"deprecated": false,
"default": null,
"documentation_urls": []
},
{
"name": "data.attributes.restriction_query",
"tool_parameter_name": "restriction_query_string",
"description": "The restriction query.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The restriction query."
},
"accepted_as": "body",
"required": false,
"deprecated": false,
"default": null,
"documentation_urls": []
},
{
"name": "data.type",
"tool_parameter_name": "restriction_query_resource_type",
"description": "Restriction query resource type.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": [
"logs_restriction_queries"
],
"properties": null,
"inner_properties": null,
"description": "Restriction query resource type."
},
"accepted_as": "body",
"required": false,
"deprecated": false,
"default": "logs_restriction_queries",
"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\": \"Update a restriction query.\",\n \"properties\": {\n \"data\": {\n \"description\": \"Data related to the update of a restriction query.\",\n \"properties\": {\n \"attributes\": {\n \"description\": \"Attributes of the edited restriction query.\",\n \"properties\": {\n \"restriction_query\": {\n \"description\": \"The restriction query.\",\n \"example\": \"env:sandbox\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\"\n },\n \"type\": {\n \"default\": \"logs_restriction_queries\",\n \"description\": \"Restriction query resource type.\",\n \"enum\": [\n \"logs_restriction_queries\"\n ],\n \"example\": \"logs_restriction_queries\",\n \"type\": \"string\",\n \"x-enum-varnames\": [\n \"LOGS_RESTRICTION_QUERIES\"\n ]\n }\n },\n \"type\": \"object\"\n }\n },\n \"type\": \"object\"\n }\n }\n },\n \"required\": true\n}",
"use_request_body_schema_mode": false,
"validate_request_body_schema": false
}
}