Skip to main content
Glama

Attach receipt

attach_receipt

Attach merchant confirmation, labelled as reported by the agent.

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": {
      "proposal_id": "<proposal_id>",
      "outcome": "<outcome>"
    },
    "name": "attach_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo
outcomeYes
proposal_idYes
order_numberNo
confirmation_urlNo
confirmation_textNo

Output Schema

NameRequiredDescriptionDefault
payment_statusYes
receipt_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is covered structurally. The description adds one genuinely useful behavioral note — that the data is agent-reported, i.e. unverified provenance — but says nothing about what happens on failure, whether re-attaching overwrites or duplicates, or any auth requirement.

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?

It is a single short sentence with no wasted clauses, so it is structurally clean and front-loaded. The brevity is under-specification rather than efficiency, however, given the complexity of the schema behind it.

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

Completeness2/5

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

An output schema exists, so return values need not be described. But for a six-parameter write operation with a nested file payload and no schema descriptions, the definition leaves far too much for the agent to guess — which fields are required for a confirmed versus failed checkout, and what the size limits allow.

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

Parameters1/5

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

Schema description coverage is 0% across six parameters, including a nested file object with media_type enum, a bounded content field, an outcome enum, and optional order_number/confirmation_url/confirmation_text. The description explains none of them — not what 'outcome' values mean, not the size limits, not how the file and text fields relate. With low coverage the description must compensate and it does not.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a verb plus object ('Attach merchant confirmation'), so the agent understands this records a receipt, which contrasts implicitly with the get_receipt sibling. But 'labelled as reported by the agent' is vague, and nothing ties the action to the proposal_id/outcome parameters that actually drive it, so the purpose is only partly pinned down.

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?

There is no statement of when to call this versus get_receipt or the payment-execution siblings, no prerequisite that a proposal must already exist, and no note about what to do when no receipt is available. Usage has to be inferred from the tool name alone.

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