Skip to main content
Glama
friendlygeorge

GraphQL MCP Server

execute_mutation

Execute a GraphQL mutation by providing a raw mutation string and optional variables to modify server data.

Instructions

Send a raw GraphQL mutation string to the endpoint. Functionally identical to execute_query — use whichever is more semantically clear. Not idempotent: mutations can have side effects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mutationYesGraphQL mutation string. Example: 'mutation { updateUser(id: 42, input: {...}) { id } }'
variablesNoVariables to pass alongside the mutation. Use $varName in the mutation to reference them.
operation_nameNoIf the mutation contains multiple operations, the name of the one to execute.
Behavior4/5

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

The description adds the important behavioral trait that mutations are not idempotent and can have side effects, which goes beyond the annotations (idempotentHint: false). This is valuable context for safe usage, though it does not cover other aspects like authentication or rate limits.

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?

The description is concise with two sentences: the first states the primary action; the second provides semantic guidance and a warning about side effects. No filler or unnecessary detail.

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

Completeness3/5

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

While the description is adequate for a straightforward tool with high schema coverage, it lacks details on return values or error behavior. Since no output schema exists, some description of the response would improve completeness, but the openWorldHint suggests variability.

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 coverage is 100%, so the baseline is 3. The description does not add any new meaning to the parameters beyond their schema descriptions; it merely restates that it sends a mutation string.

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

Purpose5/5

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

The description clearly states it sends a raw GraphQL mutation string. It distinguishes from sibling tools like execute_query by noting functional identity and semantic clarity, and from execute_typed_mutation by being 'raw'. The verb 'send' and resource 'mutation string' are specific.

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

Usage Guidelines4/5

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

The description provides guidance to use the tool when semantically appropriate, mentioning it's identical to execute_query. However, it does not explicitly exclude cases where the typed variant should be used, nor does it specify prerequisites or when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/friendlygeorge/graphql-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server