Skip to main content
Glama
markgregg

code-tree-mcp

by markgregg

get_code_tree

Retrieve symbol and dependency counts for indexed files across one or more code workspaces, filterable by path.

Instructions

Get indexed files with symbol and dependency counts across one or more workspaces.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
pathPrefixNoOptional relative path prefix filter, such as src/
ignoreGlobsNo
workspacePathNoSingle absolute workspace path (use workspacePaths to supply multiple).
workspacePathsNoAbsolute paths to the workspaces to operate on.
Behavior2/5

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

No annotations and no description of behavioral traits such as required permissions, what data is returned (e.g., what 'counts' include), or whether it is safe to call frequently. The description omits important context about scope and side effects.

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?

Single sentence of 10 words, no fluff. However, it could be slightly expanded to cover more context without losing conciseness.

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

Completeness2/5

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

With 6 parameters, no output schema, and no annotations, the description is too brief. It lacks information about pagination, output format, and the exact meaning of 'counts'. The tool's complexity is not matched by the description.

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 50% (3 of 6 parameters have descriptions). The tool description adds no explanation for parameters like limit, offset, ignoreGlobs, or the relationship between workspacePath and workspacePaths. It does not compensate for the missing schema descriptions.

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?

Description clearly states verb 'get', resource 'indexed files', and what is included ('symbol and dependency counts'). It distinguishes from siblings by implying a broader overview, but does not explicitly differentiate from tools like get_dependencies or get_file_symbols.

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?

No guidance on when to use this tool versus siblings. Does not specify prerequisites (e.g., workspace must be indexed) or scenarios where this is preferred over more specific tools.

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/markgregg/code-tree-mcp'

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