Skip to main content
Glama

vex_schema

Inspect Vendure Admin GraphQL schema details to discover types, operations, custom fields, and permissions, including signatures and filters for queries or mutations.

Instructions

Discover the Vendure Admin GraphQL schema (types, operations, custom fields).

Actions:

  • describe_type: Return SDL for a type and its referenced types (depth 1 or 2); skips built-in scalars.

  • list_custom_fields: List an entity's custom fields; null if it has no typed customFields block.

  • list_operations: List top-level queries/mutations, optionally filtered by kind and substring.

  • describe_operation: Return an operation's SDL signature plus SDL for its arg and return types.

  • list_permissions: List Permission enum values (incl. custom plugin permissions) with descriptions.

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": {
      "action": "<action>"
    },
    "name": "vex_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoTarget env name (default: VEX_ENV, else active).
kindNoFilter by operation kind.
nameNoOperation (root field) name (e.g. 'customers', 'createCustomer').
depthNoDepth of referenced-type expansion. Default 1, max 2.
actionYesOperation to perform; see description for valid values.
searchNoCase-insensitive substring filter on the operation name.
typeNameNoEntity type name (e.g. 'Customer', 'Product', 'Order').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden, and it does disclose real behavior: read-only discovery semantics, depth capped at 2, built-in scalars skipped, and that list_custom_fields returns null when no typed customFields block exists. It leaves gaps on env resolution behavior and on failure modes (e.g. unknown type name), which keeps it from a 5.

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?

One framing sentence followed by a tight bulleted action list; every bullet earns its place by naming the action and its return artifact. Front-loaded and scannable with no redundancy.

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?

For a seven-parameter, five-action discovery tool with no output schema, the description covers what each action yields and the key constraints. Remaining gaps are minor: no indication of output verbosity, pagination, or behavior when typeName/name is omitted for the relevant actions.

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 coverage is 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema: depth governs referenced-type expansion and skips built-in scalars, search is a substring filter on operation names, and name is a root field. It still does not clarify how typeName interacts with describe_type versus list_custom_fields, nor how env differs from the active env.

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?

States a specific verb and resource ("Discover the Vendure Admin GraphQL schema") and then enumerates all five actions with the concrete artifact each returns (SDL, custom field list, operation list, signature plus SDL, permission enum). This clearly separates it from execution siblings like vex_query or vex_mutate, which run operations rather than describe them.

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 per-action breakdown gives clear selection context: use list_operations to find names, describe_operation for a signature, describe_type for type shapes, list_permissions for auth scopes. It does not explicitly say when to prefer this over vex_refetch_schema or when discovery is unnecessary, so no true exclusions are stated, but the intended usage is unambiguous.

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