Skip to main content
Glama

Vision Driven Design (VDD) MCP Server

Clarify Spec

vdd_clarify
Read-onlyIdempotent

VDD Phase 4b: Clarify an existing spec — scans vdd/specs//spec.md and returns the items to resolve: every [NEEDS CLARIFICATION] marker, [e.g.] placeholder, and happy-path acceptance criterion (AC) still needing an edge-case counterpart (AC-E*). Read-only; returns the list without editing the file (the host agent then applies the resolutions). Pass feature (spec directory name). Run after vdd_specify when a spec has unresolved markers; to author a brand-new spec use vdd_specify instead. Parameter relationships: feature must be the exact spec directory name created by vdd_specify. On the hosted (stateless) endpoint, pass artifactFiles ({"vdd/specs//spec.md": "..."}) so the tool can scan the spec and return the real markers; without it the tool returns a delegation envelope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
featureYesFeature name: the vdd/specs/<feature>/ directory, kebab-case (e.g., "user-auth"); must reference a directory created earlier by vdd_specify
projectRootNoProject root: directory that constitution.md and the vdd/ folder are written to and resolved against. Relative paths resolve from the current working directory; keep the same value across every phase (default ".").
artifactFilesNoMap of vdd/-relative artifact path → full file text, for the hosted (stateless) endpoint, which cannot read the caller filesystem; without it the tool returns a delegation envelope

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoError message when the phase fails
_phaseNoVDD phase that produced this result
outputNoAdditional structured phase output
successYesWhether the phase completed successfully
artifactNoPrimary artifact produced or returned
gateResultNoQuality-gate result, when the phase runs a gate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and idempotentHint, but the description adds substantive behavior beyond them: it does not edit the file (the host agent applies resolutions), and on the hosted stateless endpoint it returns a delegation envelope unless artifactFiles is supplied. That endpoint-specific failure mode is exactly the kind of context annotations cannot express.

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?

Front-loaded with phase, verb, and return payload, and every sentence carries information. The dedicated 'Parameter relationships' sentence partially restates the schema's feature description, which is the only mild redundancy.

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

Completeness5/5

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

With an output schema present, return values need no explanation, and the description still covers the delegation-envelope fallback and the read-only contract. Nothing an agent needs to call this correctly — required param, precondition, and hosted-endpoint caveat — is missing.

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 coverage is 100%, so the baseline is 3, but the description adds a real constraint beyond the schema: feature 'must be the exact spec directory name created by vdd_specify', and it explains the consequence of omitting artifactFiles on the hosted endpoint. It stops short of clarifying how projectRoot interacts with artifactFiles resolution.

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?

States a specific verb and resource ('Clarify an existing spec — scans vdd/specs/<feature>/spec.md and returns the items to resolve') and enumerates exactly what it returns (markers, [e.g.] placeholders, AC-E counterparts). It explicitly distinguishes itself from the sibling vdd_specify, so an agent can route without opening either schema.

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?

Gives an explicit trigger ('Run after vdd_specify when a spec has unresolved markers') and names the alternative for the opposite case ('to author a brand-new spec use vdd_specify instead'). When-to-use, when-not-to-use, and the alternative are all present.

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.