Skip to main content
Glama

Buy

buy

Buy an item from a shop in the room. Omit item to hear the wares and prices (free) — the list is read out once on entering, look only says how many.

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

Input Schema

NameRequiredDescriptionDefault
gameNoInternal save name: leave it out (the current run is used)
itemNoItem id or words of its name; omit to list the wares

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive, closed-world mutation. The description adds genuinely new behavior: the listing call is free, and the shop's stock is read out once on entry with 'look' only reporting a count. It stops short of stating that a purchase deducts money, what happens with insufficient funds, or where the item goes.

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?

Two short sentences, the core action first and the zero-argument mode second, with zero filler. The em-dash aside on the one-time readout is compact and load-bearing.

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?

For a 2-parameter, zero-required tool with annotations and no output schema, this covers the main ambiguity (what happens when item is omitted) and a game quirk worth knowing. Remaining gaps are cost/failure semantics on an actual purchase, which are minor for a tool this simple.

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%, so both parameters are already documented, including that omitting item lists wares. The description only reinforces the 'item' omission case and adds the '(free)' qualifier; the internal 'game' parameter is left entirely to the schema. 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 ('Buy an item') plus a scope constraint ('from a shop in the room'), and explicitly contrasts its behavior with the sibling 'look' ('look only says how many'). An agent can distinguish it from browsing tools without opening a schema.

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?

Gives a concrete when-to-use rule for the zero-argument case: omit item to hear wares and prices, and don't rely on 'look' for that. It does not address the sell/appraise siblings or state prerequisites like needing currency, so the guidance is clear but not exhaustive.

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