Skip to main content
Glama
LamPyrid
by RadCod3

Get Transaction

get_transaction
Read-onlyIdempotent

Retrieves complete transaction details by unique ID so you can verify information before updates or examine a specific transaction.

Instructions

Retrieve complete transaction details.

Use this to verify transaction information before updates or to examine specific transactions.

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": {
      "req": "<req>"
    },
    "name": "get_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
reqYesRequest model for getting a single transaction.

Output Schema

NameRequiredDescriptionDefault
idNoTransaction ID
dateNoDate and time of the transaction
tagsNoCross-cutting labels grouping transactions across budgets/categories/time (e.g. a trip name, a project, a tax year). Multiple allowed.
typeYesType of the transaction
amountYesAmount of the transaction
budget_idNoID of the budget for this transaction
source_idNoID of the source account. For withdrawal/transfer, must be asset account. For deposits, must be revenue account.
budget_nameNoName of the budget for this transaction
category_idNoID of the category for this transaction
descriptionYesDescription of the transaction
source_nameNoSource account name
category_nameNoFiner-grained classification of the transaction (e.g. "vegetables", "personal hygiene"). One per transaction; complements the budget.
currency_codeNoCurrency code
destination_idNoID of the destination account. For deposit/transfer, must be asset account. For withdrawals, must be expense account.
destination_nameNoDestination account name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds only the word 'complete', implying the full record is returned rather than a partial view, which is modest added value. Detailed return shape is handled by the output schema, so no further disclosure is required.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with the core action front-loaded and the usage guidance following immediately. No redundant restatement of the title and no filler wording; every sentence earns its place.

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?

With a rich annotation set, a fully described single parameter, and an output schema defining the return shape, the description supplies nearly everything an agent needs to invoke it correctly. The only gap is the lack of an explicit pointer to get_transactions for multi-record retrieval.

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% and the single nested 'id' parameter is documented as the transaction's unique identifier, so the schema carries the semantics. The description adds nothing about identifier format, sourcing, or behavior for invalid IDs, which is the expected baseline-3 outcome for a one-parameter tool.

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?

The description uses a specific verb and resource ('Retrieve complete transaction details'), so an agent immediately knows this returns a single transaction's full record. It does not, however, explicitly contrast itself with the plural sibling get_transactions, leaving the singular-vs-list distinction to be inferred from the name.

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?

It gives concrete usage contexts: verifying transaction information before an update, or examining a specific transaction. That is a clear when-to-use signal with a named downstream action (updates). It stops short of stating exclusions, such as directing list/browse scenarios to get_transactions.

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