Skip to main content
Glama

Aayat AI

Answer a coding question from current docs ($0.02)

docs-answer
Read-only

An answer written only from a library's current docs, with a code example and sources. ★ One of our best tools. Ask a coding question about any npm, PyPI, crates or Go library and get an answer written only from its current docs (project llms.txt, docs pages or latest README), with a code example where the docs show one, the version it applies to and cited sources. Says so when the docs don't cover it. Price: $0.02 in USDC per call (x402 or prepaid credits). Paid only (not in the free trial). Try docs-lib free first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
libraryYesLibrary/package name as published, e.g. hono, fastapi, serde, github.com/gin-gonic/gin.
questionYesYour question, e.g. How do I enable CORS for one route?
ecosystemNoPackage ecosystem: npm, pypi, crates (Rust) or go (Go modules).npm

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
answerYesMarkdown answer; [n] cites sources[n-1].
libraryYes
sourcesYes
versionYes
questionYes
ecosystemNo
fetchedAtNo
docsTokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld and non-idempotent. The description adds real behavioral context beyond them: grounded only in current docs, includes a code example where available, states the applicable version, cites sources, and crucially 'Says so when the docs don't cover it.' Pricing and paywall behavior are also disclosed. It does not contradict the annotations.

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

Conciseness3/5

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

The core answer behavior is front-loaded, but the text is padded: '$0.02' appears in the title and is repeated twice more in the body, and '★ One of our best tools' is marketing that earns no place. The pricing/paywall message is spread across two sentences that could be one.

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?

An output schema exists, so return values needn't be described, and the description covers grounding, sourcing, versioning and the not-covered case. Behavior is well covered for a read-only answer tool; the only soft gap is the exact boundary versus the free docs-lib sibling.

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 all three parameters (library, question, ecosystem) are already documented in the schema with examples and an enum. The description only restates the ecosystem families ('npm, PyPI, crates or Go'), adding no syntax or format detail beyond the schema. Baseline 3 is appropriate.

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?

States a specific verb and resource: 'Ask a coding question about any npm, PyPI, crates or Go library and get an answer written only from its current docs.' It also names the sibling it relates to ('Try docs-lib free first'), letting an agent distinguish this paid tool from the free alternative without opening a schema.

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?

Gives clear context ('Ask a coding question about any ... library') and routes to an alternative ('Try docs-lib free first') plus a scoping note ('Paid only, not in the free trial'). It stops short of stating explicitly when the paid answer is worth choosing over the free docs-lib, but the routing intent is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources