Skip to main content
Glama

library_docs

Read-only

Fetch official docs for any library and get a distilled answer to your specific question, with optional version pinning and caching for offline reuse.

Instructions

Fetch up-to-date official documentation for a library and distill it under your question.

Context7-style, but local and unlimited: the docs site is resolved from a built-in index (or one live web search), fetched from the primary source, and distilled to passages relevant to query. Repeated questions about the same library are instant, offline and free (raw-page cache). Args: library: library name, e.g. "fastapi", "react", "postgresql", "crawl4ai" query: your concrete question about the library (used for distillation) max_chars: output character budget (300-20000) refresh: re-fetch the docs page even if cached subpages: when the docs home is navigational, follow this many same-site subpages ranked by query relevance (0 disables) version: pin docs to this version (tag, e.g. "0.115.0", "v3", branch name). Works for GitHub-backed libraries: docs come from that exact tag on raw.githubusercontent.com. Doc sites are shown at their latest with an honest note; wrong/missing tag on GitHub also falls back to latest with a note in the answer

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
libraryYes
refreshNo
versionNo
subpagesNo
max_charsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare readOnlyHint and openWorldHint, so the description builds on that with valuable behavioral details: caching behavior, version pinning fallback ('wrong/missing tag on GitHub also falls back to latest with a note'), subpages navigation logic, and the fact that output is distilled passages rather than full docs. No contradictions with annotations.

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 longer than average but well-structured: a clear opening sentence, a Context7-style comparison, a bullet list of parameters, and notes on version behavior. Every sentence contributes meaning; it is detailed but not wasteful. Slight redundancy ('local and unlimited' vs caching) but overall efficient.

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

Completeness5/5

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

Given the tool's complexity (6 params, output schema present), the description is remarkably complete. It covers parameter semantics, edge cases (version fallback), caching, distillation, and output constraints. An agent has all necessary information to call the tool correctly, including what to expect in the answer.

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

Parameters5/5

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

Schema coverage is 0%, so the description carries the full burden. It explains every parameter: library with examples, query for distillation, max_chars as character budget, refresh for cache bypass, subpages with '0 disables', and version with tag examples and fallback behavior. This fully compensates for the lack of 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 opens with a specific verb and resource: 'Fetch up-to-date official documentation for a library and distill it under your question.' It clearly identifies the tool's unique function (distillation) and distinguishes it from general web search or URL reading by its focus on library docs and local caching.

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

Usage Guidelines4/5

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

The description provides strong usage context: it explains the built-in index, caching benefits ('instant, offline and free'), and the distillation process. It mentions 'Context7-style' as a comparison but does not explicitly name sibling tools or state when NOT to use them. However, the context is clear enough for an agent to infer appropriate usage for library documentation queries.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.