Skip to main content
Glama

atlas_code_find

Read-onlyIdempotent

Locate function or class definitions and call sites across a codebase before opening files, returning file, line, and signature, plus optional function body or usage count.

Instructions

Locate function or class definitions across the codebase (file, line, signature, and optional body) and inspect call sites.

Use this tool BEFORE reading source files to find where a symbol lives (~30 tokens per signature vs.
thousands of tokens for a full file), set `include_body=True` to read just that function's implementation,
or set `usage=True` to check if a symbol is actually called before marking a task done. Supports GDScript
(`.gd`/`.tscn`), Python, TypeScript/JavaScript, Rust, C#, Go, Java, Kotlin, and Swift.

Behavior & Output:
- Read-only static scan of project source files; ignores build directories and `.atlas/`.
- Returns a formatted summary of matching definitions (`path:line — signature`), optional function body,
  and, when `usage=True`, the caller/reference count and file:line call sites for each symbol.

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": {
      "symbol": "<symbol>"
    },
    "name": "atlas_code_find"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of matching symbol definitions to return (1-100, default 10).
usageNoIf true, also scan the repository for call sites and references to each matched symbol (including Godot `.tscn` signal bindings) to verify whether the symbol is wired up (default false).
symbolYesFunction, method, or class name (or substring) to search for across the codebase (e.g. 'apply_damage' or 'TurnManager'). Does not match local variables.
include_bodyNoIf true, also extract and return the function or class body (lines start..end, capped at 80 lines) so you can inspect the implementation without opening the full source file with Read (default false).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.4
    • addedInput schema / properties / include_body
      Added value: +{
      +  "default": false,
      +  "description": "If true, also extract and return the function or class body (lines start..end, capped at 80 lines) so you can inspect the implementation without opening the full source file with Read (default false).",
      +  "title": "Include Body",
      +  "type": "boolean"
      +}
  2. Changed6 schema fields changedv0.1.1
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of matching symbol definitions to return (1-100, default 10)."
    • addedInput schema / properties / limit / maximum
      Added value: +100
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • addedInput schema / properties / symbol / description
      Added value: +"Function, method, or class name (or substring) to search for across the codebase (e.g. 'apply_damage' or 'TurnManager'). Does not match local variables."
    • addedInput schema / properties / symbol / minLength
      Added value: +1
    • addedInput schema / properties / usage / description
      Added value: +"If true, also scan the repository for call sites and references to each matched symbol (including Godot `.tscn` signal bindings) to verify whether the symbol is wired up (default false)."
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered; the description still adds real behavioral context beyond that, notably that it is a static scan that ignores build directories and `.atlas/`, and what the formatted output looks like. It stops short of stating failure behavior for a no-match symbol or any size/pagination limits beyond the body cap.

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?

Front-loaded with the core action, then a usage paragraph, then a labeled 'Behavior & Output' block — easy to scan. Every sentence carries information, though the output-format bullet partially restates what the leading sentence and the output schema already say.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, 100% parameter description coverage, and full annotations, the remaining burden is only to explain selection and behavior — which the description does, including language support, scan exclusions, and the 80-line body cap. Nothing an agent needs in order to call this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description goes further by explaining the intent behind the two optional flags (include_body for reading just that implementation, usage for call-site verification) rather than restating their types. The `symbol` substring behavior and the local-variable exclusion are left to the schema, which already documents them.

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?

States a specific verb and resource: 'Locate function or class definitions across the codebase' plus the secondary capability 'inspect call sites', and enumerates the returned fields (file, line, signature, optional body). This clearly separates it from outline/search/read style siblings without needing to name them.

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?

Gives explicit when-to-use guidance with three concrete decision rules: run it BEFORE reading source files, set include_body=True to read one implementation, set usage=True to verify a symbol is actually called before marking a task done. It also names the alternative it replaces (opening the full source file with Read) and quantifies the tradeoff (~30 tokens per signature vs. thousands).

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