Skip to main content
Glama

Decide Runtime

Read the original saved decision

decide_prepaid_get_record
Read-onlyIdempotent

Read the compact verdict/reason/policy/hash summary of an owned saved decision; the receipt signature is omitted. Use after decide_prepaid_evaluate, including lost replies; use decide_prepaid_export_record for full signed evidence. Pass the original operation_id with identical input values (JSON key order may differ), not decision_id or record_hash. Pending returns no record; missing references return RECORD_NOT_FOUND. Reads add no decision-unit debit. Requires owner-approved scoped access. Export before 90-day expiry; on RECORD_EXPIRED stop, never change IDs to bypass it. On HTTP 429 stop automatic retries and honor Retry-After; without it, ask the owner to inspect the lifetime limit. No result grants external-action authority. No credit purchases, limit changes or execution.

Input Schema

NameRequiredDescriptionDefault
inputYesThe complete original Rulebook request used for decide_prepaid_evaluate, including supplied optional fields. JSON object-key order is immaterial; changed or omitted values can cause OPERATION_CONFLICT. Do not reconstruct this request from the compact summary.
operation_idYesOriginal caller-generated operation_id from decide_prepaid_evaluate, not decision_id or record_hash. Supply the exact original input alongside it. Recover a lost pair from your trusted request journal; do not invent a replacement ID.

Output Schema

NameRequiredDescriptionDefault
codeNo
recordNo
statusNo
accountNoCurrent prepaid credit and owner/client spending limits. Available wallet credit is not the effective spending allowance.
messageNo
environmentNo
operation_idNo
billing_enabledYes
execution_enabledYes
price_per_record_microusdNoPrice per completed record; 1 USD = 1,000,000 micro-USD. Reads and identical retries add no record debit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / input / description
      Previous value: -"A bounded Rulebook v1 request. Use facts and rules explicitly supplied by the developer; never invent action authority. The server also enforces size and reserved-field limits."New value: +"The complete original Rulebook request used for decide_prepaid_evaluate, including supplied optional fields. JSON object-key order is immaterial; changed or omitted values can cause OPERATION_CONFLICT. Do not reconstruct this request from the compact summary."
    • changedInput schema / properties / operation_id / description
      Previous value: -"Your stable proposal/request ID. Preserve it and the exact input for retries and reading."New value: +"Original caller-generated operation_id from decide_prepaid_evaluate, not decision_id or record_hash. Supply the exact original input alongside it. Recover a lost pair from your trusted request journal; do not invent a replacement ID."
    • addedOutput schema / properties / price_per_record_microusd / description
      Added value: +"Price per completed record; 1 USD = 1,000,000 micro-USD. Reads and identical retries add no record debit."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare the safe-read profile (readOnly, idempotent, non-destructive), but the description adds substantial context: no decision-unit debit, owner-approved scoped access required, 90-day expiry with RECORD_EXPIRED halt guidance, HTTP 429/Retry-After handling, and that no result grants external-action authority.

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-loads the purpose and is dense with uniquely useful clauses, so little is wasted. It is heavy on semicolon-chained constraints, which is slightly taxing to parse, but every sentence carries actionable content.

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?

With an output schema present, return values need not be explained, and the description still covers auth, expiry, error codes, rate-limit behavior, and the exact identity semantics of the two required parameters. Nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes further by clarifying that operation_id must be the original ID (not decision_id or record_hash) and that JSON key order is immaterial while values must be identical. This meaningfully reduces mis-invocation risk beyond the schema.

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 (read) and resource (compact verdict/reason/policy/hash summary of an owned saved decision), and explicitly scopes what is excluded (receipt signature omitted). It names the sibling decide_prepaid_export_record for full signed evidence, so an agent can distinguish it without opening the schema.

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

Usage Guidelines5/5

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

Explicitly says when to use it ('after decide_prepaid_evaluate, including lost replies') and names the alternative for a different need (export_record for full signed evidence). It also states the failure conditions to expect (Pending returns no record; missing references return RECORD_NOT_FOUND).

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