Skip to main content
Glama

graphql_query

Send GraphQL queries or mutations to an endpoint, including variables, headers, and operation names, to test API requests and inspect responses.

Instructions

Send a GraphQL query or mutation to an endpoint. Supports variables and operation names.

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_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
queryYesGraphQL query or mutation string
headersNo
confirmedNoSet to true to confirm sending to an external URL after reviewing it
variablesNo
operation_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With zero annotations, the description carries the full disclosure burden and omits key traits: this performs an external network call, mutations have side effects, auth typically flows through `headers`, and a `confirmed` acknowledgement gates external sends. Only the bare capability is stated, so the agent must infer risk and prerequisites from the schema alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the core action and followed by the supported features. No filler, though the second sentence could have carried more useful detail for the same word count.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter tool that makes external network requests and can mutate remote state, with no output schema and no annotations, the description is thin. It should explain the URL/header/confirmation flow and the read-vs-mutation distinction; those are the details an agent most needs before invoking it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 33%, so the description should compensate but largely does not. It echoes `variables` and `operation_name` (already named in the schema) while leaving `url`, `headers`, and the external-send/confirmation semantics of `confirmed` without added explanation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource: 'Send a GraphQL query or mutation to an endpoint', and states the two supported capabilities (variables, operation names). It does not distinguish itself from siblings such as graphql_introspect or graphql_format, but purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus alternatives, nor when not to use it. Nothing indicates that an endpoint URL must be reachable or that a confirmation step precedes external sends, even though the schema contains a `confirmed` flag implying exactly that workflow.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.