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
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| policy | No | registry | |
| endpoint | No | ||
| capability | No | ||
| payee_pubkey | No | ||
| request_body | No | ||
| max_price_cents | No |