Skip to main content
Glama

What is known about one file

get_file_context
Read-onlyIdempotent

Retrieve every task, decision, dead end, and note recorded against a file to review prior work before editing it. Check what is linked first to avoid repeating mistakes.

Instructions

Everything todox has recorded against a file: the tasks that touched it with their dead ends and decisions, and the context notes attached to it in full. Ask before editing a file you have not seen this session — a dead end costs nothing to read and an afternoon to rediscover. The path may be absolute or relative to the repository root; both fold to the same answer, so a note linked on one machine is found from another. Pass cwd or project to say which repository is being asked about. linked:false means nothing is recorded against it; otherwise each task and note carries its link (id, hash, status) for report_file_hashes.

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_file_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoAbsolute working directory, used if project is omitted
pathYesThe file to ask about: an absolute path, or one relative to the repository root. Both resolve to the same answer on any machine.
modelNoYour model id, e.g. 'claude-opus-5'.
projectNoSlug, name, or a path inside the project

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.8
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / anyOf
      Removed value: -[
      -  {
      -    "required": [
      -      "project"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "cwd"
      -    ]
      -  }
      -]
  2. First observedv0.1.4

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds genuinely useful behavior beyond that: that `linked:false` signals nothing recorded, and that each task and note carries a `link` (id, hash, status) for handoff to report_file_hashes. It stops short of describing the fuller response shape or ordering, so it is good but not rich.

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?

Five sentences, front-loaded with what is returned, then the usage trigger, then parameter resolution, then the empty-result sentinel. Mostly every sentence earns its place; the 'an afternoon to rediscover' phrase is motivational flourish rather than specification, which keeps it from a 5.

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?

No output schema exists, and the description does the work of explaining the notable return signals (linked:false, per-item link objects) plus cross-machine path resolution and repository selection. What remains thin is the exact shape of the tasks/notes payloads, though this is a read-only lookup where that is a modest gap.

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 already 100%, yet the description still adds meaning: paths may be absolute or relative to the repository root and 'both fold to the same answer' across machines, and cwd or project selects the repository being asked about. That resolution and disambiguation behavior is not in the schema.

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: it returns 'Everything todox has recorded against a file' — the tasks that touched it, their dead ends and decisions, plus attached context notes. That scope is concrete enough to distinguish it from note-oriented or task-oriented siblings like get_context, get_context_note, and get_task without opening their schemas.

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?

Gives an explicit trigger condition: 'Ask before editing a file you have not seen this session,' and justifies it with the cost of rediscovering a dead end. There is no explicit when-not or named alternative, but the usage context is clear enough for an agent to decide.

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