Skip to Content
ReferenceMCP Tools

MCP Tools

Complete reference for all 22 SpecForge MCP tools — parameters, usage, and examples.

SpecForge exposes 22 MCP tools organized in five categories. These tools are available to any MCP-compatible coding agent (Claude Code, Cursor, VS Code with Copilot, Gemini CLI, etc.) once the SpecForge MCP server is configured.

Queries

Six tools for reading project data, searching tickets, and generating reports. These are read-only — they never modify your specification.

get

Retrieves a single entity by type and ID.

ParameterTypeRequiredDescription
type"project" | "specification" | "epic" | "ticket" | "implementation_session"YesEntity type to retrieve
idstringYesEntity ID
specificationIdstringNoSpecification context (required for epics and tickets)
{ "type": "ticket", "id": "tkt_abc123", "specificationId": "spec_xyz789" }

Returns

Returns the full entity object. The shape depends on the type parameter:

Ticket (type: "ticket"):

FieldTypeDescription
idstringTicket ID
epicIdstringParent epic ID
ticketNumbernumberSequential ticket number
titlestringTicket title
descriptionstringDetailed description
status"todo" | "queue" | "in_progress" | "blocked" | "done"Current status
progressnumberCompletion progress (0–100)
priority"low" | "medium" | "high"Priority level
complexity"small" | "medium" | "large" | "xlarge"Complexity estimate
tagsstring[]Tags
estimatedHoursnumberEstimated effort in hours
acceptanceCriteriaobject[]Acceptance criteria with id, description, validated
implementationobjectImplementation steps, code examples, prerequisites
technicalDetailsobjectFile operations, API endpoints, database operations
notesstring | objectImplementation notes or structured notes
blockReasonstringWhy the ticket is blocked (if applicable)
createdAtstringISO 8601 timestamp
updatedAtstringISO 8601 timestamp

Specification (type: "specification"):

FieldTypeDescription
idstringSpecification ID
projectIdstringParent project ID
titlestringSpecification title
descriptionstringWhat to build
status"draft" | "planning" | "specifying" | "validating" | "ready" | "in_progress" | "completed"Current status
progressnumberOverall progress (0–100)
goalsstring[]Specification goals
requirementsstring[]Requirements
techStackstring[]Technologies used
tagsstring[]Tags
estimatedHoursnumberTotal estimated effort

Epic (type: "epic"):

FieldTypeDescription
idstringEpic ID
specificationIdstringParent specification ID
epicNumbernumberSequential epic number
titlestringEpic title
descriptionstringEpic description
objectivestringWhat this epic achieves
status"todo" | "in_progress" | "completed"Current status
progressnumberCompletion progress (0–100)
ordernumberDisplay order
ticketCountnumberTotal tickets
completedTicketCountnumberCompleted tickets

Project (type: "project"):

FieldTypeDescription
idstringProject ID
namestringProject name
descriptionstringProject description
specCountnumberTotal specifications
completedSpecCountnumberCompleted specifications
ticketCountnumberTotal tickets across all specs

list

Lists entities of a given type with optional filters.

ParameterTypeRequiredDescription
type"projects" | "specifications" | "epics" | "tickets"YesEntity type to list
projectIdstringNoFilter by project (required for specifications)
specificationIdstringNoFilter by specification (required for epics and tickets)
epicIdstringNoFilter tickets by epic
{ "type": "tickets", "specificationId": "spec_xyz789", "epicId": "epic_456" }

Returns

Returns a paginated list:

FieldTypeDescription
itemsobject[]Array of entities matching the query
totalnumberTotal number of matching entities
nextTokenstringPagination token for the next page (if more results exist)

Each item in items is the full entity object (see get returns above for field details).

{ "items": [ { "id": "tkt_abc123", "title": "Set up User model", "status": "queue", ... }, { "id": "tkt_def456", "title": "Implement bcrypt hashing", "status": "queue", ... } ], "total": 4 }

Unified search across tickets with full-text queries and structured filters.

ParameterTypeRequiredDescription
querystringNoFull-text search across ticket titles and descriptions
filesstring[]NoFilter by expected file paths
tagsstring[]NoFilter by tags
statusstring[]NoFilter by status: "pending", "ready", "active", "done"
complexitystring[]NoFilter by complexity: "small", "medium", "large", "xlarge"
prioritystring[]NoFilter by priority: "low", "medium", "high", "critical"
limitnumberNoMaximum results to return
offsetnumberNoPagination offset
fieldsstring[]NoSpecific fields to include in results
{ "query": "authentication middleware", "status": ["ready", "pending"], "priority": ["high", "critical"], "limit": 10 }

Returns

Returns a paginated list of tickets:

FieldTypeDescription
itemsTicket[]Array of matching tickets
totalnumberTotal number of matches
nextTokenstringPagination token (if more results exist)

When using the fields parameter, only the requested fields are included in each ticket object.

✅ Combine files with tags to find all tickets touching a specific part of your codebase. For example, files: ["src/auth/**"] with tags: ["security"].


get_next_actionable_tickets

Returns tickets in ready status with all dependencies satisfied, ordered by priority and complexity.

ParameterTypeRequiredDescription
specificationIdstringYesSpecification to query
projectIdstringNoProject context
limitnumberNoMaximum tickets to return
{ "specificationId": "spec_xyz789", "limit": 5 }

Returns

Returns an array of ticket objects in ready status with all dependencies satisfied, ordered by priority (critical first) then complexity (smallest first).

[ { "id": "tkt_abc123", "title": "Implement JWT token generation", "status": "queue", "priority": "high", "complexity": "medium", "epicId": "epic_456", "ticketNumber": 3, ... } ]

This is the primary entry point for agents deciding what to work on next. In Agent Teams, the orchestrator calls this to assign tickets to workers.


get_blocked_tickets

Returns tickets in pending status along with the reasons they’re blocked.

ParameterTypeRequiredDescription
specificationIdstringYesSpecification to query

Returns

Returns an array of blocked ticket entries:

FieldTypeDescription
ticketTicketThe blocked ticket object
blockedByobject[]Array of { id, title, status } for each unresolved dependency
daysBlockednumberNumber of days the ticket has been blocked
[ { "ticket": { "id": "tkt_ghi789", "title": "Build login endpoint", "status": "todo", ... }, "blockedBy": [ { "id": "tkt_def456", "title": "Implement bcrypt hashing", "status": "in_progress" } ], "daysBlocked": 2 } ]

get_report

Generates analytical reports at different scopes and time ranges.

ParameterTypeRequiredDescription
type"implementation" | "time" | "blockers" | "work" | "implementation_analysis" | "sessions"YesReport type
scope"project" | "specification" | "epic"YesReport scope. sessions requires scope="project".
scopeIdstringYesID of the scope entity
startDatestringNoStart date for time-ranged reports (ISO 8601)
endDatestringNoEnd date for time-ranged reports (ISO 8601)
Report TypeDescription
implementationProgress summary with completion percentages and remaining work
timeTime tracking analysis with estimated vs. actual hours
blockersDetailed blocker analysis with dependency chains
workWork session history and activity log
implementation_analysisDeep analysis of implementation quality and patterns
sessionsActive planning, work, and review sessions for a project (project scope only)

Returns

The response shape varies by report type:

implementation — Progress summary:

FieldTypeDescription
projectProjectProject or scope entity
specificationsobject[]Per-spec breakdown with completedEpics, totalEpics, completedTickets, totalTickets
recentActivityobject[]Recent actions with ticketId, ticketTitle, action, timestamp

time — Time tracking:

FieldTypeDescription
totalHoursnumberActual hours spent
estimatedHoursnumberTotal estimated hours
variancenumberDifference between estimated and actual
ticketBreakdownobject[]Per-ticket { ticketId, ticketTitle, estimated, actual }

blockers — Blocker analysis:

FieldTypeDescription
blockedTicketsobject[]Blocked tickets with ticket, blockedBy[], daysBlocked
blockingChainsobject[]Root blockers with rootBlocker, affectedTickets count

sessions — Active sessions (project scope only):

FieldTypeDescription
planningobject[]Active planning sessions with sessionId, specificationId, specificationTitle, startedAt
workobject[]Active work sessions with sessionId, ticketId, ticketTitle, startedAt
reviewobject[]Active review sessions with sessionId, specificationId, specificationTitle, startedAt
summaryobject{ totalActive, planningCount, workCount, reviewCount }

Errors — calling with scope !== "project" or a missing scopeId returns a validation error telling the agent to call get_report({ type: "sessions", scope: "project", scopeId: <projectId> }).


Lifecycle

Nine tools that drive specifications through planning, implementation, and review. These are the core workflow tools.

start_planning_session

Opens a planning session for a specification, enabling structural changes.

ParameterTypeRequiredDescription
specificationIdstringYesSpecification to plan

The specification must be in draft, planning, specifying, or validating state.

Returns

FieldTypeDescription
specificationIdstringSpecification ID
sessionIdstringPlanning session ID
previousStatusstringStatus before opening the session
newStatusstringStatus after opening (e.g., "planning")
messagestringConfirmation message

action_planning_session

Performs operations within an active planning session. This is the primary tool for building specifications — it handles 18 distinct operations.

ParameterTypeRequiredDescription
specificationIdstringYesSpecification being planned
operationstringYesOperation to perform (see table below)

Additional parameters depend on the operation.

Structure Operations

OperationDescription
set_metadataUpdate specification title, description, or tags
create_epicCreate a new epic with title, description, and ordering
update_epicModify an existing epic
create_ticketCreate a ticket within an epic
update_ticketModify an existing ticket
delete_epicRemove an epic and its tickets
delete_ticketRemove a single ticket

Linking Operations

OperationDescription
add_dependenciesDefine dependency links between tickets
remove_dependencyRemove a dependency link
create_blueprintCreate a new blueprint document
link_blueprintLink a blueprint to an epic
update_blueprintModify an existing blueprint
delete_blueprintRemove a blueprint
unlink_blueprintUnlink a blueprint from an epic

Query & Control Operations

OperationDescription
get_ticketRetrieve a ticket within session context
advance_phaseManually advance the specification phase
get_statusGet current planning session status
gpsGet a planning summary with progress indicators

Example — Creating a ticket:

{ "specificationId": "spec_xyz789", "operation": "create_ticket", "epicId": "epic_456", "title": "Implement JWT token generation", "description": "Create a service that generates signed JWT access tokens with configurable expiration.", "complexity": "medium", "priority": "high", "steps": [ "Create JwtService class in src/auth/jwt.service.ts", "Implement generateAccessToken method with RS256 signing", "Add token expiration configuration via environment variables", "Write unit tests for token generation and validation" ], "acceptanceCriteria": [ "Tokens are signed with RS256 algorithm", "Token expiration is configurable", "Invalid tokens are rejected with clear error messages" ] }

Returns

The response depends on the operation:

Structure operations (create_epic, create_ticket, update_epic, update_ticket): Returns the created or updated entity object.

Delete operations (delete_epic, delete_ticket): Returns { id, message } confirmation.

Linking operations (add_dependencies, remove_dependency, create_blueprint, etc.): Returns { id, message } or the linked entity.

Query operations (get_ticket, get_status, gps): Returns the requested data — ticket object, session status, or planning summary.

advance_phase: Returns { previousPhase, newPhase, message }.

ℹ️ The specification transitions automatically between planning, specifying, and validating states based on the operations you perform. You don’t manage these transitions manually.


complete_planning_session

Ends the planning session and triggers the Planning Review gate.

ParameterTypeRequiredDescription
specificationIdstringYesSpecification to complete planning

Returns

FieldTypeDescription
specificationIdstringSpecification ID
messagestringConfirmation message
gateResultobjectPlanning Review result (if gate is enabled)
gateResult.passedbooleanWhether the review passed
gateResult.scorenumberReadiness score (0–100)
gateResult.findingsobject[]Issues found: { severity, category, field, message, suggestion }

If the Planning Review gate is enabled and the specification passes, it advances to ready.


start_work_session

Begins implementation work on a specific ticket.

ParameterTypeRequiredDescription
ticketIdstringYesTicket to work on (must be in ready status)

Transitions the ticket from ready to active.

Returns

Returns the full implementation context:

FieldTypeDescription
ticketTicketThe ticket being implemented (full object)
epicEpicThe parent epic
specificationSpecificationThe parent specification
dependencies.blockedByobject[]Tickets that must complete before this one: { id, title, status }
dependencies.blocksobject[]Tickets waiting on this one: { id, title, status }
relatedTicketsobject[]Other tickets in the same epic: { id, title, status, sameEpic }
patternsobjectCode patterns and conventions from the project
activeSessionobject | nullActive implementation session summary
previousAttemptsobject[]Previous implementation attempts with test results
relatedDiscoveriesobject[]Discoveries from related tickets
{ "ticket": { "id": "tkt_abc123", "title": "Implement JWT token generation", "status": "in_progress", "acceptanceCriteria": [ { "id": "ac-0", "description": "Tokens are signed with RS256", "validated": false } ], "implementation": { "steps": [ { "order": 1, "title": "Create JwtService", "action": "create", "detail": "..." } ] }, ... }, "epic": { "id": "epic_456", "title": "Token Management", ... }, "specification": { "id": "spec_xyz789", "title": "Auth System", ... }, "dependencies": { "blockedBy": [], "blocks": [...] }, "relatedTickets": [...], "previousAttempts": [], "relatedDiscoveries": [] }

action_work_session

Records progress, results, and discoveries during implementation.

ParameterTypeRequiredDescription
ticketIdstringYesActive ticket
stepsobject[]NoStep completion updates
acceptanceCriteriaobject[]NoAcceptance criteria results
testResultsobject[]NoTest execution results
notesstringNoImplementation notes
filesobject[]NoFile changes made
discoveryobjectNoNew information discovered during implementation
blockReasonstringNoReport an external blocker
{ "ticketId": "tkt_abc123", "steps": [ { "index": 0, "completed": true }, { "index": 1, "completed": true } ], "files": [ { "path": "src/auth/jwt.service.ts", "action": "created" }, { "path": "src/auth/jwt.service.test.ts", "action": "created" } ], "notes": "Used jose library instead of jsonwebtoken for Edge Runtime compatibility." }

Returns

Returns confirmation with the updated work session state:

FieldTypeDescription
ticketIdstringTicket ID
workSessionIdstringWork session ID
messagestringConfirmation message

complete_work_session

Finalizes work on a ticket with a summary and validation results.

ParameterTypeRequiredDescription
ticketIdstringYesActive ticket
summarystringYesSummary of work performed
filesobject[]NoFinal list of file changes
actualHoursnumberNoHours spent on implementation
validationobjectNoValidation results: tests, lint, typeCheck, build

Returns

FieldTypeDescription
ticketIdstringTicket ID
status"done"New ticket status
workSessionIdstringCompleted work session ID
messagestringConfirmation message
dependentsUnblockedstring[]IDs of tickets that became ready as a result

Transitions the ticket from active to done. Dependent tickets are recalculated and may become ready.


start_review_session

Begins an Implementation Review session for a specification.

ParameterTypeRequiredDescription
specificationIdstringYesSpecification to review (must be in ready_for_review state)

Returns

FieldTypeDescription
specificationIdstringSpecification ID
reviewSessionIdstringReview session ID
previousStatusstringStatus before review
newStatusstringNew status ("in_review")
messagestringConfirmation message
initialFindingsnumberNumber of findings from initial review scan

action_review_session

Addresses findings during an active review session.

ParameterTypeRequiredDescription
specificationIdstringYesSpecification being reviewed
reviewSessionIdstringYesActive review session ID
findingsAddressedobject[]YesList of findings and how they were addressed

Returns

FieldTypeDescription
messagestringConfirmation message
findingsAddressednumberNumber of findings addressed in this action
findingsRemainingnumberNumber of unresolved findings

complete_review_session

Concludes the Implementation Review.

ParameterTypeRequiredDescription
specificationIdstringYesSpecification being reviewed
reviewSessionIdstringYesReview session ID
summarystringYesReview summary
confirmAllDismissedbooleanNoConfirm that all remaining findings are intentionally dismissed

Returns

FieldTypeDescription
specificationIdstringSpecification ID
reviewSessionIdstringReview session ID
passedbooleanWhether the review passed
summarystringReview summary
findingsAddressednumberTotal findings addressed
findingsDismissednumberTotal findings dismissed
newStatusstringNew specification status ("reviewed" or "completed")

Mutations

Four tools for creating, modifying, and linking project data.

create_specification

Creates a new specification within a project.

ParameterTypeRequiredDescription
projectIdstringYesProject to create the specification in
titlestringYesSpecification title
descriptionstringYesDetailed description of what to build

Returns

Returns the created specification object with all fields (see get returns for Specification).

{ "id": "spec_xyz789", "projectId": "proj_123", "title": "User Authentication System", "status": "draft", "progress": 0, ... }

reopen_specification

Reopens a completed or reviewed specification for additional work.

ParameterTypeRequiredDescription
specificationIdstringYesSpecification to reopen

Returns

FieldTypeDescription
specificationIdstringSpecification ID
previousStatusstringStatus before reopening
newStatusstringNew status (e.g., "in_progress")
messagestringConfirmation message

reset_work_session

Resets completed tickets back to a workable state.

ParameterTypeRequiredDescription
specificationIdstringYesSpecification context
ticketIdsstring[]YesTickets to reset
optionsobjectNoReset options (e.g., clear files, clear notes)

Returns

FieldTypeDescription
resetWorkSessionstring[]IDs of tickets that were reset
dependentsResetstring[]IDs of dependent tickets that were cascaded
skippedobject[]Tickets that couldn’t be reset: { ticketId, reason }

⚠️ Resetting tickets clears work session data. Linked commits and PRs are preserved, but step completions, notes, and acceptance criteria results are removed. Resetting cascades to dependent tickets.


Associates a pull request with a completed ticket.

ParameterTypeRequiredDescription
ticketIdstringYesTicket to link
prNumbernumberYesPull request number
prUrlstringYesFull pull request URL
titlestringYesPR title
authorstringYesPR author
repoUrlstringYesRepository URL

Returns

Returns the created link object:

FieldTypeDescription
idstringLink ID
ticketIdstringTicket ID
linkType"pull_request"Link type
urlstringPR URL
prNumbernumberPR number
titlestringPR title
statusstringPR status
createdAtstringISO 8601 timestamp

Orchestration

Two tools for understanding and navigating the dependency graph.

get_critical_path

Calculates the longest dependency chain in a specification — the sequence of tickets that determines the minimum time to completion.

ParameterTypeRequiredDescription
specificationIdstringYesSpecification to analyze

Returns

FieldTypeDescription
criticalPathobject[]Ordered list of tickets on the critical path
criticalPath[].idstringTicket ID
criticalPath[].titlestringTicket title
criticalPath[].statusstringCurrent status
criticalPath[].estimatedHoursnumberEstimated effort
criticalPath[].complexitystringComplexity level
totalEstimatedHoursnumberSum of estimated effort on the critical path
pathLengthnumberNumber of tickets in the critical path

get_dependency_tree

Renders the complete upstream and downstream dependency tree for a specification.

ParameterTypeRequiredDescription
specificationIdstringYesSpecification to analyze

Returns

Returns a tree structure showing all tickets, their dependencies, and statuses:

FieldTypeDescription
treeobject[]Root nodes (tickets with no dependencies)
tree[].idstringTicket ID
tree[].titlestringTicket title
tree[].statusstringCurrent status
tree[].epicIdstringParent epic ID
tree[].childrenobject[]Downstream dependent tickets (recursive structure)
totalTicketsnumberTotal ticket count
completedTicketsnumberCompleted ticket count

Useful for visualizing the overall shape of work and identifying bottlenecks.


Utility

feedback

Submit feedback, report issues, or suggest improvements.

ParameterTypeRequiredDescription
operation"submit" | "list" | "get"YesFeedback operation
categorystringNoFeedback category (for submit)
summarystringNoFeedback summary (for submit)
severitystringNoIssue severity (for submit)
toolstringNoWhich tool the feedback relates to (for submit)

Returns

Depends on the operation:

  • submit: Returns { id, message } — the feedback ID and confirmation.
  • list: Returns an array of feedback entries with id, category, summary, status, createdAt.
  • get: Returns the full feedback entry by ID.

See Also