Skip to main content
Glama

listDatasets

Retrieve all available datasets from Axiom to view and manage your data sources.

Instructions

List all available Axiom datasets

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'listDatasets' tool. It checks rate limiting, lists all Axiom datasets using client.datasets.list(), and returns them as a JSON string in the MCP response format.
    async () => { const remainingTokens = datasetsLimiter.tryRemoveTokens(1); if (!remainingTokens) { throw new Error("Rate limit exceeded for dataset operations"); } try { const datasets = await client.datasets.list(); return { content: [ { type: "text", text: JSON.stringify(datasets), }, ], }; } catch (error) { throw new Error(`Failed to list datasets: ${error.message}`); } }
  • index.js:149-173 (registration)
    The registration of the 'listDatasets' tool using server.tool(), including name, description, empty input schema, and inline handler function.
    server.tool( "listDatasets", "List all available Axiom datasets", {}, async () => { const remainingTokens = datasetsLimiter.tryRemoveTokens(1); if (!remainingTokens) { throw new Error("Rate limit exceeded for dataset operations"); } try { const datasets = await client.datasets.list(); return { content: [ { type: "text", text: JSON.stringify(datasets), }, ], }; } catch (error) { throw new Error(`Failed to list datasets: ${error.message}`); } } );
  • The input schema for the 'listDatasets' tool, which is empty as it takes no parameters.
    {},

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/ThetaBird/mcp-server-axiom-js'

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