Skip to main content
Glama
kevinlin

Spec-driven Development MCP Server

by kevinlin

spec_coding_workflow_start

Initiate structured development by collecting project goals and requirements to guide subsequent specification, design, and implementation phases.

Instructions

Start the specs workflow and begin the goal collection phase

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function implementing the tool logic: generates a unique session ID, loads the 'ask-goal.md' template, and returns the formatted workflow start message with stage information and instructions.
    export async function workflowStart(): Promise<string> {
      const session_id = generateSessionId();
      console.error(`[MCP] Starting workflow with session_id: ${session_id}`);
      
      // Use ask-goal.md template
      const template = await readTemplate('ask-goal.md', {
        session_id
      });
      
      return `# 🚀 Spec-driven Development Workflow Started
    
    ## Current Stage: Goal Collection (1/5)
    
    Welcome to the Spec-driven development workflow! I'll help you complete the entire development process from requirements to code.
    
    ### Workflow Overview:
    - [ ] 1. **Goal Collection** ← Current Stage
    - [ ] 2. Requirements Gathering
    - [ ] 3. Design Documentation
    - [ ] 4. Task Planning
    - [ ] 5. Task Execution
    
    ---
    
    ${template}
    
    ---
    
    **Session Information**:
    - Session ID: \`${session_id}\`
    
    **Important**:
    - Please discuss the feature goals with me thoroughly until the goals are completely clear
    - **Only when you explicitly confirm the goals can you call** \`spec_coding_goal_confirmed\` tool
    - **Never** call the next stage tool before the user **explicitly confirms the goals**`;
    }
  • src/server.ts:207-209 (registration)
    Registration of the tool handler in the switch statement that dispatches tool calls to the workflowStart function.
    case 'spec_coding_workflow_start':
      result = await workflowStart();
      break;
  • Tool registration including the name, description, and input schema (empty since no input parameters are required).
    {
      name: 'spec_coding_workflow_start',
      description: 'Start the specs workflow and begin the goal collection phase',
      inputSchema: {
        type: 'object',
        properties: {},
        required: []
      }
    },
  • Workflow step definition that references the 'spec_coding_workflow_start' tool as part of the overall development workflow.
    {
      step_number: 1,
      name: STEP_NAMES.GOAL_CONFIRMATION,
      description: 'Clarify the feature development goal through conversation',
      tool: 'spec_coding_workflow_start → spec_coding_goal_confirmed',
      deliverable: 'Clear feature goal and feature_name'
    },
  • src/server.ts:6-6 (registration)
    Import statement for the workflowStart handler function used by the tool.
    import { workflowStart } from './tools/workflow.js';
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. It mentions starting a workflow and beginning a phase, but lacks details on behavioral traits such as side effects, permissions needed, whether it's idempotent, or what happens upon invocation. This is inadequate for a tool with zero annotation coverage.

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 a single, efficient sentence that directly states the tool's purpose without unnecessary words. It is front-loaded and every part contributes to understanding the action and phase.

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

Completeness2/5

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

Given the lack of annotations and output schema, the description is incomplete. It doesn't explain what the tool returns, what 'starting' entails behaviorally, or how it fits into the broader workflow with sibling tools. For a tool in a complex sibling set, more context is needed.

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 input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description doesn't add parameter details, which is appropriate, earning a baseline score of 4 for tools with no parameters.

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 action ('Start') and the target ('specs workflow'), and specifies the initial phase ('goal collection phase'). It distinguishes this as the beginning of a workflow rather than other phases, though it doesn't explicitly differentiate from sibling tools like 'spec_coding_design_start' or 'spec_coding_requirements_start'.

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?

The description implies this is the first step in a workflow ('Start'), but provides no explicit guidance on when to use it versus alternatives, prerequisites, or exclusions. It doesn't reference sibling tools or context for selection, leaving usage unclear beyond the implied initiation.

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/kevinlin/spec-driven-dev-mcp'

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