Skip to main content
Glama

Oh My Product docs

Read one document

get_doc
Read-onlyIdempotent

Returns one public document by slug (from list_docs or search_docs) with its full Markdown body. Read-only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "slug": "<slug>"
    },
    "name": "get_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesDocument slug from list_docs or search_docs.

Output Schema

NameRequiredDescriptionDefault
urlYesCanonical HTML page.
slugYes
titleYes
sectionYes
markdownYesFull document body in Markdown.
descriptionYes
last_updatedYesDate of the last material revision (YYYY-MM-DD), when known.
markdown_urlYesMarkdown version of the page.

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 readOnlyHint, idempotentHint, and destructiveHint=false, so the trailing 'Read-only' is largely redundant. The description does add genuine behavior beyond the annotations: results are restricted to PUBLIC documents, and the body is returned as full Markdown rather than a summary or excerpt.

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?

Two short sentences, front-loaded with the core action and the return payload, with the provenance hint and safety note following. Nothing is padded or restated twice.

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 rich annotations, a fully documented single parameter, and an output schema covering return values, the description only needs to state what the tool fetches and from where. The one omission is not-found or access-denied behavior for non-public slugs, a minor gap given the 'public document' qualifier.

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 coverage is 100%: the slug parameter already carries a description, an example, and a regex pattern. The description's paraphrase ('slug (from list_docs or search_docs)') echoes the schema without adding format or validation detail, so the baseline of 3 applies.

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 gives a specific verb and resource ('Returns one public document by slug') plus the scope of what comes back ('full Markdown body'). It names list_docs and search_docs as the sources of the slug, which implicitly distinguishes this single-document read from the listing/search siblings, though it never states the contrast outright.

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?

It establishes clear context: this is the follow-up call after list_docs or search_docs has produced a slug. There are no explicit when-not conditions or error-case guidance (e.g. what happens with an invalid or private slug), but for a one-shot lookup tool the workflow routing is unambiguous.

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