Skip to main content
Glama
docfork

Docfork

Official
by docfork

Get Library Documentation

get-library-docs

Retrieve comprehensive documentation and code examples for any library by providing its name and a specific topic. Automatically fetches relevant sections, ensuring up-to-date information for accurate coding.

Instructions

Retrieves up-to-date documentation and code examples for any library. This tool automatically searches for the library by name and fetches its documentation.

Usage:

  1. Provide the author and library name pair (e.g., "vercel/next.js", "shadcn-ui/ui", "vuejs/docs")

  2. Specify a topic to focus the documentation on (e.g., "dynamic", "routing", "authentication")

The tool will:

  1. Automatically find and select the most relevant library based on the provided name

  2. Fetch comprehensive documentation for the selected library

  3. Return relevant sections focused on the specified topic

Response includes:

  • Library selection explanation

  • Comprehensive documentation with code examples

  • Focused content if a topic was specified

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
libraryNameYesAuthor and library name pair to search for and retrieve documentation (e.g., 'vercel/next.js', 'reactjs/react.dev', 'vuejs/docs')
tokensNoMaximum number of tokens of documentation to retrieve (default: 15000). Higher values provide more context but consume more tokens.
topicYesTopic to focus documentation on (e.g., 'hooks', 'routing', 'authentication')
Behavior4/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 effectively describes the tool's behavior: automatic library search, fetching comprehensive documentation, topic-focused returns, and response content details. However, it doesn't mention potential limitations like rate limits, authentication needs, or error conditions.

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

Conciseness4/5

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

The description is well-structured with clear sections (purpose, usage steps, tool actions, response content). While slightly verbose, every sentence adds value by explaining different aspects of the tool's functionality. It could be more concise by combining some explanatory elements.

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 moderate complexity (3 parameters, no output schema, no annotations), the description provides good coverage of what the tool does, how to use it, and what to expect. It explains the automatic search behavior, response format, and parameter usage adequately, though it doesn't cover edge cases or error handling.

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%, so the schema already documents all three parameters thoroughly. The description adds minimal value beyond the schema by mentioning the library name format and topic examples in the usage steps, but doesn't provide additional semantic context beyond what's in the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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 with specific verbs ('retrieves', 'searches', 'fetches') and resources ('documentation and code examples for any library'). It distinguishes the tool by explaining it automatically finds libraries by name and fetches comprehensive documentation, which is a complete and specific purpose statement.

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 provides implied usage through numbered steps and what the tool will do, but lacks explicit guidance on when to use this tool versus alternatives. Since there are no sibling tools mentioned, the absence of comparative guidance is less critical, but no explicit when/when-not instructions are provided.

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

Related 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/docfork/docfork-mcp'

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