Skip to main content
Glama

get_symbols_in_scope

Retrieve visible symbols (variables, types, functions, etc.) at a specific location in a TypeScript/JavaScript file to facilitate code analysis and navigation.

Instructions

Get all symbols (variables, types, functions, etc.) visible at a specific location in a TypeScript/JavaScript file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesFile path containing the location (relative to root)
lineYesLine number (1-based) or string to match in the line
meaningNoSymbol types to includeAll
rootYesRoot directory for resolving relative paths
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states what the tool does but lacks behavioral details: no information about permissions needed, rate limits, error conditions, output format, or whether it's a read-only operation. 'Get' implies read-only, but this isn't explicitly confirmed.

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?

Single sentence, front-loaded with the core purpose, no wasted words. Every element (verb, resource, location constraint, language context) earns its place efficiently.

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?

For a tool with 4 parameters, no annotations, and no output schema, the description is minimal. It covers the purpose but lacks behavioral context (e.g., output format, error handling) and usage guidance relative to siblings. It's adequate but has clear gaps given the complexity.

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 description coverage is 100%, so parameters are fully documented in the schema. The description adds no additional parameter semantics beyond implying location-based filtering. Baseline 3 is appropriate since the schema handles parameter documentation.

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 verb ('Get') and resource ('all symbols visible at a specific location'), specifies the language context ('TypeScript/JavaScript file'), and distinguishes from siblings like 'get_module_symbols' (module-level) or 'get_type_at_symbol' (type-focused). It's specific about scope and resource type.

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 description implies usage for symbol visibility at a location, but doesn't explicitly state when to use this versus alternatives like 'get_module_symbols' (for module-level symbols) or 'find_references' (for finding usages). No exclusions or prerequisites are mentioned.

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

Related 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/mizchi/lsmcp'

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