Skip to main content
Glama

Validate a purchase plan

validate_purchase_plan
Read-only

Call this before you recommend or order two or more items that have to work together or with what the person owns (a PC build or upgrade, a camera kit, a smart-home setup, a charger plus cable). Check a whole purchase before recommending or ordering it: the setup the person owns (with current configuration) plus everything in the cart. Returns one decision (supported / conditional / incompatible / insufficient_evidence), a result per part, configuration limits across the plan (memory slots and capacity, M.2 slots), adapters or hubs still needed, substitutions for parts that won't work, the exact questions blocking a decision, evidence, and a signed receipt. Covers anything that has to fit, plug in, mount, run on or charge with something someone owns. Verified catalog (specs checked against cited manufacturer sources): computers & consoles (RAM, M.2 SSDs, USB-C chargers), phones/tablets/watches (USB-C PD, MagSafe, Qi2, watch bands), cameras (lens mounts, adapters, batteries, memory cards), cordless power tools (battery platforms), printers (ink, toner, drums), appliances (refrigerator water and air filters, dryer vents and power cords, installation fit), vacuums (bags, filters, batteries, robot-vacuum parts), air quality (purifier filters, HVAC media, humidifier pads), e-bikes (batteries and chargers by drive system), smart home (Matter, Thread, Zigbee, hubs, bulb bases), PC building (CPU sockets, cooler mounts, memory, clearances, power), cars & EV charging (tire sizes by trim, NACS/J1772/CCS1 and approved adapters, home chargers; a starter set of models) and TVs, consoles & streaming (VESA mounts, weight and screen size, console generations, app platforms). Products outside the catalog in any category are read by AI in terms of the same standards and returned as unverified.

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": "validate_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: -{
      -  "properties": {
      -    "confidence": {
      -      "type": "number"
      -    },
      -    "decision": {
      -      "enum": [
      -        "supported",
      -        "conditional",
      -        "incompatible",
      -        "insufficient_evidence"
      -      ],
      -      "type": "string"
      -    },
      -    "evidence": {
      -      "items": {
      -        "properties": {
      -          "text": {
      -            "type": "string"
      -          },
      -          "type": {
      -            "type": "string"
      -          },
      -          "url": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "items": {
      -      "items": {
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "next_action": {
      -      "description": "The agent's next move: ask the shopper the blocking questions; offer a fix the shopper decides on; confirm the conditions; or keep the receipt and recheck right before ordering.",
      -      "enum": [
      -        "ask_customer",
      -        "offer_fix",
      -        "confirm_conditions",
      -        "ready_to_order"
      -      ],
      -      "type": "string"
      -    },
      -    "next_step": {
      -      "type": "string"
      -    },
      -    "plan_id": {
      -      "type": "string"
      -    },
      -    "questions": {
      -      "items": {
      -        "properties": {
      -          "answer_with": {
      -            "type": "string"
      -          },
      -          "ask": {
      -            "type": "string"
      -          },
      -          "blocking": {
      -            "type": "boolean"
      -          },
      -          "id": {
      -            "type": "string"
      -          },
      -          "options": {
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "receipt": {
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "required_accessories": {
      -      "items": {
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "requirements": {
      -      "items": {
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "results": {
      -      "items": {
      -        "properties": {
      -          "caveats": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "checks": {
      -            "items": {
      -              "properties": {
      -                "detail": {
      -                  "type": "string"
      -                },
      -                "ok": {
      -                  "type": [
      -                    "boolean",
      -                    "null"
      -                  ]
      -                },
      -                "rule": {
      -                  "type": "string"
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "conditions": {
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "decision": {
      -            "enum": [
      -              "supported",
      -              "conditional",
      -              "incompatible",
      -              "insufficient_evidence"
      -            ],
      -            "type": "string"
      -          },
      -          "item": {
      -            "type": "integer"
      -          },
      -          "name": {
      -            "type": "string"
      -          },
      -          "summary": {
      -            "type": "string"
      -          },
      -          "target": {}
      -        },
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "substitutions": {
      -      "items": {
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "summary": {
      -      "type": "string"
      -    },
      -    "system_checks": {
      -      "items": {
      -        "properties": {
      -          "detail": {
      -            "type": "string"
      -          },
      -          "item": {
      -            "type": "integer"
      -          },
      -          "ok": {
      -            "type": [
      -              "boolean",
      -              "null"
      -            ]
      -          },
      -          "rule": {
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "valid_until": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "plan_id",
      -    "decision",
      -    "summary",
      -    "results"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Changed1 schema field changed
    • addedOutput schema / properties / next_action
      Added value: +{
      +  "description": "The agent's next move: ask the shopper the blocking questions; offer a fix the shopper decides on; confirm the conditions; or keep the receipt and recheck right before ordering.",
      +  "enum": [
      +    "ask_customer",
      +    "offer_fix",
      +    "confirm_conditions",
      +    "ready_to_order"
      +  ],
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=true, destructiveHint=false), and the description adds real behavioral context beyond them: the four possible decisions, per-part results, configuration limits, required adapters, substitutions, blocking questions, evidence, and a signed receipt. It also discloses a reliability caveat that out-of-catalog products are AI-read and returned as unverified. It does not explain why idempotentHint=false (e.g., whether a receipt is persisted), which keeps it 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the imperative call-to-action, and the returns paragraph is dense but well organized. The long category enumeration in the catalog paragraph (printers, vacuums, e-bikes, etc.) is informative but adds bulk that a compact coverage summary could carry.

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 complex multi-part validation tool with no output schema, the description fully enumerates the return payload and the decision taxonomy, including the insufficiency path via 'exact questions blocking a decision.' An agent has everything needed to call it and interpret the result.

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 baseline is 3. The description does clarify the setup-versus-purchase split ('the setup the person owns with current configuration plus everything in the cart'), but that distinction is already stated in the schema's own descriptions, so little meaning is added.

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 ('validate' a 'purchase plan') plus the exact scope: two or more items that must work together or with something owned. The scope contrast between whole-plan validation and single-part checks gives an agent enough to distinguish it from part-level siblings such as check_fit or check_compatibility without opening schemas.

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?

Explicit trigger condition: 'Call this before you recommend or order two or more items that have to work together or with what the person owns,' followed by concrete examples (PC build, camera kit, charger plus cable). It gives no explicit when-not-to-use or named alternatives (e.g., fix_purchase_plan for a failing plan), so it falls short of the top band.

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