Skip to main content
Glama

Get latest Perps rate

perps_latest_rate
Read-onlyIdempotent

Read-only. Get the latest rate of a contract. Use the price as the slippage reference for the order 'price' field before each market order.

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": {
      "contractId": "<contractId>"
    },
    "name": "perps_latest_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
contractIdYesNumeric contract id from perps_list_contracts. 0 is a real contract id, not a placeholder for "unset".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the leading 'Read-only' adds nothing new. The description does add real value by explaining what the returned rate is for (slippage reference for the order price field), but for a 'latest rate' tool it omits freshness/staleness behavior and what exactly is returned.

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?

Two short, front-loaded sentences with no filler; the usage instruction follows directly from the purpose. The standalone 'Read-only.' sentence duplicates the annotation and is the only minor waste.

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?

With no output schema, the description carries the burden of explaining the return value; it implies a price/rate is returned but gives no field names, units, or staleness guarantee. Adequate for a simple single-parameter getter, but an agent still has to discover the response shape empirically.

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 description coverage is 100% and the schema already documents contractId fully, including the important '0 is a real contract id' caveat. The description adds no parameter meaning beyond that schema, so the baseline of 3 applies.

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?

States a specific verb and resource ('Get the latest rate of a contract') with enough precision to distinguish it from sibling getters like perps_get_order or perps_list_contracts. It does not explicitly say what it is not, but the resource is narrow enough that confusion is unlikely.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use guidance: use the returned price as the slippage reference for the order 'price' field before each market order, which implicitly points at the order-preparation flow. It stops short of naming an alternative tool or stating exclusions, but the context is clear.

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