Skip to main content
Glama

InspectAgents Docs

Get InspectAgents Doc

get_doc
Read-onlyIdempotent

Read one InspectAgents documentation page as Markdown by its path (from search_docs, e.g. "/docs/", "/mcp/", "/llms-full.txt", "/blog/how-to-test-ai-agents/") or its https://inspectagents.com URL. Long pages are returned in parts: use offset and maxChars, and follow nextOffset until it is null. An unknown path returns isError with the valid paths.

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": {
      "path": "<path>"
    },
    "name": "get_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDocument path or https://inspectagents.com URL
offsetNoCharacter offset to start from (default 0)
maxCharsNoMaximum characters to return (default 30000, max 100000)

Output Schema

NameRequiredDescriptionDefault
urlYesCanonical URL of the page
pathYes
titleYes
offsetYes
markdownYesThe document (or the requested part of it) as Markdown
nextOffsetYesOffset of the next part, null when this is the end
totalCharsYesLength of the whole document
descriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, closed-world behavior, so the bar is lower, and the description still adds real operational context: responses are chunked with a nextOffset cursor, and invalid paths produce an isError containing the valid path list. That is exactly the kind of behavior an agent needs to plan a multi-call read loop and to recover from a bad path.

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?

Three sentences, front-loaded with the core action, then pagination, then error behavior in priority order. No filler and no restatement of the title or annotations.

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?

Covers everything needed to call it correctly: accepted input forms, concrete path examples, the pagination loop, and error recovery. An output schema exists, so the description does not need to describe return values, and its silence there is correct.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description goes beyond it by prescribing the interaction pattern between offset and maxChars (page forward until nextOffset is null) rather than just labeling them. Defaults and maximums are left to the schema, which 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 ("Read one InspectAgents documentation page as Markdown") plus the keying mechanism (path or full URL). It also names the sibling that produces those paths (search_docs), so an agent can tell it apart 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?

Explicitly tells the agent where paths come from (search_docs) and how to handle long pages: iterate offset/maxChars and follow nextOffset until null. It also covers the failure case (unknown path returns isError with valid paths). It stops short of stating when NOT to use it (e.g. use search_docs when you don't already have a path), which keeps it at 4.

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.