get_token_standards
Retrieve Stacks blockchain token standards including SIP-009 for NFTs and SIP-010 for fungible tokens with Clarity trait definitions and implementation guidance.
Instructions
Get the essential token standards for Stacks - SIP-009 (NFT) and SIP-010 (Fungible Token) complete with Clarity trait definitions and implementation guidance.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:88-96 (registration)Registers the 'get_token_standards' tool with the FastMCP server. Includes name, description, schema (empty input: z.object({})), and inline handler that executes getTokenStandardSIPs() and formats the response.server.addTool({ name: "get_token_standards", description: "Get the essential token standards for Stacks - SIP-009 (NFT) and SIP-010 (Fungible Token) complete with Clarity trait definitions and implementation guidance.", parameters: z.object({}), execute: async () => { const standards = await getTokenStandardSIPs(); return { text: standards, type: "text" }; }, });
- src/utils/index.ts:251-256 (helper)Core helper function that fetches SIP-009 (NFT) and SIP-010 (FT) content using getSIPContent and combines them into a single markdown document with header.export const getTokenStandardSIPs = async (): Promise<string> => { const nftStandard = await getSIPContent("009"); const ftStandard = await getSIPContent("010"); return `# TOKEN STANDARDS\n\n${nftStandard}\n\n${ftStandard}`; };