graphql_request
Send GraphQL queries or mutations to any endpoint with automatic credential and variable injection, simplifying authenticated API calls and testing.
Instructions
Send a GraphQL query/mutation to a GraphQL endpoint. Automatically injects credentials and variables.
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": {
"url": "<url>",
"query": "<query>"
},
"name": "graphql_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | GraphQL endpoint URL (absolute or relative path) | |
| query | Yes | GraphQL query or mutation string | |
| headers | No | Additional request headers | |
| timeout | No | ||
| variables | No | GraphQL variables object (optional) | |
| operationName | No | GraphQL operation name (optional) |