Skip to main content
Glama

Create spec doc

create_spec_doc

Creates or reopens spec.md for the active work using the standard workdoc template, enabling coding agents to recover context from a durable spec.

Instructions

Create or reopen spec.md for the active work using the standard workdoc template.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_spec_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
work_idNoOptional explicit work id. Defaults to the active work when unambiguous.

Output Schema

NameRequiredDescriptionDefault
pathYes
workYes
createdYes
target_pathsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that the tool will 'reopen' an existing spec.md and that content follows a 'standard workdoc template,' but it does not say what happens to existing content on reopen, whether auth or an active work is required, or whether it errors without one.

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?

A single well-formed sentence with the action and scope front-loaded and no wasted wording.

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 simple one-parameter tool with an output schema present, the description covers purpose, scope, and template behavior adequately. The main remaining gap is clarifying what 'reopen' means for an existing document's contents.

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% and the single work_id parameter is fully documented there. The description only indirectly gestures at the default behavior by saying 'active work,' so it adds little beyond the schema's own default note.

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?

States a specific verb ('create or reopen') and resource ('spec.md') scoped to the active work, with the template named. The resource name distinguishes it from sibling doc-creation tools like create_design_doc and create_plan_doc, though no explicit contrast is drawn.

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

Usage Guidelines3/5

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

The phrase 'for the active work' implies the context in which this applies, but there is no explicit when-to-use versus when-not guidance and no named alternative for choosing between spec, design, plan, or summary doc creation.

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