Skip to main content
Glama

symbols

Read-only

List the functions, classes, and methods a file defines to quickly map code structure and locate definitions.

Instructions

List the functions, classes and methods that a file defines.

Input Schema

NameRequiredDescriptionDefault
pathYes
workspaceNoProject path (default: this project)
max_tokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds that results are limited to symbols the file itself defines, which is useful scope information, but says nothing about output ordering, truncation via max_tokens, or behavior on unparseable files.

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?

A single front-loaded sentence with no filler. Every word contributes to defining the resource and its file scope.

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?

The tool is simple and the annotations cover read safety, but the description leaves the two optional parameters and result shape unexplained. For a three-parameter tool with low schema coverage, it is adequate rather than complete.

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

Parameters2/5

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

Schema description coverage is only 33%, with workspace documented in the schema and path required but unannotated. The description mentions the file implicitly but does not explain path, workspace, or the max_tokens budget, so it does not compensate for the low coverage.

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?

States a specific verb+resource: listing functions, classes and methods, with the scope narrowed to what a given file defines. This distinguishes it from siblings like search_symbols or inspect_symbol, though it does not name an alternative 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 guidance on when to use this versus search_symbols, inspect_symbol, or cross_references. The agent must infer that this is a file-scoped listing tool rather than a search or detail tool.

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