Skip to main content
Glama
This connector has been deprecated

duplicate

Price in crypto

price_in_crypto
Read-onlyIdempotent

Quote what a listing costs in a crypto asset right now. Asks NEAR Intents solvers how much of pay_with the buyer would send so the seller receives the listing's exact USD price (postage included) in USDC. Returns the piece, its USD price, the amount and asset to pay with its USD value, what the seller receives and on which chain, and the expected settlement time in seconds. Indicative and non-binding: it reserves nothing and charges nothing. Takes up to about 20 seconds. Fails with a clear message if the listing has no fixed price or NEAR Intents is unavailable.

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": {
      "id": "<id>",
      "pay_with": "<pay_with>"
    },
    "name": "price_in_crypto"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe listing's id, exactly as returned in the `id` field of search_listings results (a slug such as 'kaws-x-sesame-street-water-parade-elmo-figure').
chainNoOnly needed when the asset exists on several chains: ETH and USDC on Ethereum, Arbitrum or Base, USDC also on NEAR. Omit it otherwise.
pay_withYesThe crypto asset the buyer pays with. payment_options lists which chains each one is accepted on.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / chain / description
      Previous value: -"Optional chain when the asset exists on several, e.g. Arbitrum for ETH"New value: +"Only needed when the asset exists on several chains: ETH and USDC on Ethereum, Arbitrum or Base, USDC also on NEAR. Omit it otherwise."
    • addedInput schema / properties / chain / enum
      Added value: +[
      +  "Bitcoin",
      +  "Solana",
      +  "NEAR",
      +  "Ethereum",
      +  "Arbitrum",
      +  "Base",
      +  "Dogecoin",
      +  "Litecoin"
      +]
    • changedInput schema / properties / id / description
      Previous value: -"Listing id (the slug from search_listings)"New value: +"The listing's id, exactly as returned in the `id` field of search_listings results (a slug such as 'kaws-x-sesame-street-water-parade-elmo-figure')."
    • addedInput schema / properties / id / minLength
      Added value: +1
    • changedInput schema / properties / pay_with / description
      Previous value: -"What the buyer pays with: BTC, SOL, NEAR, ETH, USDC, USDT, DOGE or LTC"New value: +"The crypto asset the buyer pays with. payment_options lists which chains each one is accepted on."
    • addedInput schema / properties / pay_with / enum
      Added value: +[
      +  "BTC",
      +  "SOL",
      +  "NEAR",
      +  "ETH",
      +  "USDC",
      +  "USDT",
      +  "DOGE",
      +  "LTC"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive, and the description goes well beyond them: it discloses non-binding behavior (reserves nothing, charges nothing), an expected latency of ~20 seconds, and two explicit failure conditions. It also enumerates what the response contains, compensating for the absent output schema.

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?

Front-loaded with the core action, then payout mechanics, returns, and caveats in a logical order with no filler. The return-value sentence is a dense enumeration, but given there is no output schema that detail is justified rather than wasteful.

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 3-param, no-output-schema quote tool with openWorldHint, the description covers what it computes, what it returns, latency, cost-free/indicative semantics, and failure modes. An agent has everything needed to decide to call it and to interpret the result.

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%, with `id`, `chain` and `pay_with` all documented including enum meaning and when to omit `chain`. The description adds only marginal semantic value by naming `pay_with` and noting postage is included; the 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.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Quote what a listing costs in a crypto asset right now') and immediately clarifies the mechanism: asking NEAR Intents solvers how much `pay_with` the buyer sends so the seller receives the exact USD price in USDC. The 'indicative and non-binding' framing cleanly separates it from the purchase/offer siblings.

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?

Usage context is clear — this is a pre-purchase quote that reserves and charges nothing, and it explicitly notes failure when the listing has no fixed price or NEAR Intents is down. It stops short of naming a sibling (e.g. 'use start_purchase to actually buy' or 'payment_options to see accepted chains'), so the routing to alternatives is implied rather than explicit.

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