Skip to main content
Glama

exchangeAssets

Retrieve the asset holdings or token balances of a cryptocurrency exchange by specifying its CoinMarketCap ID or slug.

Instructions

Returns the assets/token holdings of an exchange.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
slugNo

Implementation Reference

  • index.js:439-451 (registration)
    The tool 'exchangeAssets' is registered via server.tool() with a description, parameter schema (id and slug as optional strings), and a handler that makes an API request to '/v1/exchange/assets' and formats the response.
    server.tool("exchangeAssets",
      "Returns the assets/token holdings of an exchange.",
      {
        id: z.string().optional(),
        slug: z.string().optional()
      },
      async (params) => {
        return handleEndpoint(async () => {
          const data = await makeApiRequest(apiKey, '/v1/exchange/assets', params)
          return formatResponse(data)
        })
      }
    )
  • The handler function for exchangeAssets calls handleEndpoint which wraps an async callback that makes an API request to '/v1/exchange/assets' with the provided parameters and formats the response.
    async (params) => {
      return handleEndpoint(async () => {
        const data = await makeApiRequest(apiKey, '/v1/exchange/assets', params)
        return formatResponse(data)
      })
    }
  • The input schema for exchangeAssets accepts 'id' and 'slug' as optional string parameters.
    {
      id: z.string().optional(),
      slug: z.string().optional()
    },
Behavior1/5

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

With no annotations, the description carries the full burden of behavioral disclosure, but it only states the output. It does not mention whether the operation is read-only, requires authentication, has rate limits, or any other behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single-sentence description is concise, but it borders on under-specification. While it avoids fluff, it sacrifices necessary detail. It earns a baseline score for being direct.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations, no output schema, and many sibling tools, the description is far from complete. It fails to provide enough context for an agent to understand parameter usage or tool selection.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has two parameters ('id' and 'slug') with zero description coverage, and the tool description provides no explanation of how these parameters identify an exchange or their relationship. The agent cannot infer correct usage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool returns 'assets/token holdings of an exchange', establishing a specific verb and resource. However, it does not differentiate from sibling tools like 'exchangeInfo' or 'exchangeMap', so it's not a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives, nor are there any conditions or prerequisites mentioned. The agent has no context for selecting this over other exchange-related tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shinzo-labs/coinmarketcap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server