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 [];
      }
    };
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It implies this is a read-only operation ('Get a list'), which is consistent with a listing tool, but doesn't disclose behavioral traits like rate limits, authentication needs, or pagination. The description adds some context about the workflow but lacks details on how the list is returned or any constraints.

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

Conciseness5/5

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

The description is concise and well-structured in two sentences. The first sentence states the purpose, and the second provides usage guidelines. Every sentence earns its place with no wasted words, making it easy to understand quickly.

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

Completeness4/5

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

Given the tool's low complexity (0 parameters, no output schema, no annotations), the description is reasonably complete. It explains the purpose and usage, which is sufficient for a simple listing tool. However, it could be more complete by mentioning the format of the returned list or any limitations, but the absence of an output schema doesn't heavily penalize this.

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

Parameters4/5

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

The input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description doesn't add parameter semantics, but this is acceptable as there are no parameters. A baseline of 4 is appropriate since the schema fully covers the absence of parameters.

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's purpose: 'Get a list of all available Aptos development resources.' It uses a specific verb ('Get') and resource ('Aptos development resources'), making the intent unambiguous. However, it doesn't explicitly differentiate from all sibling tools, though it mentions one sibling (get_specific_aptos_resource).

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

Usage Guidelines5/5

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

The description provides explicit usage guidance: 'Use this first to see what guidance is available, then use get_specific_aptos_resource to fetch the relevant one.' This clearly indicates when to use this tool (first, for listing) versus an alternative (get_specific_aptos_resource, for fetching specific resources), establishing a workflow.

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

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