Skip to main content
Glama

Get transaction status

get_transaction_status

Check a Midtrans transaction's current status by order_id and retrieve full status details such as transaction status, fraud status, payment type, and gross amount.

Instructions

Check the current status of a Midtrans transaction by its order_id. Returns the full status object from Midtrans (transaction_status, fraud_status, payment_type, gross_amount, status_code, and more). Read-only.

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": {
      "order_id": "<order_id>"
    },
    "name": "get_transaction_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesThe order_id of the transaction to check.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the key trait, 'Read-only', which is exactly what an agent needs to know for a query tool. It also enumerates the returned fields (transaction_status, fraud_status, payment_type, gross_amount, status_code), giving real context about output shape. It stops short of describing error behavior for unknown order_ids or any rate/auth considerations.

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 and lookup key, followed by the return payload and the safety note. No filler or redundant wording.

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?

For a single-parameter read tool this is nearly complete: it identifies the input, summarizes the return object (compensating for the absent output schema), and flags read-only status. The only missing piece is behavior on invalid or unknown order_ids.

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 schema already documents order_id with pattern and length constraints. The description only restates that lookup is keyed on order_id, adding no format or edge-case semantics beyond the schema, so the baseline of 3 applies.

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?

States a specific verb ('Check') and resource ('current status of a Midtrans transaction') plus the lookup key ('by its order_id'). This clearly distinguishes it from siblings like cancel_transaction, refund_transaction, and create_payment_link, which mutate rather than query.

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

Usage Guidelines3/5

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

The phrase 'by its order_id' implies this is a query-by-identifier lookup, and 'Read-only' hints at when it is safe to call. However, there is no explicit when-to-use or when-not-to-use guidance, and no mention of the sibling tools as alternatives for cancellation, refunds, or creation.

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