Skip to main content
Glama

ctx_symbol

Read-only

Fetches the full body of a named function, class, method, type, or constant with line numbers, resolving qualified names and listing candidates when ambiguous.

Instructions

The full body of one function, class, method, type or constant, with line numbers. Accepts "name", "Type.method" or "Type::method"; give path to disambiguate. Lists candidates when the name is ambiguous.

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

Input Schema

NameRequiredDescriptionDefault
nameYesSymbol name: "verifyToken", or qualified as "AuthService.login" / "Parser::parse".
pathNoRestrict to this file or directory.
forceNoReturn the body even if it was already returned unchanged in this session.
budget_tokensNoHard cap on the tokens returned (estimate; default 4000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuine behavioral detail by disclosing that ambiguous names return a candidate list rather than failing, but omits other notable behaviors encoded only in the schema: the token budget cap/truncation and the session-level de-duplication that the "force" flag exists to override.

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

Conciseness5/5

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

Three short sentences, front-loaded with the return value and followed by the naming/disambiguation rules; each sentence carries a distinct piece of information and there is no filler.

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?

For a read-only, single-purpose retrieval tool with a fully documented schema and no output schema, this is nearly complete. The gap is that the caching/truncation behavior (implied by force and budget_tokens) is only visible in the schema, not in the description.

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 100%, so all four parameters are documented in the schema, which sets the baseline at 3. The description's naming-convention examples ("Type.method", "Type::method") and path disambiguation duplicate what the schema already states for those fields and add nothing about budget_tokens or force.

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 full body of one function, class, method, type or constant, with line numbers" names the resource and the exact granularity returned, so an agent can tell it apart from outline/search-style siblings. It never names a sibling explicitly, so the differentiation is inferred from the 'full body' phrasing rather than stated.

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 context is implied through the disambiguation rule ("give path to disambiguate. Lists candidates when the name is ambiguous"), which tells the agent how to recover from an ambiguous name. It gives no explicit when-to-use-this-vs-alternative guidance (e.g., when to prefer this over a whole-file read or an outline), and no when-not conditions.

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