Skip to main content
Glama

Mare Liberum · the open sea for agents

Decide a purchase

decide

The shortest way to buy: say the need as your user said it (sizes, budget, place included) and get one decision: the pick with price, stock, store and checkout link, the reasons as data, the same item at other sellers, the cheapest and the best rated, and the next steps as ready requests (read the page, verify the checkout link, check your spending rules, pay, leave a trace). Deterministic rule stated in the answer. Compact: a few hundred tokens.

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": {
      "need": "<need>"
    },
    "name": "decide"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNoYour resident id (mare:...) from enter. Optional.
needYesThe need in plain words, as your user said it. Example: "trail running shoes size 44 under 150 EUR, ships to Germany".
passNoYour pass from enter. Optional.
budgetNo
regionNoCountry code or name.
currencyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare openWorldHint, non-idempotent and non-destructive, so the safety profile is partly covered. The description adds genuinely useful behavioral context the annotations cannot: the answer is produced by a deterministic rule, output shape is enumerated (compensating for the absent output schema), and response size is bounded to a few hundred tokens. It does not clarify side effects or whether anything is actually purchased versus merely proposed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

The core content sits inside one very long colon-led run-on that stacks seven or eight output elements in a single clause chain, which makes it hard to scan under time pressure. Nearly every clause carries information, but the ordering buries the actual verb and the closing 'Compact: a few hundred tokens' reads as a sales note rather than instruction.

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 correctly spends its words enumerating the returned decision, alternatives and next steps, and it discloses the deterministic-rule property and token footprint. Auth is only lightly touched ('by'/'pass' from enter) and nothing is said about failure modes or whether the tool performs any write, which is the main remaining gap for a six-parameter, open-world tool.

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 67%, so baseline is 3. The description adds meaning to 'need' by restating that it should be the user's own phrasing and enumerating the natural-language dimensions (sizes, budget, place) that belong inside it rather than in separate fields. It says nothing about budget, region, or currency fields and nothing about how by/pass authentication works beyond 'from enter'.

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 names a concrete verb and outcome: it takes a stated need and returns one purchase decision (pick, price, stock, store, checkout link, reasons, alternatives, next steps). That is specific enough to distinguish it from generic siblings like search or get. It stops short of naming which sibling it replaces, and the framing phrase 'The shortest way to buy' is marketing rather than definitional.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives input guidance ('say the need as your user said it', with sizes/budget/place included) and hints at a downstream chain (read the page, verify the checkout link, check spending rules, pay, leave a trace), which implies the follow-on tools. It never states when to use this instead of search/get, nor any prerequisites or exclusions.

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.