Skip to main content
Glama

Classes, functions, signals

re_symbols
Read-onlyIdempotent

Extract code structure from files or folders: list classes, base classes, functions with line numbers, signals, exported fields, dependencies, and node paths, then filter symbols by name or wildcard.

Instructions

Code structure for one file or a whole folder (30+ languages: GDScript, C#, C/C++ incl. Unreal macros, Python, JS/TS, Lua, Java/Kotlin, Go, Rust, Swift, shaders, Ren'Py…): classes with base classes, functions with lines, signals/events, exported/serialized fields, dependencies, node paths. match filters by name (substring or * wildcard).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "re_symbols"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile or folder.
limitNoMax files (default 25; each file lists up to 40 functions unless match narrows it).
matchNoFilter names (e.g. "player", "*_process").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds useful context: the 30+ supported languages, the specific symbol types returned (base classes, line numbers, signals, exported fields, dependencies, node paths), and how match filtering works. It does not discuss output format or limits beyond what the schema already says.

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?

The description is dense but front-loaded with the core purpose and output contents. The language list is long but informative, and no sentence is wasted. It could be slightly tighter.

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?

For a read-only symbol extraction tool with full schema coverage and annotations, the description is largely complete. It lists what is returned, which compensates for the lack of an output schema, though it does not specify the output format or structure.

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. The description adds only a minor clarification that match accepts substrings or * wildcards, which is nearly redundant with the schema's examples. Baseline 3 is appropriate.

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 clearly states what the tool returns: code structure for a file or folder, including classes, functions, signals, fields, dependencies, and node paths. It is easy to tell apart from binary or scan tools, but it does not explicitly contrast with any sibling, so it falls short of a 5.

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 by stating 'for one file or a whole folder' and explaining that 'match filters by name,' but it gives no explicit when-to-use or when-not-to-use guidance relative to alternatives like re_scan or re_graph.

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