Skip to main content
Glama
MCP Visual
by Mauricioo67

Search symbols

search_symbols

Finds C# class, interface, struct, enum, record, method, and property declarations with file and line locations, with optional filtering by name, kind, directory, and pagination.

Instructions

Finds C# type, method and property declarations with file and line.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_symbols"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoRestrict to one declaration kind
limitNoMaximum items to return (default 500)
queryNoSymbol name or namespace fragment
offsetNoItems to skip before the first result
directoryNoDirectory relative to the workspace root

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.2

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the disclosure burden; 'Finds' does convey a read-only lookup and 'with file and line' tells the agent what a hit looks like. It does not say whether a solution must be opened first, what the workspace scope is, or that results are paged by limit/offset — context an annotation-free tool should provide.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity leaves the definition thin rather than genuinely complete.

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

Completeness3/5

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

With an output schema present and full schema coverage, the description need not explain return values, and it correctly identifies what is searched and that locations are returned. What is missing for a five-parameter search tool is scope and prerequisite context (e.g. workspace/solution requirement) and routing versus search_text, leaving it minimally viable.

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 five parameters (kind, query, limit, offset, directory) are already documented in the schema, which sets the baseline at 3. The description adds no meaning beyond that — the mention of 'type, method and property' loosely maps to the kind enum but omits classes, interfaces, structs, enums and records.

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 gives a specific verb ('Finds') and a specific resource ('C# type, method and property declarations'), and even names the return contents ('with file and line'). It implicitly distinguishes itself from search_text by scoping to declarations rather than arbitrary text, but it never names the sibling or states the boundary explicitly.

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 when-to-use guidance, no when-not-to-use guidance, and no named alternative such as search_text. An agent must infer from 'declarations' alone that this is the structural-search tool rather than the free-text one.

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