Skip to main content
Glama

vex_mutate

Execute a raw GraphQL mutation against the Vendure Admin API, with optional variables and Upload-scalar file uploads mapped from local paths to dotted variable keys.

Instructions

Execute a raw GraphQL mutation. Supports Upload-scalar file uploads via files.

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": {
      "mutation": "<mutation>"
    },
    "name": "vex_mutate"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoTarget env name (default: VEX_ENV, else active).
filesNoFor Upload-scalar variables: map of dotted variable path to local file path, e.g. {"input.0.file": "./logo.png"}.
mutationYesGraphQL mutation string
variablesNoVariables for the GraphQL mutation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and does not meet it. It never states that mutations write/modify data, that operations may be irreversible, what error behavior looks like (GraphQL errors vs HTTP errors), or how results are returned. The only behavioral detail given is the Upload-scalar support, which the schema already documents.

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?

Two short sentences, front-loaded with the core action and followed by the one non-obvious capability. No filler or redundant restatement of the tool name.

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?

For a raw GraphQL execution tool with no output schema and no annotations, an agent still lacks information about response shape, error handling, and whether variable coercion or fragments are required. The schema covers inputs well, but the description leaves non-trivial behavioral gaps for a mutation tool.

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 env, files, mutation, and variables are already described in the input schema. The description's mention of `files` for Upload-scalar uploads restates schema content rather than adding new meaning, so the baseline 3 applies.

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: 'Execute a raw GraphQL mutation.' The contrast with the sibling vex_query is inferable from the word 'mutation' alone, but the description never names or explicitly distinguishes it, so it lands just below the top band.

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?

No guidance on when to use this versus vex_query or the typed resource tools (vex_orders, vex_products, etc.). There is no mention of prerequisites such as a valid schema or env selection, and no warning about when not to use a raw mutation.

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