Skip to main content
Glama

find_symbol

Read-onlyIdempotent

Locate Python functions by full qualname or suffix and return matching module, line number, and test status, enabling coding agents to resolve symbols accurately.

Instructions

Look up functions by name. Accepts a full qualname ('shop.pricing.calculate_total') or a suffix ('calculate_total', 'pricing.calculate_total', 'PaymentProcessor.charge'). Returns {query, matches: [{qualname, module, lineno, is_test}]}.

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

Input Schema

NameRequiredDescriptionDefault
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description does not need to restate it. It instead adds genuine behavioral value: dot-qualified suffix matching semantics and the exact return shape including is_test flagging, which tells the agent what a match list looks like before calling.

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?

Two sentences, no filler. The capability is stated first, the accepted input forms second, and the return contract last, which is exactly the order an agent needs it.

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?

With no output schema, the description carries the burden of describing returns and does so precisely. For a one-parameter lookup tool this is close to complete; it omits ordering of matches and what an empty match list signifies, but nothing essential to invoking it is missing.

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 0% and the single parameter is bare, yet the description fully compensates by specifying that it accepts either a full qualname or a suffix, with four distinct example forms spanning module paths and class methods. Only the matching edge cases (ambiguity, multiple results for a short suffix) are left implicit.

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?

"Look up functions by name" gives a specific verb and resource, and the scope (functions, not files or arbitrary symbols) is unambiguous. None of the siblings (impact, dead_code, tests_for, cypher) offer name-based lookup, so an agent can route here without opening the schema.

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?

The accepted query forms are demonstrated with concrete examples, which implies the intended use case, but the description never states when to prefer this tool over graph traversal or impact analysis. There are no explicit exclusions or named alternatives, so the agent must infer the boundary.

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