Skip to main content
Glama

Register Agent

register_agent

Create or update an agent identity within a project and persist its profile to Git, so coding agents get unique names and shared records for coordination.

Instructions

Create or update an agent identity within a project and persist its profile to Git.

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": {
      "project_key": "<project_key>",
      "program": "<program>",
      "model": "<model>"
    },
    "name": "register_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoA valid explicit identity (e.g., "alpha-one", "cc-0") or adjective+noun combination (e.g., "BlueLake"). If omitted, a random valid name is auto-generated (RECOMMENDED). Names are unique per project; passing the same name updates the profile.
modelYesThe underlying model (e.g., "gpt5-codex", "opus-4.1").
formatNo
programYesThe agent program (e.g., "codex-cli", "claude-code").
project_keyYesThe same human key you passed to `ensure_project` (or equivalent identifier).
task_descriptionNoShort description of current focus (shows up in directory listings).
attachments_policyNoauto
registration_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.3.5
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / model / description
      Added value: +"The underlying model (e.g., \"gpt5-codex\", \"opus-4.1\")."
    • addedInput schema / properties / name / description
      Added value: +"A valid explicit identity (e.g., \"alpha-one\", \"cc-0\") or adjective+noun\ncombination (e.g., \"BlueLake\").\nIf omitted, a random valid name is auto-generated (RECOMMENDED).\nNames are unique per project; passing the same name updates the profile."
    • addedInput schema / properties / program / description
      Added value: +"The agent program (e.g., \"codex-cli\", \"claude-code\")."
    • addedInput schema / properties / project_key / description
      Added value: +"The same human key you passed to `ensure_project` (or equivalent identifier)."
    • addedInput schema / properties / task_description / description
      Added value: +"Short description of current focus (shows up in directory listings)."
  2. First observedv0.3.4

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one important trait: the profile is persisted to Git, implying a durable write. The 'create or update' wording also signals upsert semantics. It omits authentication requirements despite a registration_token parameter, and says nothing about failure modes, uniqueness conflicts, or the response.

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?

A single front-loaded sentence with no filler. It is efficiently structured, though its brevity is partly under-specification rather than disciplined economy.

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?

Placeholder

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

Parameters2/5

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

Schema coverage is 63%, below the high-coverage baseline, so the description should compensate and it does not. It alludes only vaguely to a project ('within a project'), leaving name, program, model, format, registration_token, and attachments_policy meaning entirely to the schema.

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

Purpose4/5

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

States a specific verb and resource: 'Create or update an agent identity within a project' plus 'persist its profile to Git'. That is far better than a tautology. It does not, however, distinguish itself from the sibling create_agent_identity, which an agent could easily mistake for the same operation.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance. The description never says whether to prefer this upsert over create_agent_identity, deregister_agent, retire_agent, or hard_delete_agent, nor does it state prerequisites such as when a registration_token is required.

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