Skip to main content
Glama

Branch Thinking

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
branch-thinking

Branch-Thinking Tool

Purpose: Use branching commands to create, navigate, and analyze thought branches and tasks.

Usage: Provide a JSON payload with 'type' and relevant parameters in 'args' object. The tool returns an array of items in the format { type: string, text: string }.

Supported Commands:

  • create-branch: { type: 'create-branch', branchId }
  • focus: { type: 'focus', branchId }
  • add-thought: { type: 'add-thought', branchId, content }
  • semantic-search: { type: 'semantic-search', query, topN? }
  • extract-tasks: { type: 'extract-tasks', branchId? }
  • visualize: { type: 'visualize', branchId?, options? }
  • list-branches: { type: 'list-branches' }
  • history: { type: 'history', branchId }
  • insights: { type: 'insights', branchId }
  • crossrefs: { type: 'crossrefs', branchId }
  • hub-thoughts: { type: 'hub-thoughts', branchId }
  • link-thoughts: { type: 'link-thoughts', fromThoughtId, toThoughtId, linkType, reason? }
  • add-snippet: { type: 'add-snippet', content, tags, author? }
  • snippet-search: { type: 'snippet-search', query, topN? }
  • summarize-branch: { type: 'summarize-branch', branchId? }
  • doc-thought: { type: 'doc-thought', thoughtId }
  • review-branch: { type: 'review-branch', branchId? }
  • ask: { type: 'ask', question }
  • summarize-tasks: { type: 'summarize-tasks', branchId? }
  • advance-task: { type: 'advance-task', taskId, status }
  • assign-task: { type: 'assign-task', taskId, assignee }
  • reset-session: { type: 'reset-session' }
  • clear-cache: { type: 'clear-cache' }
  • get-cache-stats: { type: 'get-cache-stats' }

Visualization Options:

  • clustering: { type: 'clustering', algorithm? }
  • centrality: { type: 'centrality', metric? }
  • overlays: { type: 'overlays', features? }
  • analytics: { type: 'analytics', metrics? }

Example Calls and Expected Responses:

// Add a thought { "name": "branch-thinking", "args": { "type": "add-thought", "branchId": "research", "content": "Define MCP best practices" } } // → [{"type":"text","text":"Thought added to branch research."}]
// Get insights { "name": "branch-thinking", "args": { "type": "insights", "branchId": "research" } } // → [{"type":"text","text":"Insights for branch research: ['Best practices cluster around workflow safety and semantic search.', 'Cross-references indicate high reuse of planning patterns.']"}]
// Get cross-references { "name": "branch-thinking", "args": { "type": "crossrefs", "branchId": "research" } } // → [{"type":"text","text":"Cross-references for branch research: [{ from: 't1', to: 't3', type: 'supports', reason: 't1 evidence for t3' }, { from: 't2', to: 't4', type: 'related' }]"}]
// Extract tasks { "name": "branch-thinking", "args": { "type": "extract-tasks", "branchId": "research" } } // → [{"type":"text","text":"Tasks extracted: [{ id: 'task-123', content: 'Document MCP safety rules', status: 'open' }]"}]
// Summarize tasks { "name": "branch-thinking", "args": { "type": "summarize-tasks", "branchId": "research" } } // → [{"type":"text","text":"Task summary: 1 open, 2 in progress, 0 closed."}]
// Advance a task { "name": "branch-thinking", "args": { "type": "advance-task", "taskId": "task-123", "status": "in_progress" } } // → [{"type":"text","text":"Task task-123 status updated to in_progress."}]
// Assign a task { "name": "branch-thinking", "args": { "type": "assign-task", "taskId": "task-123", "assignee": "alice" } } // → [{"type":"text","text":"Task task-123 assigned to alice."}]
// Semantic search { "name": "branch-thinking", "args": { "type": "semantic-search", "query": "workflow planning", "topN": 3 } } // → [{"type":"text","text":"Top 3 semantic matches for 'workflow planning' returned."}]
// Link thoughts { "name": "branch-thinking", "args": { "type": "link-thoughts", "fromThoughtId": "t1", "toThoughtId": "t2", "linkType": "supports" } } // → [{"type":"text","text":"Linked thought t1 to t2 as 'supports'."}]
// Summarize branch { "name": "branch-thinking", "args": { "type": "summarize-branch", "branchId": "research" } } // → [{"type":"text","text":"Summary for branch research: ..."}]
// Review branch { "name": "branch-thinking", "args": { "type": "review-branch", "branchId": "research" } } // → [{"type":"text","text":"Branch research reviewed. 2 suggestions found."}]

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/ssdeanx/branch-thinking-mcp'

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