Skip to main content
Glama

get_quote

What one call would cost, fully checked, with NOTHING paid. Give a capability (the best listing on the Kaspa Agent Market is quoted, ranked by policy: registry | cheapest | reputation) or an endpoint (+ its listed payee_pubkey so the quote can be checked against it). Fetches the provider's 402 and returns the kUSD requirement: cents, the per-offer payee key, payment_id, wire, the full outlay (cents + 1.5 KAS in the box + fee), the checks that passed (our family, our network, payTo = the listed key tweaked by the offer, price within the cap) and what the operator's policy has left. A quote the policy or the checks refuse comes back as {error, code}. Local (stdio) k402-mcp only.

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": "get_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
policyNoregistry
endpointNo
capabilityNo
payee_pubkeyNo
request_bodyNo
max_price_centsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does much of it: it discloses that nothing is paid, enumerates the checks performed (family, network, payTo key tweak, price cap), gives the failure shape {error, code}, and states the local-stdio-only constraint. It omits permission/auth requirements and whether quoting mutates any session state.

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 value proposition is front-loaded and every sentence conveys scope rather than filler. The long parenthetical clauses and dense jargon (payTo tweak, the 402, outlay) make it harder to parse than necessary, but nothing is gratuitous.

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?

The return payload is described thoroughly enough to substitute for a missing output schema, which is a real strength. However, for a 7-parameter tool with no annotations and no schema descriptions, leaving `path` and `request_body` unexplained and never stating which parameters are required to actually get a quote is a meaningful gap.

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 0% across 7 parameters, so the description must compensate and it only partly does: it adds real meaning for `policy` (registry | cheapest | reputation), `capability`, `endpoint`, `payee_pubkey`, and implicitly `max_price_cents` ('price within the cap'). `path` and `request_body` are never mentioned, and nothing explains the interaction between capability and endpoint when both are supplied.

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?

The opening sentence gives a specific verb (quote), the resource (a call's cost), and a scope distinction ('with NOTHING paid') that separates it from siblings like pay_kusd and pay_per_call. An agent can tell this is the pre-payment estimation step without opening any schema.

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?

It states the two mutually exclusive ways to target a quote — a `capability` or an `endpoint` plus its `payee_pubkey` — and explains how `policy` ranks the chosen listing. It stops short of explicitly naming the sibling to use afterward (e.g. pay_kusd), so the when-not guidance is implied rather than 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