list_asset
Look up an asset by name or synonym to retrieve its trading venues, collateral tokens, open interest per venue, and synonyms list.
Instructions
Lookup one asset by canonical name or synonym. Returns every venue it trades on, collateral tokens, open interest per venue, and synonyms list. Accepts both canonical names (GOLD, BTC) and synonyms (PAXG, XAUT) — the server resolves them. Use when the user mentions a specific asset and you need its venue availability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| useToonFormat | No | Return data in compact toon format (default: true). Set to false for standard JSON. | |
| canonical | Yes | Canonical asset name or synonym. Examples: 'GOLD', 'PAXG', 'BTC', 'SILVER', 'HYPE'. The server resolves synonyms to canonical. |
Implementation Reference
- src/index.ts:310-322 (registration)Registration of the 'list_asset' tool via server.registerTool(). The tool is registered with input schema requiring 'canonical' (asset name or synonym) and optional 'useToonFormat'. It calls the API endpoint /assets/{canonical}.
if (shouldRegister("list_asset")) server.registerTool( "list_asset", { description: "Lookup one asset by canonical name or synonym. Returns every venue it trades on, collateral tokens, open interest per venue, and synonyms list. Accepts both canonical names (GOLD, BTC) and synonyms (PAXG, XAUT) — the server resolves them. Use when the user mentions a specific asset and you need its venue availability.", inputSchema: { useToonFormat: useToonFormatSchema, canonical: z.string().min(1).max(40).describe("Canonical asset name or synonym. Examples: 'GOLD', 'PAXG', 'BTC', 'SILVER', 'HYPE'. The server resolves synonyms to canonical."), }, }, async ({ useToonFormat, canonical }) => { return toolResult(await callAPI(useToonFormat, `/assets/${encodeURIComponent(canonical)}`)); } ); - src/index.ts:319-321 (handler)The handler function for 'list_asset'. It receives 'useToonFormat' and 'canonical', then calls the API at `/assets/{canonical}` using the callAPI helper. The canonical parameter is URL-encoded to handle special characters.
async ({ useToonFormat, canonical }) => { return toolResult(await callAPI(useToonFormat, `/assets/${encodeURIComponent(canonical)}`)); } - src/index.ts:313-318 (schema)Input schema for 'list_asset'. Defines two parameters: 'useToonFormat' (optional boolean, defaults to true) and 'canonical' (required string, 1-40 chars) for the asset name or synonym.
description: "Lookup one asset by canonical name or synonym. Returns every venue it trades on, collateral tokens, open interest per venue, and synonyms list. Accepts both canonical names (GOLD, BTC) and synonyms (PAXG, XAUT) — the server resolves them. Use when the user mentions a specific asset and you need its venue availability.", inputSchema: { useToonFormat: useToonFormatSchema, canonical: z.string().min(1).max(40).describe("Canonical asset name or synonym. Examples: 'GOLD', 'PAXG', 'BTC', 'SILVER', 'HYPE'. The server resolves synonyms to canonical."), }, },