Skip to main content
Glama

vex_fragments

Manage reusable GraphQL fragments by listing, retrieving, saving with cached-schema validation, and deleting named selection sets.

Instructions

Manage reusable GraphQL fragments (named selection sets).

Actions:

  • list: List saved fragments, optionally filtered by on-clause type.

  • get: Return the raw SDL of a saved fragment.

  • save: Persist a fragment definition, validating its selection against the cached schema before writing.

  • delete: Delete a saved fragment.

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_fragments"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoTarget env name (default: VEX_ENV, else active).
sdlNoFull SDL: `fragment Name on Type { ... }`.
nameNoFragment name (CamelCase).
typeNoFilter to fragments whose on-clause matches this type name.
actionYesOperation to perform; see description for valid values.
overwriteNoReplace an existing fragment with the same name. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.9/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 burden, and it does disclose one meaningful trait beyond the schema: 'save' validates the selection against the cached schema before writing. It also implies 'delete' is destructive. However it never states whether deletion is reversible, whether overwrite is required versus an error on name collision, or what happens when validation fails. Useful but incomplete for a tool with no safety annotations.

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 front-loaded purpose sentence followed by a tight bulleted action list; every line adds distinct information and there is no filler. The structure maps directly onto the action enum, making it easy to scan.

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 6-parameter tool with no output schema and no annotations, the definition covers the operations but leaves observable behavior underspecified: what 'list' returns (names, types, both?), whether 'get' errors on a missing name, and what a failed validation produces. Adequate to invoke, but not enough to predict outcomes confidently.

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 the schema already documents env, sdl, name, type, action, and overwrite, making 3 the baseline. The description adds modest value by explaining that 'type' filters on the on-clause and that 'sdl' is validated before writing, but it does not clarify which parameters apply to which action (e.g., that 'sdl' is required for save but ignored for list).

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 names a concrete resource (reusable GraphQL fragments / named selection sets) and a concrete set of operations (list, get, save, delete). Each action is spelled out, so an agent can see this tool manages fragment definitions rather than queries, mutations, or schema (its siblings). Nothing about the purpose is ambiguous.

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 action list gives explicit per-operation context: 'list optionally filtered by on-clause type', 'get returns raw SDL', 'save validates before writing', 'delete removes'. That is a clear when-to-use-behavior map. It stops short of 5 because it never says when an agent should prefer this over inlining a fragment via vex_query, nor does it state prerequisites such as needing a cached schema for 'save'.

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