Skip to main content
Glama

get_specific_aptos_resource

Retrieve Aptos development resources by exact filename to access specific blockchain integration guides and documentation.

Instructions

Retrieve a specific Aptos development resource by its exact filename (without .md extension).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYesExact filename of the resource (e.g., 'how_to_add_wallet_connection', 'how_to_config_a_full_node_api_key_in_a_dapp', 'how_to_integrate_fungible_asset')

Implementation Reference

  • The handler function for the 'get_specific_aptos_resource' tool. It validates the existence of the requested resource and reads it from the 'how_to' directory.
    execute: async (args) => {
      const { filename } = args;
      const availableFiles = getAvailableHowToResources();
    
      if (!availableFiles.includes(filename)) {
        return {
          text: `Resource '${filename}' not found. Available resources:\n${availableFiles.join("\n")}`,
          type: "text",
        };
      }
    
      const content = await readMarkdownFromDirectory("how_to", filename);
      return {
        text: content,
        type: "text",
      };
    },
  • Input schema definition for the 'get_specific_aptos_resource' tool.
    parameters: z.object({
      filename: z
        .string()
        .describe(
          "Exact filename of the resource (e.g., 'how_to_add_wallet_connection', 'how_to_config_a_full_node_api_key_in_a_dapp', 'how_to_integrate_fungible_asset')"
        ),
    }),
  • src/server.ts:108-136 (registration)
    Tool registration for 'get_specific_aptos_resource' using the server instance.
    server.addTool({
      description:
        "Retrieve a specific Aptos development resource by its exact filename (without .md extension).",
      execute: async (args) => {
        const { filename } = args;
        const availableFiles = getAvailableHowToResources();
    
        if (!availableFiles.includes(filename)) {
          return {
            text: `Resource '${filename}' not found. Available resources:\n${availableFiles.join("\n")}`,
            type: "text",
          };
        }
    
        const content = await readMarkdownFromDirectory("how_to", filename);
        return {
          text: content,
          type: "text",
        };
      },
      name: "get_specific_aptos_resource",
      parameters: z.object({
        filename: z
          .string()
          .describe(
            "Exact filename of the resource (e.g., 'how_to_add_wallet_connection', 'how_to_config_a_full_node_api_key_in_a_dapp', 'how_to_integrate_fungible_asset')"
          ),
      }),
    });
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions retrieval by exact filename but doesn't disclose behavioral aspects like error handling (e.g., what happens if filename doesn't exist), response format, authentication needs, or rate limits. The description is minimal and lacks operational context.

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 a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's front-loaded and every part contributes to understanding the tool's function.

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?

For a tool with no annotations and no output schema, the description is too minimal. It doesn't explain what the retrieved resource contains, how it's formatted, or potential errors. Given the complexity of retrieving development resources, more context about the return value and usage constraints would be beneficial.

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

Parameters3/5

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

Schema description coverage is 100%, with the parameter 'filename' well-documented in the schema. The description adds minimal value by reinforcing the exact filename requirement and providing examples, but doesn't go beyond what the schema already specifies. Baseline 3 is appropriate given high schema coverage.

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 verb 'retrieve' and the resource 'Aptos development resource', specifying it's by exact filename without .md extension. It distinguishes from the sibling 'list_aptos_resources' by focusing on a single resource rather than listing, though it doesn't explicitly name that sibling.

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

Usage Guidelines3/5

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

The description implies usage when you need a specific resource by filename, but doesn't provide explicit guidance on when to use this versus alternatives like 'list_aptos_resources' or other sibling tools. No prerequisites or exclusions are mentioned.

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