query-graphql
Execute GraphQL queries and mutations against a federated system, with support for variables and custom headers.
Instructions
Execute GraphQL operations (queries and mutations) against the federated system. WARNING: This tool performs remote operations. 'Mutation' operations will modify persistent state; execute these only when a state change is intended. Prerequisites: Verify schema structure using 'introspect-schema' before executing complex queries. Security: Inherits environment-based authentication. Returns: A JSON object containing the execution result ('data') or a list of 'errors' in case of failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The GraphQL query or mutation string. Example: 'query { guilds { id name } }'. | |
| headers | No | JSON stringified object of extra HTTP headers for the request. | |
| variables | No | JSON stringified object of variables. Example: '{"id": "123"}'. |