Skip to main content
Glama

analyze_architecture

Analyze project architecture to understand structure, modules, dependencies, and complexity. Identify potential issues and get recommendations for improvement before making changes.

Instructions

RECOMMENDED: Analyze and understand the current project architecture.

This tool provides flexible project lookup. You can specify any combination of identifiers, and it will resolve to the matching project.

Priority: project_id > workspace_path > project_name

WHEN TO USE:

  • At the start of work on an existing project to understand the architecture

  • Before making significant architectural changes

  • To identify potential improvements or issues in the codebase

  • When onboarding to a new codebase

  • To get an overview of modules, dependencies, and complexity

THIS PROVIDES:

  • Overview of project structure and modules

  • Dependency analysis

  • Complexity metrics

  • Potential architectural issues

  • Recommendations for improvement

RECOMMENDED: Call this early when working on an existing project to understand the architectural landscape before making changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idNoProject ID from create_project() (optional if project_name or workspace_path provided)
project_nameNoProject name to look up (alternative to project_id)
workspace_pathNoWorkspace directory path (alternative to project_id)
Behavior3/5

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

With no annotations, the description must carry the full burden of safety and side-effect disclosure. It describes what the tool provides (overview, metrics, recommendations) and the lookup priority, but never states whether it is read-only, its return format, or any limitations. This is adequate but not comprehensive.

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?

The description is well-organized with clear sections and bullet points. It is slightly repetitive with 'RECOMMENDED' appearing both at the beginning and end, but every section earns its place and the content is front-loaded.

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?

The description is fairly complete for a read-oriented analysis tool with no output schema. It explains what it provides and when to use it, but does not describe the exact response format or error behavior, which would be useful given the absence of an output schema.

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?

The schema already has 100% coverage with good descriptions for each parameter. The description adds value beyond the schema by explaining that any combination of identifiers works and specifying the priority order (project_id > workspace_path > project_name), which helps disambiguate behavior.

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?

The description clearly states the tool analyzes and understands project architecture, with a specific verb and resource. It lists concrete outputs (dependency analysis, complexity metrics), but does not explicitly differentiate from siblings like get_architecture_recommendation or validate_code_structure.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

A dedicated 'WHEN TO USE' section provides five clear scenarios, such as onboarding or before significant changes. It does not mention when not to use it or point to alternative tools, so it falls short of a 5.

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/siddiquesahabaj/CoordMCP'

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