Skip to main content
Glama

Fix a purchase plan

fix_purchase_plan
Read-only

When a plan comes back incompatible or conditional: the smallest set of changes that makes it work (swap a part for a verified one that fits everything else, add a missing cooler, hub or adapter, trim quantities that exceed slots), re-validated, with the reason for each change. Fewest changes and verified products first; no prices.

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": {
      "purchase": "<purchase>"
    },
    "name": "fix_purchase_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNoOptional: what the person is trying to do, e.g. 'upgrade this laptop to 32 GB'. Echoed back; requirements are derived from the devices.
setupNoWhat the person already owns (devices, appliances, tools, hubs) with exact model numbers, plus current configuration.
purchaseYesEverything being considered for purchase: parts, accessories or new devices, with quantities.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "type": "object"
      -}New value: +null
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint true, destructiveHint false, openWorldHint true), so the description's job is to add planning behavior. It does: changes are re-validated, each carries a reason, selection prefers fewest changes and verified products, and prices are excluded from the output. It does not discuss tie-breaking or what happens when no fix exists.

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?

One front-loaded trigger clause followed by a dense parenthetical and two short priority rules; every element carries meaning. The single long sentence is readable but slightly dense compared to splitting the trigger from the output contract.

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 no output schema, the description must convey what comes back, and it does: a minimal re-validated change set with per-change reasons and no prices. Nothing critical is missing for calling the tool, though handling of 'no viable fix' and the shape of the reason text are left implicit.

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 coverage is 100% and the description adds nothing about the goal/setup/purchase parameters beyond calling the input 'the same input as validate_purchase_plan'. The schema already documents each field fully, so baseline 3 applies.

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 gives a specific verb and resource ('the smallest set of changes that makes it work') and anchors it to a trigger ('when a plan comes back incompatible or conditional'), which separates it from validate_purchase_plan and recheck_plan. The parenthetical enumerates the concrete change types (swap, add cooler/hub/adapter, trim quantities), so an agent knows exactly what the tool produces.

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 trigger condition is stated clearly: call this after a plan is returned incompatible or conditional. It does not name a specific sibling to run first, but the precondition implicitly routes the agent through validation, and the omission of an explicit 'do not use when the plan is already valid' is a small gap.

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