Skip to main content
Glama

find_charge

Read-only

Match an Amazon transaction, order, and items to a card or bank charge by amount and statement date, allowing for a few days of posting difference.

Instructions

Find the Amazon Transactions behind a card or bank charge, by its amount and date, each with its Order and the Items in it. A Transaction matches when its amount equals amount and it completed within window_days of charge_date, since Amazon can complete a charge on a different day than a statement shows it.

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": {
      "amount": "<amount>",
      "charge_date": "<charge_date>"
    },
    "name": "find_charge"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoThe Amazon site to read, e.g. `amazon.de`, since each site has its own orders. By default, the user's default site (see `check_session`).
amountYesThe charge or refund's amount, e.g. `12.99`. Its sign is ignored, since statements and Amazon show charges and refunds with different signs.
accountNoAnother Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`).
last_fourNoThe last four digits of the card it was charged to, to match only that card's Transactions.
charge_dateYesThe date the charge shows, e.g. `2026-11-10`.
window_daysNoHow many days either side of `charge_date` a Transaction can have completed.

Output Schema

NameRequiredDescriptionDefault
noteNoWhy nothing matched, when nothing did.
itemsNoThe matching Transactions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.0
    • addedInput schema / properties / account
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Another Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`)."
      +}
  2. Addedv2.3.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, covering the safety profile, and an output schema exists to describe results. The description adds real value beyond that by explaining the match predicate and why a ±window_days tolerance exists (Amazon can complete a charge on a different day than the statement shows), but says nothing about multiple-match behavior or the no-match case, which matter for a lookup 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?

Two sentences, purpose first, matching rule second, with zero filler. The second sentence is dense but every clause (amount equality, date window, the reason for the window) contributes to correct invocation.

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?

Return shape is delegated to an existing output schema and all parameters are schema-documented, so the description's remaining job is the matching contract, which it delivers. The main gap is behavior under ambiguity — whether multiple Transactions can match one charge and how they are ordered — for a read-only tool with a documented output this is a minor omission.

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 100%, so all six parameters are already documented, establishing a baseline of 3. The description adds genuine matching semantics — amount equality with sign ignored, and completion within window_days of charge_date — but leaves the site/account/last_four narrowing parameters, all covered by the schema, untouched.

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 (find) on a specific resource (Amazon Transactions) with the identifying inputs (amount and date) and the enriched return (Order and its Items). That framing is distinct from the plainly-named siblings like get_transactions or get_orders, but the description never names an alternative to distinguish itself from them explicitly.

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

Usage Guidelines4/5

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

The scenario is unambiguous — the user is starting from a card or bank statement line and wants the Amazon side of it — and the second sentence explains the date-window matching rule that governs when a hit is returned. It does not state exclusions (e.g. when to prefer get_transactions for a known order) or what happens on zero matches.

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