Skip to main content
Glama

Preview Spec Fill

preview_spec_fill
Read-only

Preview what a spec fill would do WITHOUT writing anything. Returns the affected item count, a sample of up to 10 items with before→after for each attribute, and the resolved spec values. Use this to verify the filter and values before calling apply_spec_fill with a previewReceipt.

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

Input Schema

NameRequiredDescriptionDefault
specNoAttribute values to set, keyed by custom field fieldName (e.g. {"binding": "Perfect", "trim_width": 6}). Mutually exclusive with templateId (unless overriding specific values).
bookIdNoOptional price book id (GUID) — recorded as context for what motivated this fill.
itemIdsNoList of item ids (GUIDs) to fill. Required (mutually exclusive with itemSkus). Max 500.
itemSkusNoList of item SKUs to fill. Required (mutually exclusive with itemIds). Max 500.
templateIdNoTemplate id (GUID) — uses the template's saved spec values.

Output Schema

NameRequiredDescriptionDefault
okNo
previewNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the 'no writes' claim largely restates structured data. The description does add genuinely new behavior: the up-to-10-item sample with before→after per attribute and the previewReceipt handoff token that apply_spec_fill consumes. Describing the return payload is somewhat redundant given an output schema exists, which keeps this 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?

Three sentences, each earning its place: what it does, what it returns, and how to chain it. The critical 'WITHOUT writing anything' clause is front-loaded in the first sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only preview whose output schema documents the response, the description supplies everything an agent needs to call it correctly and to know the next step (apply_spec_fill with the returned receipt). Nothing essential is missing.

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%, including mutual exclusivity of itemIds/itemSkus, the 500 cap, and the spec-vs-templateId relationship, so the schema carries parameter meaning. The description's reference to 'verify the filter and values' loosely maps to those inputs but adds no syntax or constraint detail beyond it. Baseline 3 is appropriate.

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 ('Preview what a spec fill would do') and immediately scopes it with 'WITHOUT writing anything,' which cleanly separates it from the sibling apply_spec_fill. An agent can select it without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit workflow rule: use this to verify the filter and values before calling apply_spec_fill with a previewReceipt. The alternative and the condition that selects it are both named, leaving nothing to inference about sequencing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources