Skip to main content
Glama

Code symbols

code_symbols
Read-only

Where a class, method or function is declared in the code of the repositories connected to a project: its file, line and signature. Ask by name, or Class.Method to say whose. Only repositories whose owners opened them to agents are asked.

Input Schema

NameRequiredDescriptionDefault
nameYesThe symbol's name, e.g. 'MoveAsync', or 'IssueTransition.MoveAsync' to say whose.
pathNoKeep only declarations in files whose path contains this.
repoNoWhich repository, as 'group/repo'. Omit to ask every repository open here.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint=false, so the safety profile is covered. The description adds genuine context beyond that: the visibility constraint that only repositories whose owners opened them to agents are queried, and the shape of the returned data (file, line, signature). Pagination and result-limit behavior remain unstated.

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?

Two sentences with no padding, and the core purpose is front-loaded before the access caveat. The final clause about repository owners is slightly convoluted in phrasing but earns its place as scope information.

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 only three parameters, full schema coverage, annotations covering safety, and no output schema, the description supplies the missing pieces an agent needs: what is returned and which repositories are searched. Ambiguity handling (multiple matches, default repo scope) is the only notable omission.

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 the schema already documents all three parameters including the 'Class.Method' whose-form and the path/repo filters. The description's 'Ask by name, or Class.Method to say whose' largely restates the schema. Baseline 3 applies when the schema carries the parameter load.

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 names a specific resource and verb: locating where a class, method or function is *declared*, and returns file/line/signature. That is meaningfully narrower than search_code or read_code. It stops short of naming a sibling to differentiate against, leaving the agent to infer the boundary.

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?

'Ask by name, or Class.Method to say whose' explains how to call it, not when. There is no explicit contrast with search_code, code_calls, list_code or read_code, so an agent must infer that this is the declaration-lookup tool rather than a text search or call-graph tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources