Skip to main content
Glama

Execute a GraphQL query

execute_graphql
Read-onlyIdempotent

Send a GraphQL query with optional variables and headers to a public http or https endpoint on port 80 or 443 and return the response data or errors. Local, private, and internal addresses are refused.

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": {
      "endpoint": "<endpoint>",
      "query": "<query>"
    },
    "name": "execute_graphql"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
headersNo
endpointYes
timeoutMsNo
variablesNo

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
errorsNo
statusYes
durationMsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint and idempotentHint, so the safety profile is covered. The description adds non-obvious behavioral context beyond the annotations: a network-policy constraint (only public http/https, ports 80/443, private/local addresses refused) and the shape of the outcome ('response data or errors'). It does not mention default/timeout behavior or failure modes such as HTTP error handling.

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

Conciseness5/5

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

A single dense sentence with the core action first, the parameter scope second, and the endpoint restriction last. No filler, no repetition of the title, and every clause carries information the agent needs.

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

Completeness4/5

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

An output schema exists, so return values need not be spelled out, and the annotations cover the safety profile. What remains is a modest gap around the undocumented timeout parameter and no discussion of error or failure behavior; otherwise the description is sufficient to call the tool correctly.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must carry parameter meaning, and it does for most: 'query', optional 'variables' and 'headers' are named, and 'endpoint' is semantically constrained to a public http/https URI on port 80 or 443. Only 'timeoutMs' goes unmentioned, so a small gap remains against the five-parameter schema.

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?

States a specific verb and resource ('Send a GraphQL query') plus the result ('return the response data or errors'), so an agent knows exactly what operation this performs and what comes back. It is clearly distinguishable from siblings like query_jsonpath or check_http_headers by naming GraphQL explicitly, though it never names an alternative tool.

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

Usage Guidelines3/5

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

Usage context is implied by 'Send a GraphQL query' and the description gives an important scope restriction (public http/https endpoints on port 80/443 only; local/private/internal refused), which effectively rules out classes of endpoints. However there is no explicit when-to-use vs. when-to-use-another-tool guidance, so the agent must infer that this is the tool for GraphQL versus the other HTTP/query siblings.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.