Skip to main content
Glama

360° view of a symbol or file

context
Read-only

Retrieves a symbol or file’s code, callers, callees, members, imports, and related tests so you can trace behavior and assess change impact.

Instructions

Everything about one symbol or file: its code, who calls it (with call-site lines), what it calls, subtypes, members, imports, importers and the tests that touch it. Large fixture trees are skipped until targeted (target one, or pass --include-fixtures). Target forms: path/to/file.ts, file.ts:42, Class.method, Class::method, or a bare name.

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": {
      "target": "<target>"
    },
    "name": "context"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoRepository root. Defaults to the client's workspace root or the server's working directory.
formatNotext (default, compact, file:line cited) or json.
targetYes
code_linesNoLines of source to include for a symbol (default 60, 0 for none).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the read-only, closed-world safety profile, so the bar is lower, and the description adds real behavioral context on top: large fixture trees are silently skipped unless targeted, and text output is compact with file:line citations. It does not state result-size limits or whether callers/callees are truncated, but it goes meaningfully beyond the annotations.

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?

Front-loaded with the payoff (what you get), then the fixture caveat, then accepted target forms — a sensible order with little waste. The enumerated return contents are long but each item is informative, though the list could be tightened.

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?

There is no output schema, so the description must convey return content, and it does so explicitly by listing every category returned. The main gap is the phantom `--include-fixtures` flag, which leaves an agent unsure how to actually opt into fixture files given the four documented parameters.

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 75% and the one undocumented parameter is the required `target`, which the description fully compensates for by listing five accepted forms (path, file:line, Class.method, Class::method, bare name). That is the highest-value addition possible here. It loses a point for referencing a `--include-fixtures` flag that does not exist anywhere in the input schema, which could confuse an agent about how to include fixtures.

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 opens with a specific scope ("Everything about one symbol or file") and enumerates exactly what is returned: code, callers with call-site lines, callees, subtypes, members, imports, importers, and touching tests. That enumeration implicitly separates it from narrower siblings like search or trace, but no sibling is named, so the differentiation is inferential rather than explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the tool is for getting a complete picture of a single symbol or file. It adds a useful operational rule (fixture trees are skipped unless you target one or pass --include-fixtures) and target syntax, but never says when to prefer this over impact, trace, or search, nor when not to use it.

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

Deploy Server

Other Tools