Skip to main content
Glama

inspect_transaction

Read-only

Deep inspection of a single transaction. Returns full transaction details, cost basis breakdown (which lots were consumed), running balances, any comments, and the change history — when each value changed and what caused it (an import, a user edit, a rule, transaction matching). Use this to understand why a gain/loss number is what it is, and whether a value was calculated by us or edited by the account holder. Prefer transactionId over actionId: Action IDs change after each report refresh, Transaction IDs do not. Name categories to the user by their UI label, never the raw API enum: deposit→Receive, withdrawal→Send (others usually match). For the full rules (fiat, transfers, what must never be surfaced), read the User-facing wording section of read_me_first if you haven't already.

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": {
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "inspect_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextYesWrite one short, abstract, third-person sentence about the task. Refer to the requester only as "the user". Refer to any selected customer, client profile, business, portfolio, account, or data source only as "the client". Never copy, abbreviate, initialize, quote, or paraphrase a user or client name from the conversation, request, or tool data. Never put a name, initials, label, possessive name, business name, email, account name, or identifier before or after "the user" or "the client". Rewrite every named reference to exactly "the user" or "the client". For example, rewrite "User wants to know the inventory method for the client Alex R" as "The user wants to know the inventory method for the client." Do not include wallet names, wallet addresses, transaction hashes, amounts, balances, prices, dates, tax identifiers, account identifiers, or other personal or financial values. Use only generic data categories such as "transactions", "accounts", "wallets", or "tax settings". If a safe abstract summary is not possible, write exactly "the request contains sensitive details".
actionIdNoAn Action `_id` (the "Action ID") — a `query_summ_transactions` result row's `_id`, labelled `Action ID` in its text output. Use one from this conversation's results. It changes after a report refresh (a sync, an edit, a merge or a tag change can trigger one), so if it is not found, query again; where a tool also takes a `transactionId`, prefer that, because Transaction IDs do not change. NOT the Transaction `_id` that `add_manual_transaction` returns, and NOT the tx hash (the `txId` filter); passing either matches nothing and silently does nothing. To turn a Transaction `_id` into its Action ID, query with the `id` filter (`{ type: "id", value: ["<id>"], showAssociated: 1 }`) and read the `Action ID` off the result.
clientIdNoThe client this call acts for — its ID comes from list_clients. Accountants and collaborators: set it on every client-scoped call to operate on that client's data. Only accountant/collaborator accounts have clients; individual accounts omit it.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
transactionIdNoA Transaction `_id` — preferred, because it stays the same across report refreshes. Get it from the incoming[]/outgoing[]/fees[] transactions of an earlier inspect_transaction result or the Transaction IDs of a query_summ_transactions row. Returns the action that holds that transaction now. Pass this or actionId.

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?

Annotations only declare it is a safe, closed read; the description goes well beyond that by disclosing the return payload (cost basis breakdown, running balances, change history with causes), the volatility of Action IDs, and the display convention for category labels. It also warns that passing a tx hash or a Transaction _id in the actionId slot silently matches nothing — a behavioral trap not encoded in the annotations.

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 and use case are front-loaded, and most sentences carry operational value (ID preference, the tx-hash trap). The closing paragraph on UI category labels and read_me_first is useful but slightly drifts from the tool's own invocation, adding length without directly affecting how the call is made.

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 carries the full burden of describing the return, and it does so thoroughly. It also covers ID pitfalls and cross-references read_me_first for wording rules, leaving nothing an agent needs in order to call this correctly.

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 the baseline is 3, but the description earns a bump by adding semantics the schema does not: the comparative stability of transactionId vs actionId and the reason to prefer one. It does not, however, add guidance for context, llm_model, or clientId beyond what the schema already says.

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 opening sentence names a specific verb and resource ("Deep inspection of a single transaction") and immediately enumerates the returned contents — cost basis lots, running balances, comments, change history with causes. This clearly separates it from the sibling listing tool query_summ_transactions without the agent needing to open either schema.

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?

It states a concrete use case ("Use this to understand why a gain/loss number is what it is, and whether a value was calculated by us or edited by the account holder") and gives an explicit ID-selection rule: prefer transactionId over actionId because Action IDs mutate on refresh. It also routes the agent to read_me_first for full wording rules.

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