Skip to main content
Glama

generate_project_docs

Generates a project context directory with architecture docs, quality reports, dependency maps, and agent instruction files, plus planning folders for future, working, and completed tasks.

Instructions

Generates a sylvan/ project context directory with architecture docs, quality reports, dependency maps, and an agent instruction file (CLAUDE.md or .cursorrules). Creates planning directories for future/working/completed tasks.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo": "<repo>"
    },
    "name": "generate_project_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name (as shown in list_repos)
rootNoOverride project root path
agentNoAgent format for instruction fileclaude

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden: it implies file creation and directory creation but says nothing about overwriting existing docs, idempotency, permissions, runtime cost, or whether the target repo is modified. For a tool that writes a whole directory tree plus CLAUDE.md/.cursorrules, these omissions are significant.

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?

Two tight sentences, purpose front-loaded, no filler. The only mild weakness is that the second sentence (planning directories) reads as a bolt-on rather than being integrated into the main statement of what gets produced.

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?

There is no output schema, so the description usefully lists the produced artifacts, but for a mutating generator it still leaves out where the sylvan/ directory is rooted, overwrite semantics, and whether an existing index is required. Adequate but clearly incomplete for the risk profile of the operation.

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 coverage is 100%, so repo, root, and agent are already documented in the schema. The description adds only a hint of the agent parameter's effect by naming CLAUDE.md and .cursorrules as outputs, but does not map the copilot/generic enum values to their files or explain what 'root' overrides in practice.

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 names a specific verb and artifact ('Generates a sylvan/ project context directory') and enumerates the deliverables (architecture docs, quality reports, dependency maps, agent instruction file, planning directories). It is clearly a generation/write tool, distinct in kind from read-oriented siblings such as find_docs or project_structure, though it never explicitly contrasts itself with near-neighbors like index_project.

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 statement of when to run this versus index_project or project_structure, no prerequisites (e.g. must the repo be indexed first?), and no guidance on re-running or when-not-to-use. The agent is left to infer the triggering context entirely.

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