Skip to main content
Glama

vex_query

Run raw GraphQL queries against the Vendure Admin API, with optional environment and variables, to fetch or mutate store data.

Instructions

Execute a raw GraphQL query.

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": "vex_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoTarget env name (default: VEX_ENV, else active).
queryYesGraphQL query string
variablesNoVariables for the GraphQL query

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.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 and delivers almost nothing: no statement about whether this is read-only, whether mutations are rejected, what auth or environment scoping applies, or how errors and partial results surface. The only behavioral hint is the word "query," which implicitly suggests reads but is never confirmed.

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 sentence with no padding and the key concept front-loaded. It is efficient, though the brevity borders on under-specification for a generic escape-hatch tool rather than being a model of concise clarity.

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?

This is a broad raw-query escape hatch exposing the entire GraphQL surface, with no annotations and no output schema, so the description is the only place behavioral expectations could live. It says nothing about mutation restrictions, fragments reuse, or result shape, leaving significant gaps for a tool of this scope.

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 all three parameters (query, variables, env) are already documented, including the env fallback to VEX_ENV/active. The description adds no meaning beyond the schema, 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?

"Execute a raw GraphQL query" names a specific verb (execute) and resource (raw GraphQL query), which distinguishes it from schema-introspection or structured helpers like vex_orders. It does not, however, distinguish it from vex_mutate or vex_operations, so the agent must infer the boundary itself.

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 raw queries versus the structured siblings (vex_orders, vex_customers, etc.) or versus vex_mutate. Nothing states whether mutations are permitted through this tool or must go through vex_mutate.

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