Skip to main content
Glama
JSungMin

vs-token-safer

search_symbol

Query language server index to find symbol declarations by name across C/C++, C#, JavaScript/TypeScript, and Python projects. Returns token-capped list with kind, name, and file:line locations.

Instructions

Search symbol DECLARATIONS by name/substring across the project via the language server's index (clangd C/C++, Roslyn C#/.NET, tsserver JS/TS, pyright Python — auto-detected) — NOT grep. Returns a token-capped kind name @ file:line list, no source bodies. Use this instead of Bash grep/rg for finding a class/function/type/variable in any of those languages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYesSymbol name or substring to search for.
projectPathNoProject root (default: configured projectPath or cwd).
backendNoclangd | roslyn | typescript | pyright (default: auto-detect from the root).
maxResultsNoCap on returned locations (default 60).
Behavior5/5

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

The description discloses key behaviors: uses auto-detected backend, returns a token-capped list without source bodies, and is not grep. It covers what the tool does and does not do, despite no annotations.

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?

The description is concise, front-loaded with the core purpose, and every sentence adds value without redundancy. It efficiently packages all essential information.

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

Completeness5/5

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

Given the tool's complexity (multiple backends, grep alternative) and lack of output schema, the description fully explains what it returns (kind name @ file:line) and its limitations, making it contextually complete.

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

Parameters5/5

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

With 100% schema coverage, the description adds context to each parameter: explains q as name/substring, projectPath default, backend auto-detect, and maxResults default 60, meaningfully supplementing the schema.

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?

The description clearly states the tool searches for symbol declarations by name/substring across the project using language server indexes. It distinguishes from grep and specifies supported languages, making the purpose highly specific.

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

Usage Guidelines5/5

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

Explicitly advises using this tool instead of Bash grep/rg for finding class/function/type/variable in supported languages, providing clear when-to-use guidance and alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JSungMin/vs-token-safer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server