Skip to main content
Glama

Generate Spec

vdd_specify
Destructive

VDD Phase 4: Generate vdd/specs//spec.md for one tactical action item — user stories, Always/Ask/Never boundaries, Given/When/Then acceptance criteria (AC), MoSCoW priorities, non-functional requirements, and impact verification. Overwrites the spec file. Pass actionItemId (e.g. "A-001") or a freeform description to skip the V/S/T chain. Use for a NEW spec; to resolve leftover [NEEDS CLARIFICATION] markers in an existing spec use vdd_clarify instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIdNoTask ID to implement (e.g., 'TASK-003')
featureNoFeature name / spec directory name
statementNoFreeform input (required for vision)
descriptionNoFreeform description input
projectRootNoPath to project root directory.
actionItemIdNoTactical action item ID (e.g., 'A-001')
capabilitiesNoAlias for availableTools
artifactFilesNoMap of artifact path → content for serverless validate/drift detection
availableToolsNoMCP/tool names available to the host agent (e.g., ['brave-search','perplexity','context7','gh_grep','playwright','filesystem'])
researchFindingsNoConsolidated research subagent findings to synthesize into strategy.md

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already mark destructiveHint=true, and the description adds the specific destructive behavior: 'Overwrites the spec file.' It also discloses the skip behavior for the V/S/T chain when actionItemId or a freeform description is passed. This goes beyond the generic annotation without contradicting it.

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

Conciseness5/5

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

The description is front-loaded with the core purpose and resource path, then lists the spec contents, then the overwrite behavior, then the input shortcut, then the alternative tool. Every sentence carries distinct information and there is no filler or redundancy.

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?

For a tool with 10 parameters, nested objects, and no output schema, the description covers the essential decision points: what is generated, where, what it contains, that it overwrites, how to choose input mode, and when to use the sibling tool. It does not describe return values, but the generated file path is stated, so the main output is clear. Minor gaps remain around the meaning of the V/S/T chain, but the schema covers the remaining parameters.

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?

Schema description coverage is 100%, so the baseline is 3. The description adds meaningful parameter semantics by explaining that actionItemId or a freeform description can be used to skip the V/S/T chain, which clarifies the relationship between those inputs. It does not repeat every parameter, which is appropriate given the schema already covers them.

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

Purpose5/5

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

The description names a specific verb ('Generate'), a concrete resource ('vdd/specs/<id>/spec.md'), and a clear scope ('for one tactical action item'). It also lists the spec contents (user stories, boundaries, AC, MoSCoW, NFRs, impact verification), which distinguishes it from sibling tools. The explicit 'Use for a NEW spec' and 'use vdd_clarify instead' further differentiates it from vdd_clarify.

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

Usage Guidelines5/5

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

The description gives explicit when-to-use guidance: 'Use for a NEW spec'. It also names the alternative tool and the condition for choosing it: 'to resolve leftover [NEEDS CLARIFICATION] markers in an existing spec use vdd_clarify instead.' This is direct routing guidance with no ambiguity.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.