Skip to main content
Glama

估算使用某個 AI 模型 API 的花費

aitools__estimate_ai_api_cost_twd
Read-onlyIdempotent

[台灣 AI 工具價格]估算使用某個 AI 模型 API 的花費(美元與新台幣)。文字模型給 input_tokens/output_tokens,繪圖給 images,影片給 seconds,語音給 characters。

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": {
      "model": "<model>"
    },
    "name": "aitools__estimate_ai_api_cost_twd"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYes
imagesNo
secondsNo
charactersNo
input_tokensNo
cached_tokensNo
output_tokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so safety is covered. The description adds that results are in both USD and TWD, which matters because there is no output schema. It does not say where the valid model identifiers come from, even though the tool is open-world and the model is required.

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?

One compact sentence plus a domain tag; the verb and currencies come first, and the parameter routing follows. Dense but every clause carries information, with no filler.

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 seven-parameter tool with no output schema and no nested objects, the mapping of parameters to modalities is a good start, but cached_tokens is unaddressed and there is no hint about accepted model identifiers or units. Adequate rather than complete.

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 description coverage is 0%, so the description carries the full burden, and it maps five of the seven parameters to modalities (input_tokens and output_tokens, images, seconds, characters), which the schema alone does not convey. Only cached_tokens goes unexplained.

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 states a specific verb and resource: estimating the API cost of using a given AI model, returned in both USD and TWD. The bracketed tag identifies the pricing domain, which helps separate it from the sibling tool 'get_ai_api_pricing' and from 'compare_ai_subscriptions', but neither sibling is named explicitly.

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 guidance is about which inputs to supply per modality: for text give input_tokens and output_tokens, for images give images, for video give seconds, and for voice give characters. This is genuinely useful routing for the caller, but nothing says when to use this tool instead of the pricing lookup or subscription comparison tools, and no prerequisites are stated.

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