Skip to main content
Glama

dependency_docs_getter

Extract documentation and public API for a project's dependency to understand its exact version and functionality.

Instructions

Extract all the documentation and public API for a dependency of a local project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the dependency for which to extract documentation
dependant_pathYesThe absolute path to the dependant project

Implementation Reference

  • Implementation of the dependency_docs_getter tool, including the handler callback that extracts and returns documentation.
    export const dependencyDocsGetter: Tool<typeof dependencyDocsGetterParameters> =
      {
        name: 'dependency_docs_getter',
        description:
          'Extract all the documentation and public API for a dependency of a local project',
        parameters: dependencyDocsGetterParameters,
        callback: async ({ name, dependant_path }) => {
          const docs = await extractDependencyDocs(name, dependant_path);
          return {
            content: [{ type: 'text', text: docs }],
          };
        },
      };
  • Zod schema defining the input parameters for the tool: name and dependant_path.
    const dependencyDocsGetterParameters = {
      name: z.string({
        description:
          'The name of the dependency for which to extract documentation',
      }),
      dependant_path: z.string({
        description: 'The absolute path to the dependant project',
      }),
    } as const;
  • Core helper function that loads a dependency using Library.loadDependency and generates Markdown documentation.
    async function extractDependencyDocs(
      name: string,
      dependant_path: string,
    ): Promise<string> {
      const dependency = await Library.loadDependency(name, dependant_path);
      return dependency.generateMarkdownDocumentation();
    }
  • src/tools/index.ts:1-4 (registration)
    Tool registration by importing and including dependencyDocsGetter in the ALL_TOOLS export array.
    import { dependencyDocsGetter } from './DependencyDocsGetter.js';
    import type { Tool } from './Tool.js';
    
    export const ALL_TOOLS: Tool<any>[] = [dependencyDocsGetter];
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions 'extract' but does not specify how the extraction works (e.g., from local files, online sources, or cached data), what permissions are needed, or any side effects like network calls or file access. This leaves significant gaps in understanding the tool's behavior.

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, clear sentence that directly states the tool's purpose without unnecessary words or fluff. It is appropriately sized and front-loaded, making it efficient and easy to understand.

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 and output schema, the description is incomplete. It does not explain what the tool returns (e.g., the format of extracted documentation), potential errors, or behavioral details like rate limits or dependencies. For a tool with no structured data beyond the input schema, more context is needed to be fully helpful.

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?

The schema description coverage is 100%, meaning the input schema already documents both parameters ('name' and 'dependant_path') adequately. The description does not add any additional meaning or context beyond what the schema provides, such as examples or constraints, so it meets the baseline for 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 action ('extract') and the target ('documentation and public API for a dependency of a local project'), providing a specific verb+resource combination. However, since there are no sibling tools mentioned, it cannot demonstrate differentiation from alternatives, which prevents a perfect score.

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?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or exclusions. It simply states what the tool does without context for its application, leaving the agent with no usage instructions.

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/daipendency/daipendency-mcp'

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