Skip to main content
Glama

Priority — TypeScript Compiler Intelligence

Get Symbol Context

get_symbol_context
Read-onlyIdempotent

Return bounded definition/callers/callees context; references or impact request paid depth.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo
nameYes
pathNo
filesNo
includeNo
offsetsNo
snapshotNo
per_section_limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaYes
symbolYes
includeYes
sectionsYes
snapshotYes
per_section_limitYes
paid_sections_requestedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / oneOf
      Added value: +[
      +  {
      +    "required": [
      +      "files"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "snapshot"
      +    ]
      +  }
      +]
    • removedInput schema / properties / files / description
      Removed value: -"Authorized JavaScript/TypeScript source files for this single request. Required every call — there is no server-side index."
    • removedInput schema / properties / files / items / properties / content / description
      Removed value: -"Full source text for that path. Only files included here are analyzed; the server does not read a repository from disk."
    • removedInput schema / properties / files / items / properties / path / description
      Removed value: -"Workspace-relative JS/TS path for this request (e.g. \"src/app.ts\"). No absolute paths, no \"..\" segments, no backslashes."
    • removedInput schema / properties / include / description
      Removed value: -"Context sections to return. Omit for the free default: definition, callers, and callees. references and impact are paid-depth sections."
    • removedInput schema / properties / kind / description
      Removed value: -"Optional compiler syntax kind hint used during symbol resolution."
    • removedInput schema / properties / name / description
      Removed value: -"Symbol name, fragment, or exact compiler symbol id to resolve before gathering context."
    • removedInput schema / properties / offsets / description
      Removed value: -"Per-section continuation offsets from a previous response. Omitted sections start at zero."
    • removedInput schema / properties / path / description
      Removed value: -"Optional path ranking hint used during symbol resolution."
    • removedInput schema / properties / per_section_limit / description
      Removed value: -"Maximum rows returned per included section. Default 4 is evidence-backed to bound the p95 tail."
    • addedInput schema / properties / snapshot
      Added value: +{
      +  "maxLength": 100,
      +  "minLength": 20,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "files",
      -  "name"
      -]New value: +[
      +  "name"
      +]
  2. Added

TDQS

C2.2/5.0
Behavior2/5

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

Annotations already establish readOnly, idempotentHint, and non-destructive behavior, so the description's safety burden is low. It does add 'bounded' context and a depth/cost hint, but 'paid depth' is unclear and there is no explanation of how depth limits, offsets, or section limits behave, leaving a significant behavior gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short, which is good for conciseness, but it is cryptic rather than compact. The semicolon-separated second clause is not self-explanatory and appears to compress important detail into an unclear phrase, so the structure does not earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 8 parameters, a nested files/snapshot oneOf, and a large output schema, a single ambiguous sentence is not enough for an agent to correctly select and invoke it. Even though an output schema exists, the description leaves the invocation modes, selection criteria, and depth semantics unresolved.

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

Parameters2/5

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

With 0% schema description coverage, the description must explain the parameters, but it only loosely maps to the include categories (definition, callers, callees, references, impact). It does not clarify the files-vs-snapshot oneOf, required name, kind/path behavior, offsets, or per_section_limit, so most of the 8 parameters remain semantically uncovered.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first clause, 'Return bounded definition/callers/callees context', does name a clear verb and resource, which is helpful. But the second clause, 'references or impact request paid depth', is ambiguous about whether references/impact are included, cost extra, or require a depth parameter, and no distinction from sibling tools like get_definition or find_references is drawn.

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

Usage Guidelines2/5

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

There is no guidance on when to use this composite tool rather than get_definition, find_references, analyze_impact, or query_code. The phrase 'request paid depth' hints at some trade-off or precondition, but it is not actionable and no alternatives or exclusions are stated.

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.

Resources