Skip to main content
Glama

Moneda

update_receipt_amounts

Correct a receipt's top-line amounts when the scan read them wrong: total, subtotal, tax amount, tax rate and tip. Each field is optional: omit it to leave it unchanged, pass null to clear it. At least one field is required. taxRateValue is a percentage (19 for 19%, not 0.19). Only the stored amounts change; a later reparse_receipt re-extracts and overwrites them. Use values the user gave or confirmed. Returns the receipt's amounts after the update.

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": {
      "receiptId": "<receiptId>"
    },
    "name": "update_receipt_amounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptIdYesReceipt id to update (from list_receipts output).
taxRateValueNoTax rate as a percentage, 0-100 (19 for 19%). Omit to leave unchanged; null clears it.
subtotalValueNoSubtotal before tax and tip. Omit to leave unchanged; null clears it.
taxAmountValueNoTax amount. Omit to leave unchanged; null clears it.
tipAmountValueNoTip amount. Omit to leave unchanged; null clears it.
totalAmountValueNoReceipt total. Omit to leave unchanged; null clears it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), it discloses the partial-update contract (omit = unchanged, null = clear, at least one required), that only stored amounts change rather than the underlying document, and that the response returns the post-update amounts. This is exactly the mutation semantics an agent needs before writing.

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?

Purpose is front-loaded, then the optionality rule, format convention, and side-effect warning in a compact block with no filler sentences. Some sentences (percentage format, omit/null) duplicate the schema text, costing a little density.

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 no output schema, the description still states what comes back ('the receipt's amounts after the update'). Combined with the mutation scope, provenance guidance, and cross-tool interaction with reparse_receipt, nothing material is missing for correct invocation.

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 baseline is 3, but the description adds one constraint not present in the schema: at least one amount field must be supplied. The percentage convention and omit-vs-null semantics largely restate the schema property descriptions, so the added value is real but modest.

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 and resource ('Correct a receipt's top-line amounts') and enumerates the exact fields affected (total, subtotal, tax amount, tax rate, tip). It also distinguishes itself from the sibling reparse_receipt by noting that a reparse re-extracts and overwrites these amounts.

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?

Gives an explicit trigger ('when the scan read them wrong'), an explicit alternative ('a later reparse_receipt re-extracts and overwrites them'), and a data-provenance rule ('Use values the user gave or confirmed'). The agent knows both when to call this and when to prefer the sibling.

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