Skip to main content
Glama

Engine Heart

exchange.query_exchange_rate

查询实时汇率并可做金额换算。base基准货币(代码或中文名),target目标货币,留空返回常用货币汇率;amount可选换算金额。主源Frankfurter(ECB),备源open.er-api.com。

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": "exchange.query_exchange_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNo基准货币,代码或中文名均可,默认美元USD
amountNo可选,要换算的金额
targetNo目标货币,代码或中文名均可;留空返回常用货币汇率

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. It does add genuine behavioral context by naming the data provenance (Frankfurter/ECB primary, open.er-api.com fallback), which tells the agent the data is authoritative and has a failover path. It omits refresh frequency, latency, caching, rate limits, and what happens on error, so the disclosure is partial.

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?

Tight and front-loaded: the capability is stated first, then parameter notes, then data sources. Every sentence carries information, though the parameter recap partially duplicates the schema and could be trimmed.

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 no-annotation, no-output-schema tool, the description covers inputs and data sources but says nothing about the return shape (rate only vs. rate plus converted amount), rounding, or error behavior. Enough to invoke correctly, but not enough to interpret the result confidently.

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 100%, so the schema already documents all three parameters, their defaults, and that both code and Chinese names are accepted. The description largely restates this, adding only the empty-target behavior, which the schema also states. Baseline 3 applies since the schema does the heavy lifting.

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 opens with a specific verb+resource pair: querying real-time exchange rates and converting amounts. It is unambiguous and distinct from every listed sibling (none of which touch FX). It stops short of a 5 only because it does not contrast itself with any alternative tool or mode.

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?

It gives an implied usage rule — leaving target empty returns rates for common currencies, and amount is optional for conversion — which tells the agent how to get the two different behaviors. However, it never frames this as when-to-use versus when-not-to-use, and gives no guidance on invalid currency inputs or failure handling.

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