Skip to main content
Glama

Get a document

get_doc
Read-onlyIdempotent

Return one whole document, exactly as the site publishes it, by name: developers, agent-guide, auth-md, llms, developers-llms, openapi, pricing, corporate, about, privacy, terms, glossary; or resources/ for a library article and resources/glossary/ for a glossary term (the document names search_docs returns).

Input Schema

NameRequiredDescriptionDefault
nameYesThe document's name: a site document (developers, agent-guide, auth-md, llms, developers-llms, openapi, pricing, corporate, about, privacy, terms or glossary), resources/<slug> for a library article, or resources/glossary/<slug> for a glossary term.

Output Schema

NameRequiredDescriptionDefault
urlYesThe page that publishes it.
nameYesThe document's name.
textYesThe whole document, as the site publishes it.
titleYesThe document's title.
mimeTypeYestext/markdown, text/plain for an llms.txt file, or application/json for the OpenAPI description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed world, so the safety profile is fully covered by structured data. The description adds one behavioral fact ('exactly as the site publishes it', i.e., verbatim retrieval) but otherwise re-lists accepted names that the schema already provides, and the output schema covers the return shape.

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?

One front-loaded sentence that leads with the action and return fidelity before enumerating accepted values. It is dense and mostly earns its length, though the long name list largely duplicates the schema and could be referenced rather than repeated.

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?

With annotations covering safety/idempotency and an output schema covering the return value, the description only needs to convey accepted inputs and retrieval semantics, which it does. Nothing critical for correct invocation is missing.

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% and the single 'name' parameter is fully documented in the schema with the same enumeration. The description adds no syntax, encoding, or format detail beyond what the schema already states, so the baseline of 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 ('Return one whole document ... by name') and precisely delineates scope: named site documents vs. resources/<slug> vs. resources/glossary/<slug>. It also explicitly links to the sibling by noting these are 'the document names search_docs returns', so an agent can distinguish it from search_docs without opening either 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?

The reference to 'the document names search_docs returns' implies the workflow: search first, then fetch by exact name. That is clear context, but there is no explicit statement of when not to use this tool or an outright alternative recommendation, so it falls short of a full 5.

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