decompose_prompt
Decompose any raw prompt into structured semantic blocks (role, objective, context, constraints) for editing or recompilation.
Instructions
Decompose a raw prompt into structured blocks (role, objective, context, constraints, etc.).
Uses AI (Claude/OpenAI) if an API key is configured on the server, otherwise
falls back to keyword-based heuristic analysis.
Returns a JSON list of blocks ready to edit or pass to compile_prompt.
Args:
prompt: The raw prompt string to decompose.
Returns:
A summary of extracted blocks + the full JSON to pass to compile_prompt.
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": {
"prompt": "<prompt>"
},
"name": "decompose_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |