Skip to main content
Glama
GraphQL MCP Server

GraphQL MCP Server

graphql_execute

Execute GraphQL queries and mutations against a configured endpoint, with optional variables, to retrieve or modify data from a GraphQL API.

Instructions

Execute GraphQL queries and mutations against the configured endpoint

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

Input Schema

NameRequiredDescriptionDefault
queryYesThe GraphQL query or mutation to execute
variablesNoVariables to pass to the GraphQL query/mutation (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It never states that mutations can be destructive or irreversible, what permissions/auth the configured endpoint requires, how errors or partial failures are surfaced, or whether there are rate limits or payload constraints. The only added context is that the endpoint is pre-configured rather than passed per call.

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?

A single front-loaded sentence with zero filler, so structure is clean. Its brevity borders on under-specification rather than pure conciseness, which keeps it from a 5.

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 tool that can run arbitrary mutations against a live endpoint, with no annotations and no output schema, the description should say more about side effects, error behavior, and result shape. With a nested-object variables parameter, the absence of any binding guidance leaves real gaps.

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

Parameters3/5

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

Schema description coverage is 100%, so both parameters are already documented in the input schema, and the description adds nothing beyond it. Baseline 3 is appropriate; it does not explain variable typing or how variables bind into the query string.

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 ("Execute") and resource ("GraphQL queries and mutations") plus the target ("the configured endpoint"), which is enough to separate it from graphql_introspect in practice. It stops short of explicitly contrasting with the sibling, so it lands at 4 rather than 5.

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 graphql_introspect, no advice to introspect the schema first, and no note about when a mutation (as opposed to a query) is appropriate. The agent must infer all routing decisions from the name alone.

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

Deploy Server

Other Tools