Skip to main content
Glama
kevinlin

Spec-driven Development MCP Server

by kevinlin

spec_coding_tasks_start

Initiate task planning and provide guidance for creating structured development task lists from specifications.

Instructions

Start the task planning phase and provide guidance for creating the task list

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesSession identifier
feature_nameYesFeature name

Implementation Reference

  • The main handler function that executes the tool logic: logs the start, reads 'gen-tasks.md' template with feature_name and session_id, and returns a formatted markdown prompt for task planning stage including workflow progress and instructions.
    export async function tasksStart(
      params: TasksStartParams
    ): Promise<string> {
      const { session_id, feature_name } = params;
      console.error(`[MCP] Starting tasks planning for feature: ${feature_name}`);
      
      // Use gen-tasks.md template
      const template = await readTemplate('gen-tasks.md', {
        feature_name,
        session_id
      });
      
      return `# 📋 Task Planning Stage (4/5)
    
    ## Feature: ${feature_name}
    
    ### Workflow Progress:
    - [x] 1. Goal Collection ✅
    - [x] 2. Requirements Gathering ✅
    - [x] 3. Design Documentation ✅
    - [x] 4. **Task Planning** ← Current Stage
    - [ ] 5. Task Execution
    
    ---
    
    ${template}
    
    ---
    
    **Important**:
    - Please create task list according to the above guidelines
    - **Only when you explicitly confirm the task planning is complete can you call** \`spec_coding_tasks_confirmed\` tool
    - **Never** call the next stage tool before the user **explicitly confirms the tasks**
    
    **Session Information**:
    - Session ID: \`${session_id}\`
    - Feature Name: \`${feature_name}\`
    - Requirements: \`docs/specs/${feature_name}/requirements.md\`
    - Design: \`docs/specs/${feature_name}/design.md\``;
    }
  • The input schema definition for the tool, including name, description, and required properties session_id and feature_name.
    {
      name: 'spec_coding_tasks_start',
      description: 'Start the task planning phase and provide guidance for creating the task list',
      inputSchema: {
        type: 'object',
        properties: {
          session_id: { 
            type: 'string', 
            description: 'Session identifier' 
          },
          feature_name: { 
            type: 'string', 
            description: 'Feature name' 
          }
        },
        required: ['session_id', 'feature_name']
      }
    },
  • src/server.ts:231-233 (registration)
    Switch case in the CallToolRequestSchema handler that registers and dispatches calls to the spec_coding_tasks_start tool by invoking the tasksStart function.
    case 'spec_coding_tasks_start':
      result = await tasksStart(args as any);
      break;
  • src/server.ts:12-12 (registration)
    Import statement that brings in the tasksStart handler for use in the tool dispatch.
    import { tasksStart } from './tools/tasks.js';
  • TypeScript interface defining the input parameters for the tasksStart handler, matching the tool's input schema.
    export interface TasksStartParams {
      session_id: string;
      feature_name: string;
    }
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 mentions starting a phase and providing guidance, but doesn't clarify what 'guidance' entails (e.g., structured output, prompts, or instructions), whether this initiates a state change, or any side effects like authentication needs or rate limits. This is inadequate for a tool with no 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.

Conciseness4/5

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

The description is a single, efficient sentence that front-loads the key action and outcome without unnecessary words. It could be slightly more structured by explicitly mentioning the workflow context, but it earns its place by being direct and clear.

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 complexity implied by sibling tools in a multi-phase workflow, no annotations, and no output schema, the description is incomplete. It doesn't explain what 'guidance' looks like, how this tool interacts with others (e.g., 'spec_coding_tasks_confirmed'), or the expected behavior, leaving significant gaps for an agent to operate effectively.

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?

The schema description coverage is 100%, with both parameters ('session_id' and 'feature_name') clearly documented in the schema. The description adds no additional meaning about these parameters beyond what the schema provides, such as format examples or contextual usage, so it meets the baseline of 3 for high schema coverage.

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 the task planning phase') and the outcome ('provide guidance for creating the task list'), which gives a specific verb+resource combination. However, it doesn't explicitly distinguish this tool from its siblings like 'spec_coding_design_start' or 'spec_coding_workflow_start', which likely handle different phases of the same workflow.

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 provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., whether other tools must be called first), exclusions, or how it fits into the broader workflow with its siblings, leaving the agent to guess based on naming conventions alone.

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