register_decomposition_rule
Registers a runtime regex-based rule that maps natural-language goals to structured agent steps with roles, risk levels, tools, dependencies, and evaluation criteria.
Instructions
Register a new task decomposition rule at runtime (admin only).
Args:
pattern: Regex pattern matched against natural-language goals
steps_json: JSON array of step dicts with keys:
name, agent_role, description,
allowed_risk (SAFE_READ|SAFE_WRITE|DESTRUCTIVE),
mcp_tools (array), depends_on (array), eval_criteria
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": {
"pattern": "<pattern>",
"steps_json": "<steps_json>"
},
"name": "register_decomposition_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| steps_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |