Skip to main content
Glama

codelattice_symbol

Read-onlyIdempotent

Query symbols, context, callers, callees, and call chains in a selected project root; for large projects, submit engine-backed analysis jobs with progress tracking.

Instructions

Symbol-level queries for a SINGLE project root after root selection. Use search/context when you know a symbol or name; use callers/callees/call_chains for relationships and flow. For large projects, use mode=job to submit an engine-backed analysis job with progress tracking, then mode=job_status and mode=job_detail.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoFilter by symbol kind
modeNoQuery mode. call_chains returns readable static paths; job_status/job_detail use jobId only after a job response.search
nameNoSymbol name (required for context, callers, callees modes)
pageNojob_detail page index
rootNoAbsolute path to project root. Required for search/context/callers/callees/graph/job; not needed for job_status/job_detail.
depthNoCall depth for callers/callees
jobIdNoRequired for job_status and job_detail; root is not required for these modes
limitNoMax results
queryNoSearch query (for search mode)
compactNo
languageNoauto
pageSizeNojob_detail page size
includeSnippetNoFor context/call modes: include source snippets. Defaults to false in compact mode and true in full mode.
snippetContextNoLines of context around source snippets; compact mode caps this to 3.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the tool read-only, idempotent, and non-destructive. The description adds meaningful behavioral context by stating the single-project-root prerequisite and describing the job lifecycle with progress tracking. It does not go into deeper edge cases, but the annotation coverage lowers the burden.

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 two focused, front-loaded sentences. The first sentence states the scope and resource, and the second gives actionable mode-selection guidance with no filler or repetition of schema details.

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 complex 14-parameter, multi-mode tool, the description covers the main decision paths and the job workflow while the schema covers the remaining parameter details. It does not explicitly mention graph mode or output shape, but the annotated read-only safety profile and rich schema make the definition sufficiently complete.

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 description coverage is 86%, so the individual parameter descriptions already carry most of the meaning. The tool description adds only modest value by clarifying the root scoping and the job-mode sequencing, so the baseline score of 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 identifies the tool as performing 'symbol-level queries' scoped to 'a SINGLE project root,' and it differentiates internal query modes (search/context vs. callers/callees/call_chains). This distinguishes it from siblings like codelattice_workflow or codelattice_cache, which are not symbol-query tools.

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?

The description gives explicit mode-selection guidance: use search/context when a symbol or name is known, use callers/callees/call_chains for relationships and flow, and use mode=job followed by job_status/job_detail for large projects. This directly tells an agent when to choose which behavior.

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