Skip to main content
Glama

fork_profile

Create a draft copy of an existing agent profile to stage changes safely; source config is copied but runtime attachments must be reattached before activation.

Instructions

Fork a profile into a new staging draft (slug auto-suffixed). env is the branch the SOURCE profile is read from. The copy carries the source's model, prompt-version pins (the same version rows — not copies), tool/KB/legacy-MCP id lists, sub-agents, endpoint and voice/memory config. It does NOT copy the join-table attachments — MCP attachments (what binds tools at runtime) and platform skills — so re-attach them with profile_attachments. It starts as status='draft' and delegatable=false, so it serves nothing until activated/promoted.

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": {
      "profile_id": "<profile_id>"
    },
    "name": "fork_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
profile_idYesAgent profile UUID (list_profiles / get_profile).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the entire burden and does so thoroughly: it enumerates what is copied (model, version pins, id lists, sub-agents, endpoint, voice/memory config), explicitly calls out that version pins are shared rows rather than copies, and lists what is NOT copied (MCP attachments, platform skills). It also discloses the resulting state (status='draft', delegatable=false) and the real-world consequence (serves nothing until activation).

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

Conciseness5/5

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

Purpose and side effects are front-loaded, then copy semantics, then exclusions, then resulting state, then the follow-up tool. Every sentence carries non-redundant information; there is no filler or restatement of the tool name.

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

Completeness4/5

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

For a two-parameter mutation with an output schema, this covers nearly everything an agent needs: copy scope, exclusions, initial status, and remediation via profile_attachments. The remaining gap is that it never states whether the fork itself writes into the same `env` it reads from, which matters given the schema's read/write framing.

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 coverage is 100%, so baseline is 3, but the description adds genuine meaning the schema lacks: it narrows `env` to 'the branch the SOURCE profile is read from', which is a meaningful refinement over the schema's generic 'read/write' wording. It leaves a small residual ambiguity about which env the new copy is written into, preventing a 5.

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 clause gives a specific verb and resource ('fork a profile') plus the resulting artifact ('new staging draft, slug auto-suffixed'). It is immediately distinguishable from promote_profile, update_profile, and profile_attachments 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 clearly frames the operation as a precursor step ('serves nothing until activated/promoted') and explicitly redirects attachment work to profile_attachments. It stops short of saying when an agent should fork versus edit in place via update_profile, so the alternative-routing is partial rather than complete.

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