Skip to main content
Glama

Create Agent Identity

create_agent_identity

Creates a unique agent identity and persists its profile to Git, so multiple coding agents get memorable, trackable IDs for coordinated messaging and conflict-free collaboration.

Instructions

Create a new, unique agent identity 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": "create_agent_identity"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYes
formatNo
programYes
name_hintNo
project_keyYes
task_descriptionNo
attachments_policyNoauto
return_registration_tokenNoWhen True (default, current behaviour), the response includes the freshly-minted `registration_token`. When False, the token is omitted from the tool result so transcript-visible MCP sessions can satisfy a "do not echo secrets into scrollback" contract; the agent is still bound to the current MCP session via `_bind_session_agent`, so follow-up calls in the same session can authenticate without ever surfacing the token. The token still exists on the server and can be retrieved or rotated through the normal admin paths. See issue #154.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.5
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / return_registration_token / description
      Added value: +"When True (default, current behaviour), the response includes the\nfreshly-minted `registration_token`. When False, the token is omitted\nfrom the tool result so transcript-visible MCP sessions can satisfy\na \"do not echo secrets into scrollback\" contract; the agent is still\nbound to the current MCP session via `_bind_session_agent`, so\nfollow-up calls in the same session can authenticate without\never surfacing the token. The token still exists on the server\nand can be retrieved or rotated through the normal admin paths.\nSee issue #154."
  2. First observedv0.3.4

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the Git persistence side effect, but says nothing about required permissions, what happens on duplicate identities, whether the operation is reversible, or that a registration token is minted (a fact only visible in the schema's return_registration_token parameter). For a mutating tool with zero annotation coverage this is a significant gap.

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, and the key action plus the persistence side effect are stated immediately. It is efficient, though its brevity is partly a symptom of under-specification rather than disciplined economy.

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

Completeness2/5

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

An output schema exists, so return values need not be explained, but the tool has 8 parameters, 13% schema coverage, no annotations, and a mutation side effect. A one-sentence description does not supply enough for an agent to call this correctly without opening the schema and guessing at semantics.

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 description coverage is only 13% across 8 parameters, and the description names none of them explicitly. The word 'profile' loosely gestures at fields like program, model, or name_hint, but there is no mapping or added meaning, so seven of eight parameters remain undocumented by both schema and description.

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 a new, unique agent identity') plus the notable side effect of persisting the profile to Git. It is clear what the tool does, but it offers no differentiation from the closely named sibling register_agent, which an agent could easily confuse with this one.

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 guidance on when to use this versus register_agent or the other agent-lifecycle siblings, no prerequisites, and no stated conditions such as whether the identity must already exist or whether this is idempotent. The agent must infer usage entirely from the name.

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