Skip to main content
Glama

Read a page

wiki_read_page
Read-onlyIdempotent

Reads the full, unmodified text of an allowed sessionwiki file so agents can review prior session notes, decisions, and fixes before redoing work.

Instructions

Return the full text of one file, unmodified and not truncated. path is relative to the sessionwiki folder and uses '/' separators; absolute paths and '..' escapes are rejected, and symlinks are resolved before the allowlist check. The file must be under wiki/, raw/, docs/, examples/ or site/ (or be README.md, CHANGELOG.md, CONTRIBUTING.md or LICENSE at the root). Returns an error if the path is outside that set, does not exist, is not a file, or is not valid UTF-8. Reads the whole file with no size cap, so very large files are returned in full. Get paths from wiki_query, wiki_search or wiki_list_sources.

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": "wiki_read_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile path relative to the sessionwiki folder, e.g. 'wiki/sources/clever-munching-parnas.md'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.3
    • changedInput schema / properties / path / description
      Previous value: -"Page path relative to the repo root."New value: +"File path relative to the sessionwiki folder, e.g. 'wiki/sources/clever-munching-parnas.md'."
  2. First observedv2.0.2

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, and the description adds substantial detail on top: symlinks resolved before the allowlist check, absolute paths and '..' rejected, no size cap so very large files return in full, and failure conditions (outside allowlist, missing, not a file, non-UTF-8). This is exactly the behavioral context an agent needs before calling.

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 core promise (full, unmodified text) is front-loaded in the first sentence, with path rules and error cases following in a logical order. It is dense but nearly every clause carries a constraint; only the explicit enumeration of root-level filenames feels slightly list-heavy relative to a single-parameter read.

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?

For a one-parameter read tool with no output schema, the description covers what is returned (full text, unmodified, uncapped), what fails and why, path construction rules, and where to obtain paths. No meaningful gap remains for an agent to invoke it correctly.

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% and the schema already says the path is relative to the sessionwiki folder, so the baseline is 3; the description goes further by specifying '/' separators, the allowed directory set (wiki/, raw/, docs/, examples/, site/ plus root doc files), and the rejection rules for absolute and traversing paths. That materially constrains how to construct a valid value.

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?

Opens with a specific verb and resource: "Return the full text of one file, unmodified and not truncated." The scope ('one file', 'full text', 'not truncated') clearly separates it from wiki_search/wiki_query, which retrieve fragments, and from wiki_write_page, which mutates.

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 directs the agent to obtain paths from wiki_query, wiki_search or wiki_list_sources, which removes the hardest inference. It does not state when to prefer an alternative over reading a whole file (e.g., searching rather than reading when the target is unknown), but the sourcing guidance is concrete and actionable.

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