Skip to main content
Glama

实时价格

get_price
Read-onlyIdempotent

某市场(或标的)当前链上实时执行价(主流与 24/7 XAU 连续黄金指数等来自 Pyth 实时报价,Meme 币本位来自链上 DEX TWAP 喂价):买一、卖一和中间价(美元)。开多/平空按卖一成交,开空/平多按买一成交。

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": {
      "market": "<market>"
    },
    "name": "get_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketYes市场:短链接 slug、市场合约地址、代币地址、代币代号,或标的代号如 BTC / ETH / XAU(表示该标的的官方市场)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / market / maxLength
      Removed value: -80
    • removedInput schema / properties / market / minLength
      Removed value: -1
    • removedInput schema / properties / market / type
      Removed value: -"string"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds real behavior beyond that: the source of each price (Pyth real-time quotes vs on-chain DEX TWAP for memecoins) and the execution semantics that map bid and ask to order fills. What it does not disclose is staleness, latency or whether the price is a live snapshot.

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 definition is one tightly front-loaded sentence that leads with the subject and resource, and it keeps its extra content (data sources, execution rules) brief. It is dense, with nested parentheses, but it contains no filler or repetition.

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

Completeness5/5

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

For a single-parameter, read-only tool with no output schema, the description covers the missing return shape (bid, ask and mid, in USD) and explains how the values are produced. An agent can call this correctly and interpret the result without further information.

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?

There is one parameter with 100% schema coverage, and the schema already lists every accepted form (slug, market address, token address, ticker, or underlying such as BTC/ETH/XAU), so the baseline is 3. The description does not add anything to how 'market' is resolved. Its extra meaning concerns the price fields, not the parameter.

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 gives a precise verb-and-resource statement: the current on-chain real-time execution price of a market or underlying, with bid, ask and mid in USD. It also implicitly rules out historical candles and market metadata. But it does not name any sibling tools, so an agent must infer the boundary with get_candles and get_market.

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 adds genuinely useful interpretation: opening a long or closing a short fills at the ask, and opening a short or closing a long fills at the bid, which tells an agent how to use the value. However, it never says when to choose this tool over get_candles or get_market, and it gives no explicit exclusions or prerequisites. Usage is therefore only implied.

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