Plan Tool Workflow
plan_tool_workflowRoutes a raw user message to an appropriate tool workflow when none is preloaded, returning ordered tool names and sufficiency flags to guide next steps.
Instructions
Route a user message to the optimal tool workflow. Returns a plan object with the ordered tool names and sufficiency flags. Use when the server has not yet pre-injected a workflow plan for the current conversation. Pass userMessage from the raw user message; skip if a plan is already present in context.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"userMessage": "<userMessage>"
},
"name": "plan_tool_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userMessage | Yes | The raw user message to analyze |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| needsResolve | Yes | ||
| needsSourcing | No | ||
| workflowSteps | Yes | ||
| confidenceNote | Yes | ||
| detectedIntent | Yes | ||
| maxSearchCalls | Yes | ||
| needsSubstitutions | Yes | ||
| detectedRestrictions | Yes |