execute_query
Run read-only GraphQL queries against an endpoint. Supports variables, authentication, and operation selection.
Instructions
Execute a read-only GraphQL query against the endpoint. Only query operations are allowed.
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": "execute_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | GraphQL query document string | |
| endpoint | No | GraphQL endpoint URL (default: http://localhost:5555/graphql) | |
| password | No | Password for basic authentication (optional) | |
| username | No | Username for basic authentication (optional) | |
| variables | No | Variables for the GraphQL operation (optional) | |
| bearer_token | No | Bearer token for authentication (optional) | |
| operation_name | No | Operation name if document contains multiple operations (optional) |