Skip to main content
Glama

ARCNM pay

Get result

get_result
Read-onlyIdempotent

Read a paid purchase with its purchase_id and result_token: the summary (every item in every environment at the lots asked, the cheapest environment per lot) and the receipt; view=full for one cell or component in full, a page at a time. Answers: status running or settling with progress (call again), then status paid; a purchase that still owes an amount answers the payment requirement with pay_url for exactly that. Read-only and free.

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_id": "<purchase_id>",
      "result_token": "<result_token>"
    },
    "name": "get_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemNoOne item, from 1.
viewNo`summary` (default): items, cells and lots. `full`: a cell (or with `component`, a component) as `GET /calculations/{id}` states it. `cost_sheet`: the itemised sheet of a part or a component at `lot_size`.
cursorNoThe next page.
componentNoOne component, by its key in `components`.
lot_sizesNoLots to state, comma separated: a part is restated at any lot, free; an assembly states the lots it was priced at.
environmentNoOne environment, by id.
purchase_idYesThe purchase's id (a UUID).
result_tokenYesThe result_token the paid answer carried (30 days).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and closed-world, so the bar is lower, yet the description still contributes real behavior: the token-bearing read, the running/settling/paid status progression, the partial-payment case that answers with pay_url, pagination 'a page at a time', and the free lot restatement. 'Read-only and free' partly restates readOnlyHint but adds the cost dimension. The one weakness is that the telegraphic phrasing makes the status state machine harder to parse than it needs to be.

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

Conciseness3/5

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

Purpose is front-loaded, which is good, but the remainder is a single semicolon-chained run-on that mixes return values, status machine and payment handling in one breath. 'Read-only and free' duplicates the readOnlyHint annotation. It is dense rather than bloated, but parsing it costs the agent more than a short structured sentence list would.

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?

There is no output schema, so the description must carry return semantics, and it largely does: summary contents, receipt, status values, pagination, and the pay_url answer for owed amounts. Given 8 parameters with full schema coverage and rich annotations, the remaining gap is mostly the interaction between item/view/component/lot_sizes rather than any missing behavioral fact.

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 parameter descriptions are already detailed (view modes, lot_sizes restatement, cursor as 'the next page'), so baseline is 3. The prose adds only marginal meaning beyond that: that view=full is paged and that summary yields the cheapest environment per lot. It does not clarify precedence among view, component, item and lot_sizes when several are supplied together.

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?

States a specific verb and resource ('Read a paid purchase with its purchase_id and result_token') and enumerates what the read returns: the summary (items, environments, lots, cheapest environment per lot) and the receipt. It also carves out the view=full mode for a single cell or component. It never names preview_cost or price_parts, so an agent must infer the boundary between reading a paid result and previewing/pricing, but the scope here is narrow enough to distinguish.

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?

Implies usage through the polling loop ('call again' while running/settling, until paid) and through the pay_url condition when an amount is owed, which is genuine when-to-call guidance. However, it gives no explicit exclusions relative to the pricing siblings and no statement of prerequisites beyond possessing purchase_id and result_token. Usage is inferable but not spelled out as when-to-use vs alternatives.

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