graphql_query
Execute GraphQL queries against any endpoint, with variables and custom headers, using the default or a specified URL.
Instructions
Execute GraphQL queries using either a specified endpoint or the default endpoint configured during installation
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "graphql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | No | GraphQL endpoint URL (can be omitted to use default) | |
| query | Yes | GraphQL query to execute | |
| variables | No | Variables to use with the query (JSON object) | |
| headers | No | Additional headers to include in the request (will be merged with default headers) | |
| timeout | No | Request timeout in milliseconds |