query-graphql
Perform GraphQL queries and mutations on a federated system, with support for variables and custom headers. Returns execution results or errors.
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. | |
| variables | No | JSON string of variables for the operation. | |
| headers | No | JSON string of extra HTTP headers for the request. |