provision_agent
Create (or update, idempotent by name — or pass agent_id to update that agent) a full agent in one call: persona/values/model tiers, granted brains, tool permissions, autonomy, and seed memory/skills/goals/todos. tenant/owner come from the caller. UPDATES ARE PARTIAL: fields you omit stay as they are (values, persona, description, models, autonomy); pass null to clear one. tool_permissions are added or changed, never removed. Schedule (only when given): trigger_mode, run_every_minutes, run_from/run_to (working window), run_days. Any invalid entry rejects the whole call before anything is written. Returns { agent_id, applied, now } — now is read back from the database (values_chars, tool_permissions_total), so check it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "provision_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the agent | |
| goals | No | [{ brain_slug?, title, description?, target_date? }] | |
| grund | No | Why this change (goes into the optimisation register, list_optimierungen) | |
| brains | No | [{ slug, name?, create?, can_write? }] | |
| run_to | No | HH:MM end of the working window | |
| values | No | The agent's rules (values) | |
| persona | No | Persona text describing the agent's role and style | |
| user_id | No | ID of the user | |
| agent_id | No | Existing agent to update. name is then optional. | |
| autonomy | No | autonomous|approval|read_only | |
| run_days | No | 1=Mon..7=Sun | |
| run_from | No | HH:MM start of the working window | |
| fast_model | No | Model for quick, routine steps of this agent | |
| seed_todos | No | [{ brain_slug?, title, due_at?, priority? }] | |
| description | No | Description of the agent | |
| seed_memory | No | [{ brain_slug?, key?, content, importance? }] | |
| seed_skills | No | [{ brain_slug?, name, steps, trigger_hint? }] | |
| trigger_mode | No | mcp_client|server_job (only when given) | |
| deliberate_model | No | Model for slower, more careful reasoning steps of this agent | |
| tool_permissions | No | [{ tool (or tool_name), permission: allow|disallow|approval, brain_slug? }] | |
| run_every_minutes | No | Run cadence in minutes for server_job agents, e.g. 1440 for daily |