Skip to main content
Glama

POST /api/exchange_rate

api_post_exchange_rate
Destructive

Convert between currencies with real-time exchange rates Uses the OneSimpleAPI API (https://onesimpleapi.com/docs), with the same permissions, credits and storage. Supply API parameters in query or body. This tool always uses POST; do not supply method. Outputs preserve HTTP status, headers and JSON/text/base64 body; redirects are returned without following them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "api_post_exchange_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoAPI request body. Nested objects, arrays, HTML, base64 data and all API options retain their original meaning.
pathNo
filesNoMultipart uploads keyed by API field name (for example pdf). Supply file_name, base64 bytes and optional mime_type. Uploads use the existing API file validators.
queryNoURL query parameters. Sensitive API options must be in body as documented by the API.
headersNoAPI request headers such as Idempotency-Key, Range and If-None-Match. Authentication and transport headers are managed by the connection.
content_typeNoDefaults to application/json, or multipart/form-data when files are supplied.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

The description adds genuine behavior beyond the annotations: outputs preserve HTTP status, headers and JSON/text/base64 body, redirects are returned unfollowed, and calls consume OneSimpleAPI credits/storage under the same permissions. However, it never explains why this tool carries destructiveHint=true or whether repeated calls are safe, which is the most consequential open question for an agent.

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 core purpose is front-loaded in the first clause, and the remaining sentences cover API provenance, parameter placement, and output/redirect behavior without padding. The parenthetical documentation URL is the only mildly expendable element.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter, zero-required, nested-object tool with no output schema, the definition covers invocation and response envelope shape reasonably well. What it leaves unexplained is the destructive/storage implication and what the converted value actually looks like in the returned body when 'output' is not json.

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 coverage is 83%, so the schema already documents the conversion fields and their enum options; baseline is 3. The description only clarifies that parameters may be supplied in either query or body, which resolves a real ambiguity created by the duplicated structure but adds no meaning about individual parameters.

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?

"Convert between currencies with real-time exchange rates" gives a specific verb (convert) and resource (currencies), so the tool's function is unambiguous. It does not explicitly distinguish itself from any sibling, though none of the listed siblings appear currency-related, so confusion risk is low.

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?

Usage is implied purely by the purpose statement; there is no explicit guidance on when to prefer this over another tool. The invocation-level advice ("Supply API parameters in query or body. This tool always uses POST; do not supply method") is helpful mechanically but is not when-to-use guidance.

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