Skip to main content
Glama

read_file

Fetches a vault note or schema/style file by path and returns its content with an ETag, enabling safe writes that detect and refuse overwriting another user's changes.

Instructions

MODERATE — one round trip to storage. Returns the note with an etag: first line; pass that etag back to write_file to refuse a write over someone else's change. Search first. .vault/schema.yml reads the vault's schema; .vault/styles/<kind>.md a kind's style, and .vault/styles/<kind>.override.md the user's override of it.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
vaultNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.2
    • addedInput schema / properties / vault
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Vault"
      +}
  2. First observedv0.2.1

TDQS

A3.8/5.0
Behavior4/5

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

With zero annotations the description carries the whole burden, and it delivers real behavior: the cost profile ("MODERATE — one round trip to storage"), the return shape (etag first line), and the optimistic-concurrency contract with write_file. It omits failure behavior when the path does not exist and any auth/vault-scoping behavior, which keeps it out of the top band.

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?

Sentences are dense with content and none is filler, but the front-loading is misplaced: the opening token is a cost grade rather than what the tool does, so the agent reads a latency label before learning the action. The final clause packs three path conventions into one compound sentence, hurting scanability.

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?

The output schema covers return values and the description covers cost, etag semantics, and sibling routing, which is most of what a two-parameter read tool needs. Remaining gaps are the undocumented `vault` parameter and behavior on a missing path, both minor but real.

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 0%, so the description must compensate, and it does add genuine meaning for `path` by naming the conventional targets (`.vault/schema.yml`, `.vault/styles/<kind>.md`, `.vault/styles/<kind>.override.md`). However, the `vault` parameter is never mentioned and path resolution (relative/absolute, workspace) is left unstated, so half the surface remains undocumented.

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 makes clear what comes back ("Returns the note with an `etag:` first line") and implicitly that this is the read path for a vault note, and it distinguishes itself from `write_file` and `search` by name. It never states a clean opening verb+resource ("Read a file at <path>") — the purpose is delivered obliquely after a cost label — so it falls just short of a 5.

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?

"Search first" and "pass that etag back to write_file" route the agent to the correct siblings and imply the read-before-write pattern, which is clear context for when to reach for this tool. There are no explicit exclusions or preconditions (missing file, permissions, relative vs absolute path), so it is not a full 5.

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