Skip to main content
Glama

gdscript_find

Read-only

Find where a GDScript symbol is declared using only its name. Returns the file, zero-based line/character, kind, and containing class for direct use in other tools.

Instructions

Find where a symbol is declared BY NAME, without needing its position. Returns: declaration sites with file, ZERO-BASED line and character, kind, and containing class. USE THIS FIRST when you know a name but not its location - the returned line/character feed directly into gdscript_references, gdscript_hover and gdscript_rename. Guessing a character offset and landing one column off returns an empty result that looks identical to 'no such symbol'. Positions come from the language server, not from text matching.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoOptional: restrict the search to one file instead of the project
nameYesExact symbol name, e.g. take_damage
max_filesNoCap on files inspected when searching the whole project (default 60). The response reports when the cap applied.
include_referencesNoAlso return every reference to the first declaration found
Behavior4/5

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

Annotations already indicate readOnlyHint=true. The description adds useful behavioral details: returns zero-based positions from language server, warns about empty results from incorrect offsets. Could mention if multiple declarations possible, but still strong.

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 a single focused paragraph, front-loaded with purpose, then return info, usage guidance, and warning. Every sentence adds value with no redundant text.

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?

Given no output schema, the description adequately explains return values. Covers usage, warnings, and relationship to other tools. Slightly incomplete on error handling (e.g., not found vs wrong offset), but still good.

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?

All parameters have schema descriptions (coverage 100%). The tool description does not add significant meaning beyond the schema, so baseline 3 is appropriate.

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 it finds where a symbol is declared by name, without needing position. It distinguishes from sibling tools by recommending it as the first step and contrasting with text matching.

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 to use this tool first when you know a name but not location. Warns against guessing character offsets and explains how output feeds into gdscript_references, gdscript_hover, and gdscript_rename.

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/pzalutski-pixel/godotlens-mcp'

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