Skip to main content
Glama

analyze_dimension

Analyze a specific dimension of a repository, like git history, and return structured JSON data to reveal engineering culture and conventions for AI agents.

Instructions

Analyze a single DNA dimension of a repository and return it as JSON.

Args:
    repo_url: Git URL or local path of the repository to analyze.
    dimension: One of the dimensions from the list_dimensions tool.
    history_depth: Number of commits to fetch for git history analysis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_urlYes
dimensionYes
history_depthNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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 of behavioral disclosure. It states the tool returns JSON, which is useful, but it does not disclose side effects (e.g., whether it clones the repo, writes to disk, or makes network calls), performance implications, or error behavior. For a tool that fetches git history, this is a notable gap.

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 compact and front-loaded with the core purpose, followed by a concise parameter list. Every sentence earns its place, though the parameter descriptions could be slightly more detailed without bloating the text.

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

Completeness3/5

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

The tool has an output schema, so return values are covered. The description covers the main inputs and the relationship to list_dimensions. However, it lacks context about side effects, prerequisites (e.g., whether the repo must be accessible), and how this tool relates to analyze_repository. For a tool with no annotations, this is a moderate gap.

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 0%, so the description must compensate. It does add meaning for all three parameters: repo_url is described as 'Git URL or local path', dimension is tied to list_dimensions, and history_depth is explained as 'Number of commits to fetch'. However, the descriptions are brief and do not add much beyond the parameter names and types, so a 3 is appropriate.

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 states a specific verb ('Analyze') and resource ('a single DNA dimension of a repository'), and the phrase 'single DNA dimension' distinguishes it from the sibling analyze_repository, which presumably analyzes the whole repository. However, it does not explicitly name the sibling or explain the difference, so it falls short of a 5.

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

Usage Guidelines3/5

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

The description implies usage by mentioning 'dimension: One of the dimensions from the list_dimensions tool', which tells the agent to first call list_dimensions. It does not explicitly state when to use this tool versus analyze_repository or generate_skills, nor does it provide exclusions or alternative conditions.

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