Skip to main content
Glama

analyze_workspace

Inspect the full workspace structure to map directories, files, and optional file contents up to a set depth, helping AI assistants understand codebase organization and generate context insights.

Instructions

Analyze the entire workspace structure and provide comprehensive insights

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyze_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxDepthNoMaximum directory depth to analyze
includeContentNoInclude file contents in analysis

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden it does not meet: it does not say whether the operation is read-only, whether it can be slow or costly on large workspaces, or what form the "insights" take. The only behavioral hint is that analysis covers the whole workspace, which the agent could guess from the name.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence with no wasted clauses, but the second half ("provide comprehensive insights") is marketing-style filler rather than information. Short, yet under-specified rather than dense.

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 no annotations and no output schema, the description is the only source of behavioral and return-value context, and it supplies neither. For a whole-workspace analysis tool with two content-affecting parameters, an agent lacks what it needs to decide when to invoke it or what to expect back.

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 100%, so maxDepth and includeContent are already fully documented with defaults, making 3 the correct baseline. The description adds no meaning beyond the schema, and "entire workspace" sits slightly at odds with the default maxDepth of 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Analyze the entire workspace structure" names a resource and scope, which distinguishes it from narrower siblings like get_file_dependencies or search_codebase. However, "analyze" is a vague verb and "comprehensive insights" does not state what kind of analysis is produced, so the agent knows the target but not the output.

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?

There is no guidance on when to choose this tool over get_context_summary, get_project_patterns, or suggest_improvements, and no stated prerequisites or exclusions. The agent must infer that this is an expensive whole-repository scan from the word "entire".

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