Skip to main content
Glama
Need or Want

Need or Want

Check a purchase

check_purchase

Evaluate a planned purchase before buying by answering multiple-choice questions to get a fixed BUY, WAIT, or SKIP verdict. Use it when comparing prices or deciding whether to spend.

Instructions

Call this BEFORE helping the user buy anything, or when they compare or price-check something with intent to buy. The first call returns multiple-choice questions: ask them word for word, then call again with every answer in answers. The verdict comes from fixed arithmetic: relay its message, never your own opinion. Pick the category that matches how long the thing lasts; if unsure, ask the user. Pass merchant (domain) and productKey (ASIN or URL) when known. Pass spentThisMonth only if a budgeting tool gives it.

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": {
      "item": "<item>",
      "price": "<price>",
      "category": "<category>"
    },
    "name": "check_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYes
priceYes
answersNo
categoryYes
merchantNo
recurringNonone
productKeyNo
resaleValueNo
sellerClaimsNo
spentThisMonthNo
runningCostPerMonthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and mostly succeeds: it discloses the two-call protocol (first call returns multiple-choice questions, second takes answers), that the verdict is fixed arithmetic, and that the message must be relayed verbatim without opinion. It leaves gaps on error handling for malformed answers and on what the verdict payload contains beyond a message.

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?

Five sentences, front-loaded with the trigger condition and the call protocol before parameter hints. Dense but nearly every clause carries instruction; the parameter hints at the end could be more systematically ordered but nothing is redundant.

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 an 11-parameter tool with a nested answers object, no output schema and no annotations, the definition explains the interaction loop well but leaves nearly half the parameters unexplained. An agent would not know when to populate resaleValue, runningCostPerMonth, recurring or sellerClaims, which materially affects the verdict input.

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 0% across 11 parameters, so the description must compensate and only partially does. It explains answers ('every answer'), category (match how long the item lasts, ask user if unsure), merchant (domain), productKey (ASIN or URL) and spentThisMonth (only from a budgeting tool), but resaleValue, runningCostPerMonth, recurring, sellerClaims, item and price get no guidance on when or how to supply them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete verb-and-resource combination: it evaluates a prospective purchase and returns a verdict, with a two-phase question/answer protocol spelled out. It is distinct from siblings like challenge_verdict and record_outcome by describing the pre-purchase check role, though it never names those siblings explicitly to draw the boundary.

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?

Strong triggering guidance: 'Call this BEFORE helping the user buy anything, or when they compare or price-check something with intent to buy' gives a clear condition, plus conditional instructions for category uncertainty and spentThisMonth. It does not state when-not to call or how it relates to sibling tools after a verdict is produced.

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