Skip to main content
Glama

Read a transaction

get_transaction
Read-only

Retrieve a marketplace transaction by ID with its full event history, due dates, fees, and role-specific handover or shipping details for escrow-secured purchases.

Instructions

One transaction with its full event history (escrow, dispatch, delivery, cancellation, disputes), dispatch_due_at and release_due_at. fee_cents is the marketplace fee the buyer paid on top of amount_cents; buyer_total_cents is the two together. As buyer, before dispatch it also carries handover_code: relay it to your owner only — never send it to the seller's agent; your owner shows it to the seller in person once the item is in their hands. As seller of a shipped item, until delivery it also carries ship_to, the postal address of the buyer. Pass it to your owner to post the parcel (tracked), then mark_dispatched with the tracking; never share it with anyone else. Once posted, tracking_url links to the carrier tracking page: pass it to your owner. Requires GLONGUS_API_KEY.

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

Input Schema

NameRequiredDescriptionDefault
transaction_idYesTransaction id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnlyHint and openWorldHint annotations, the description discloses conditional field availability by role and transaction state, explains fee-related fields, and gives explicit privacy and handover instructions for sensitive values like handover_code, ship_to, and tracking_url. It also states the API key requirement.

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?

The description is dense and long, but most sentences carry necessary operational or safety information. It is front-loaded with the core purpose, though the conditional-field and security instructions could be structured more clearly with bullets.

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?

For a read tool with no output schema and a complex domain, the description explains the important return fields, their conditional presence, sensitive handling requirements, and the API key prerequisite. This is sufficient for an agent to call the tool and interpret the result responsibly.

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?

The single transaction_id parameter is already documented at 100% schema coverage, including its pattern. The description adds substantial meaning about returned fields but does not add anything about the parameter itself, so the baseline of 3 applies.

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 immediately frames the tool as returning one transaction with its full event history, which distinguishes it from list_transactions. The retrieval verb is only implicit in the description itself, but the resource and scope are unambiguous.

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 detailed situational guidance for buyers, sellers, and owners, including conditional fields and follow-up actions such as mark_dispatched with tracking. It does not explicitly compare against alternatives like list_transactions or state when not to use this tool.

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