Skip to main content
Glama

getCreditsTransaction

Read-only

Get one credits transaction by transactionId. Get transactionId from getCreditsTransactions. Never invent UUIDs; only use values from prior tool responses. amount is always positive and already in credits, so report it as is, and read type to tell an allocation from spending.

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": {
      "transactionId": "<transactionId>"
    },
    "name": "getCreditsTransaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
transactionIdYesThe id of the credits transaction.

Output Schema

NameRequiredDescriptionDefault
transactionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / transaction / properties / endingBalance
      Added value: +{
      +  "description": "Total credits balance of the customer right after the transaction. Not returned for transactions created before the field was introduced, or for the expiration of credits that lapsed on their expiration date.",
      +  "type": "number"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioral context: the id must come from a prior tool response, and the returned amount is always positive and already denominated in credits so it should be reported verbatim, with type distinguishing allocation from spending.

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?

Three short sentences, front-loaded with the action, then the id-sourcing rule, then output interpretation. No filler or repetition of the schema.

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 an output schema present the description needn't enumerate return fields, yet it pre-empts the most likely misinterpretation (negative amounts) by explaining sign and type semantics. For a single-parameter read tool, nothing an agent needs is missing.

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% and the single transactionId parameter is fully documented, so the schema does most of the work (baseline 3). The description still adds provenance semantics the schema cannot express – that the value must be harvested from a prior response and never invented – which raises it above baseline.

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?

"Get one credits transaction by transactionId" names a specific verb (get), a specific resource (credits transaction), and the cardinality/selector (one, by id), which cleanly separates it from the sibling getCreditsTransactions list tool. An agent can pick this tool without opening the schema.

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 explicitly routes the agent to getCreditsTransactions as the source of the required id and warns against fabricating UUIDs, which is concrete, actionable usage guidance. It stops short of stating when-not-to-use (e.g. when scanning multiple transactions), so it is strong but not exhaustive.

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