Skip to main content
Glama

Apply Spec Fill

apply_spec_fill
Destructive

Bulk-set cost-driver custom field values on items — the operation that makes them quotable via generate_price_book_profiles. Best practice: call preview_spec_fill first to see what would change, then call this with the same parameters to commit. Every fill records provenance (source, sourceRef, timestamp) and captures per-item before-values for reversal via reverse_spec_fill.

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

Input Schema

NameRequiredDescriptionDefault
specNoAttribute values to set, keyed by custom field fieldName (e.g. {"binding": "Perfect", "trim_width": 6}).
bookIdNoOptional price book id (GUID) — context for what motivated this fill.
sourceNoHow the values were sourced: OperatorAsserted (default), CsvImported, or VendorConfirmed.
itemIdsNoList of item ids (GUIDs) to fill. Max 500.
itemSkusNoList of item SKUs to fill. Max 500.
sourceRefNoFree-text provenance reference (e.g. "Sheridan spec sheet 2024-03").
templateIdNoTemplate id (GUID) — uses the template's saved spec values.

Output Schema

NameRequiredDescriptionDefault
okNo
sourceNo
batchIdNo
sourceRefNo
affectedCountNo
approvalResultNo
previewReceiptNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, so the safety profile is covered; the description adds genuinely new behavior — provenance is recorded (source, sourceRef, timestamp) and per-item before-values are captured for reversal. It does not explicitly warn about the non-idempotent repeat-call risk or the 500-item cap in prose, but those are documented in the schema.

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?

Three sentences, each carrying distinct information: capability, workflow, and side effects. The final sentence is dense but every clause (provenance, before-values, reversal target) is actionable; no filler.

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?

With an output schema present, return values need not be described, and all seven optional parameters are fully documented in the schema. The description covers the destructive-commit framing, the preview-then-apply ritual, and undo path; only minor gaps remain (no mention of batch tracking via list_spec_fill_batches or behavior when both itemIds and itemSkus are supplied).

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 every parameter is already explained in structured form, and the description adds essentially no parameter-level detail beyond linking spec values to quotability. The instruction to reuse "the same parameters" as the preview call is a useful cross-tool cue, but baseline 3 is appropriate here.

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 ("Bulk-set cost-driver custom field values on items") and names the downstream effect (quotable via generate_price_book_profiles), which tells an agent exactly what success means. It is clearly separable from preview_spec_fill and reverse_spec_fill by naming them.

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 explicit sequencing guidance: call preview_spec_fill first, then call this with the same parameters to commit, and use reverse_spec_fill to undo. That is a when-to-use plus named alternatives plus the condition that selects each.

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