Skip to main content
Glama
Idemcore

Idemcore

Official

Fetch a stored receipt

idemcore_get_receipt

Fetch a receipt and optional per-token log from a tenant's receipt store, then verify it locally to confirm integrity.

Instructions

Fetch a receipt (and optionally its per-token log) from the tenant's Idemcore receipt store, then verify it locally.

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": {
      "receipt_id": "<receipt_id>"
    },
    "name": "idemcore_get_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
verifyNo
receipt_idYes
include_logNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two useful traits: the store is per-tenant (isolation) and verification happens locally rather than remotely. It omits what happens when verification fails, whether failure throws or is reported in the response, and whether the fetch is read-only in any documented sense, leaving meaningful gaps for a security-sensitive tool.

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?

A single compact sentence with the primary action front-loaded and the optional log noted parenthetically. Every clause carries information, though the trailing verification clause could be separated for clarity about whether it is conditional on the verify flag.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and no annotations, so the description is the only documentation for a tool whose output (receipt plus optional log, verification result) is unknown. For a verification-oriented tool, the missing description of a failed-verification outcome is a real completeness gap, though the core action is conveyed.

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 description coverage is 0%, so the description must compensate; it partially does by mapping all three parameters implicitly ('fetch a receipt' for receipt_id, 'optionally its per-token log' for include_log, 'verify it locally' for verify). It adds no default values (verify=true, include_log=false), no ID format or length constraints, and does not explain the interaction between verify and include_log.

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 ('Fetch a receipt') with scope ('from the tenant's Idemcore receipt store') plus a secondary behavior ('then verify it locally'). It does not distinguish itself from the sibling idemcore_verify_receipt, so an agent could reasonably wonder which one to call for verification.

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

Usage Guidelines2/5

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

No explicit when-to-use guidance, no exclusions, and no reference to alternatives such as idemcore_verify_receipt despite the obvious overlap. The only implied usage is fetching by receipt ID, which an agent must infer from the parameter list.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.