Skip to main content
Glama

vex_refetch_schema

Refresh and cache a Vendure environment’s GraphQL schema via introspection or the configured schema source, keeping API commands aligned with current types.

Instructions

Re-fetch and cache the GraphQL schema for a Vendure environment. Uses introspection or the configured schema source.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "vex_refetch_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
environmentNoTarget environment name. Defaults to active environment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that the schema comes from introspection or the configured schema source and that the result is cached, but it omits auth requirements, whether an existing cache is overwritten, and what happens on failure.

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 definition is two sentences with the action front-loaded and no unnecessary wording. Every sentence contributes to understanding what the tool does and how it obtains the schema.

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 simple one-parameter tool with no output schema, the description covers the core action and schema source mechanism. It leaves minor gaps around cache side effects and explicit routing against vex_schema, but it is otherwise adequate for correct invocation.

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?

There is only one optional parameter and schema description coverage is 100%, so the schema already documents the environment name and default. The description adds no further syntax or selection detail beyond what the schema provides.

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 states a specific verb and resource: 'Re-fetch and cache the GraphQL schema for a Vendure environment.' It does not explicitly contrast this with the sibling vex_schema tool or explain how the cached schema differs from a normal schema read, so it falls short of full sibling differentiation.

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

Usage Guidelines3/5

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

The phrase 'Re-fetch and cache' implies this should be used when the schema needs refreshing, but the description never explicitly says when to use this instead of vex_schema or when not to refresh. No prerequisites or alternatives are stated.

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