Skip to main content
Glama

provision_agent

Destructive

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

NameRequiredDescriptionDefault
nameNoName of the agent
goalsNo[{ brain_slug?, title, description?, target_date? }]
grundNoWhy this change (goes into the optimisation register, list_optimierungen)
brainsNo[{ slug, name?, create?, can_write? }]
run_toNoHH:MM end of the working window
valuesNoThe agent's rules (values)
personaNoPersona text describing the agent's role and style
user_idNoID of the user
agent_idNoExisting agent to update. name is then optional.
autonomyNoautonomous|approval|read_only
run_daysNo1=Mon..7=Sun
run_fromNoHH:MM start of the working window
fast_modelNoModel for quick, routine steps of this agent
seed_todosNo[{ brain_slug?, title, due_at?, priority? }]
descriptionNoDescription of the agent
seed_memoryNo[{ brain_slug?, key?, content, importance? }]
seed_skillsNo[{ brain_slug?, name, steps, trigger_hint? }]
trigger_modeNomcp_client|server_job (only when given)
deliberate_modelNoModel for slower, more careful reasoning steps of this agent
tool_permissionsNo[{ tool (or tool_name), permission: allow|disallow|approval, brain_slug? }]
run_every_minutesNoRun cadence in minutes for server_job agents, e.g. 1440 for daily

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / deliberate_model / description
      Added value: +"Model for slower, more careful reasoning steps of this agent"
    • addedInput schema / properties / description / description
      Added value: +"Description of the agent"
    • addedInput schema / properties / fast_model / description
      Added value: +"Model for quick, routine steps of this agent"
    • addedInput schema / properties / name / description
      Added value: +"Name of the agent"
    • addedInput schema / properties / persona / description
      Added value: +"Persona text describing the agent's role and style"
    • addedInput schema / properties / run_every_minutes / description
      Added value: +"Run cadence in minutes for server_job agents, e.g. 1440 for daily"
    • addedInput schema / properties / user_id / description
      Added value: +"ID of the user"
    • addedInput schema / properties / values / description
      Added value: +"The agent's rules (values)"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations it discloses the traits that actually matter: updates are partial, omitted fields persist, null clears a field, tool_permissions are additive and never removed, invalid entries reject the whole call atomically, and the returned `now` snapshot must be read back. The scoped "idempotent by name" claim refers to name-keyed deduplication, which is compatible with idempotentHint=false for repeat-call effects, so it is not a contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Mutation semantics and the partial-update caveat are front-loaded, and nearly every clause carries information. The nested parenthetical in the opening sentence and the dense ALL-CAPS emphasis make it slightly harder to parse than it needs to be, but nothing is padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 21-parameter, no-output-schema mutation tool, the description covers the creation/update decision, replication semantics of partial updates, atomic validation, and the return shape including what to verify. The remaining per-field shapes live in the fully described schema, so nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so per-parameter text is already there and the baseline would be 3. The description still adds real semantics the schema does not carry: that schedule parameters apply only when supplied, that tool_permissions merge rather than replace, that null is a meaningful input for clearing, and that tenant/owner are injected from the caller rather than passed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names the exact verb and resource and enumerates the payload surface (persona/values/model tiers, brains, tool permissions, autonomy, seed data), and it distinguishes the create path from the update path via agent_id. An agent can tell this apart from create_agent/update_agent without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear routing guidance: use name for idempotent create, pass agent_id to update an existing agent, include schedule fields only when scheduling is desired. It stops short of an explicit when-not-to-use or naming the sibling CRUD tools, so it is strong context rather than a full decision rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.