Skip to main content
Glama
rissets

MCP Midtrans Documentation Server

by rissets

midtrans_get_status_codes

Read-onlyIdempotent

Retrieve Midtrans HTTP status code documentation by range (2xx, 3xx, 4xx, 5xx) to troubleshoot payment API errors, understand response meanings, and resolve integration issues.

Instructions

Get Midtrans HTTP status code reference for a specific range.

Includes status code numbers, descriptions, common scenarios, and troubleshooting tips.

Args: params: Contains the status code range (2xx, 3xx, 4xx, or 5xx).

Returns: str: Status code reference table with descriptions and handling guidance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, covering the safety profile. The description adds value by disclosing content richness ('troubleshooting tips', 'common scenarios', 'handling guidance') which describes what kind of practical information is returned beyond raw status codes. However, it omits details about caching, rate limits, or why Midtrans-specific codes differ from standard HTTP specs.

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?

Uses structured docstring format (Args/Returns) with zero wasted words. Every sentence earns its place: first line establishes purpose, second describes content richness, Args clarifies the single parameter, and Returns describes output format. Appropriate length for a single-parameter lookup tool.

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 simple lookup tool with one parameter and read-only annotations, the description is complete. It compensates for the lack of visible output schema by describing the return value (string table with handling guidance). Could improve by noting this is for debugging/integration help versus runtime transaction monitoring.

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?

With schema description coverage at 0% per context signals, the description compensates adequately by explicitly listing the valid status code ranges (2xx, 3xx, 4xx, or 5xx) in the Args section. It clarifies the parameter structure (params contains the range), though it could enhance further by explaining the semantic meaning of each range (success, redirect, client/server errors).

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 clearly states it retrieves 'Midtrans HTTP status code reference' for a specific range, with specific verb (Get) and resource. It distinguishes from sibling documentation tools by focusing specifically on HTTP status codes rather than general documentation or code examples, though it could further clarify 'reference' means lookup documentation versus checking a transaction status.

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 description implies usage through its scope (HTTP status codes, troubleshooting tips), but provides no explicit guidance on when to use this versus siblings like `midtrans_get_documentation` or `midtrans_get_code_example`. No 'when-not-to-use' or alternative suggestions are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rissets/mcp-midtrans'

If you have feedback or need assistance with the MCP directory API, please join our Discord server