canton-mcp

v0.2.3
io.github.Noves-Inc/canton-mcp Checked 1 day ago Published 6 months ago

Query Canton Network balances, rewards, transactions, prices, and identity from any AI agent.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

resolve_party Resolve a Canton party

Resolve a human-friendly query (ANS name, display name, or raw party ID) to a canonical Canton party. Returns the party ID, display name, org type (validator / app / sv / unknown), current CC balance, ANS names, and update count. If the query is ambiguous, returns a candidate list to choose from. Use this first whenever the user refers to a party by name.

ParameterTypeDescription
query *stringANS name (e.g. noves.unverified.cns), display name fragment (e.g. Cumberland), or raw party ID (name::hash).
chainstringChain to query. Defaults to "canton" (currently the only supported chain).

search_directory Search the Canton network directory

Browse or search the Canton network directory of known parties (validators, apps, super validators). Filter by orgType and/or a free-text query. Returns party ID, display name, org type, and current CC balance. Ask "who are the super validators?" → orgType: "sv".

ParameterTypeDescription
chainstringChain to query. Defaults to "canton" (currently the only supported chain).
limitintegerMax results to return (default 25, max 100).
orgTypestringFilter by organization type. sv = super validator.
querystringFree-text search over names.

get_balance Get a party's balance

Get a Canton party's CC balance (total, locked, unlocked) with USD values — current, or at any point in time via the optional date. "What was X's balance on January 1?" → date: "2026-01-01".

ParameterTypeDescription
party *stringThe party to query — accepts an ANS name (e.g. noves.unverified.cns), a display name (e.g. Cumberland), or a raw Canton party ID (name::hash).
chainstringChain to query. Defaults to "canton" (currently the only supported chain).
datestringPoint-in-time balance: ISO date (2026-01-01), ISO datetime, or unix timestamp. Omit for current.

get_balance_history Get a party's balance history

Get a Canton party's daily CC balance series. Each row is the end-of-day (UTC) snapshot for that date. Defaults to the last 30 days when no range is given.

ParameterTypeDescription
party *stringThe party to query — accepts an ANS name (e.g. noves.unverified.cns), a display name (e.g. Cumberland), or a raw Canton party ID (name::hash).
chainstringChain to query. Defaults to "canton" (currently the only supported chain).
endDatestringRange end (inclusive): ISO date, ISO datetime, or unix timestamp.
startDatestringRange start: ISO date, ISO datetime, or unix timestamp.

get_rewards Get a party's rewards

Get a Canton party's mining/validator rewards. Three granularities: "summary" (default) — current earnings metrics (latest round, 1h avg, 24h avg, incl. post-traffic-cost CC/USD); "daily" — per-day totals over a date range (max 90 days per call); "transfers" — individual reward transfers. Optionally filter by rewardType.

ParameterTypeDescription
party *stringThe party to query — accepts an ANS name (e.g. noves.unverified.cns), a display name (e.g. Cumberland), or a raw Canton party ID (name::hash).
chainstringChain to query. Defaults to "canton" (currently the only supported chain).
endDatestringRange end (inclusive): ISO date, ISO datetime, or unix timestamp.
granularitystringsummary = current earnings metrics; daily = per-day totals; transfers = individual reward payouts.
limitintegerMax transfer rows when granularity is transfers (default 25, max 100).
rewardTypestringFilter to one reward type (transfers granularity only).
startDatestringRange start: ISO date, ISO datetime, or unix timestamp.

get_transactions Get a party's classified transactions

Get a Canton party's transaction history, classified into human-readable types (transfer, mergeSplit, validatorRewards, appRewards, svRewards, buyTraffic, issueCoupon, redeemCoupon, paySubscription, validatorLicenseActivityReport, …). Returns compact rows (id, time, type, roles, transfer summary) sorted newest-first. Use get_transaction for the full payload of one update. Set includeCount: true to also get the total update count for the window.

ParameterTypeDescription
party *stringThe party to query — accepts an ANS name (e.g. noves.unverified.cns), a display name (e.g. Cumberland), or a raw Canton party ID (name::hash).
chainstringChain to query. Defaults to "canton" (currently the only supported chain).
endDatestringRange end (inclusive): ISO date, ISO datetime, or unix timestamp.
includeCountbooleanAlso return the total number of updates in the window (one extra API call).
limitintegerMax rows (default 25, max 100).
startDatestringRange start: ISO date, ISO datetime, or unix timestamp.
txTypestringFilter to one classification type (e.g. transfer, buyTraffic, validatorRewards). Filtered client-side over recent pages.

get_transfer_stats Get a party's transfer statistics

Get aggregate CC transfer statistics for a Canton party: total/sent/received counts, volumes, and unique counterparty count — optionally over a date range.

ParameterTypeDescription
party *stringThe party to query — accepts an ANS name (e.g. noves.unverified.cns), a display name (e.g. Cumberland), or a raw Canton party ID (name::hash).
chainstringChain to query. Defaults to "canton" (currently the only supported chain).
endDatestringRange end (inclusive): ISO date, ISO datetime, or unix timestamp.
startDatestringRange start: ISO date, ISO datetime, or unix timestamp.

get_price Get the Canton Coin (CC) price

Get the Canton Coin (CC) USD price. No arguments → current spot price. timestamp → historical spot at that moment. startDate+endDate → OHLC series (interval: "hourly" or "daily", default daily). Good for "what's the CC price trend over the past month?".

ParameterTypeDescription
chainstringChain to query. Defaults to "canton" (currently the only supported chain).
endDatestringHistory range end.
intervalstringOHLC bucket size for range queries.
startDatestringHistory range start (use with endDate).
timestampstringHistorical spot price at this moment: ISO date, ISO datetime, or unix timestamp.

get_transaction Get one transaction in full detail

Get the full classified detail of a single Canton update (transaction) by its update ID, including the complete payload: classification, all parties and roles, transfers, values, and raw transaction data. Use after get_transactions when you need everything about one update.

ParameterTypeDescription
updateId *stringThe update ID (from get_transactions rows).
chainstringChain to query. Defaults to "canton" (currently the only supported chain).