mcp-sequential-thinking mcp

v1.0.0 · MCP Tool · ai · registry.pascalai.org

Structured sequential thinking tool — break complex problems into numbered thought steps, allow revision and branching, and produce a final reasoned conclusion. Operations: create_session, add_thought, get_session, list_sessions, conclude, delete_session.

sequential-thinkingreasoningchain-of-thoughtplanningai

Input Parameters

ParameterTypeDescription
operationrequired string Operation to perform. One of: create_session, add_thought, get_session, list_sessions, conclude, delete_session.
storagePathoptional string Directory for session storage (default: ./sessions).
sessionIdoptional string Session ID for operations on existing sessions.
problemoptional string Problem statement for create_session.
thoughtoptional string Thought text for add_thought.
stepTypeoptional string Step type: thought, revision, branch (default: thought). Default: thought.
stepNumberoptional integer Step number being revised (for revision steps).
conclusionoptional string Final conclusion text for conclude operation.

Output Fields

FieldTypeDescription
session object
sessions array[object]
ok boolean
error string

Examples

Create a thinking session

// Input
{
  "operation": "create_session",
  "problem": "Should I use PostgreSQL or MongoDB?"
}

// Output
{
  "session": {
    "id": "sess_abc",
    "problem": "Should I use PostgreSQL or MongoDB?",
    "steps": []
  }
}

Install & Discovery

Install

ppm install mcp-sequential-thinking

Get JSON Schema

GET /v1/packages/mcp-sequential-thinking/1.0.0/schema

Discover by keyword

GET /v1/mcp/discover?q=sequential-thinking
Discovery hint: Install with ppm install mcp-sequential-thinking or invoke remotely via POST /v1/invoke/mcp-sequential-thinking on the MCP Service.

PascalAI Usage

uses toolslib;
var Tool := LoadTool('mcp-sequential-thinking');
var R := Tool.Call(JsonObj(['operation','create_session','problem','What DB should I use?']));
Writeln(R.ToJSON);