Skip to main content
Glama

list_aptos_resources

Discover available Aptos development resources to identify relevant guidance for blockchain projects. Use this tool to explore options before selecting specific documentation.

Instructions

Get a list of all available Aptos development resources. Use this first to see what guidance is available, then use get_specific_aptos_resource to fetch the relevant one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration and handler implementation for list_aptos_resources tool.
    server.addTool({
      description:
        "Get a list of all available Aptos development resources. Use this first to see what guidance is available, then use get_specific_aptos_resource to fetch the relevant one.",
      execute: async () => {
        const availableFiles = getAvailableHowToResources();
    
        return {
          text: `Available Aptos development resources:\n${availableFiles.map((f) => `- ${f}`).join("\n")}\n\nUse get_specific_aptos_resource with the exact filename to retrieve content.`,
          type: "text",
        };
      },
      name: "list_aptos_resources",
      parameters: z.object({}),
    });
  • Helper function used by list_aptos_resources to retrieve available markdown resources.
    export const getAvailableHowToResources = () => {
      try {
        const howToDir = pathJoin(resourcesDir, "how_to");
        const files = fs.readdirSync(howToDir);
        return files
          .filter((file) => extname(file).toLowerCase() === ".md")
          .map((file) => basename(file, extname(file)));
      } catch (err) {
        console.error(`Error reading how_to directory: ${err}`);
        return [];
      }
    };

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/aptos-labs/aptos-npm-mcp'

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