Skip to main content
Glama

explain_decision

Read-only

Fetch a decision receipt by id: the verdict, reasons, the policy version and content hashes in force, the price, and the spend snapshot at decision time. The audit answer to "why did my agent buy (or not buy) this".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
receipt_idYesA receipt_id from purchase_preview or a purchase response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true, and the description adds useful behavioral context by detailing the contents of a decision receipt (verdict, reasons, policy version, price, spend snapshot). No contradictions or omitted side effects are present.

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 sentences, front-loaded with the action and result, no wasted words. Every sentence adds value, making it highly efficient.

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?

The description provides a comprehensive list of returned fields without an output schema. For a single-ID fetch with no nested objects, this is sufficient. Minor improvement could include mentioning error conditions (e.g., invalid ID).

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?

The input schema covers 100% of the single parameter (receipt_id) with a description. The tool description does not add further semantics beyond restating the parameter's role, so the baseline score applies.

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?

The description clearly states the tool fetches a decision receipt by ID, listing specific components (verdict, reasons, policy version, etc.), and frames it as 'the audit answer', making the purpose unmistakable and distinct from sibling tools.

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?

The description implies when to use (to understand why an agent acted), but lacks explicit guidance on when not to use or alternatives. No exclusions are provided, leaving usage context inferred rather than stated.

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