Skip to main content
Glama

agp_register

Idempotent

Registers or updates an AI session's Agent Card so peers can discover it and route messages, including role, owned paths, capabilities, channels, status, and wakeup mode.

Instructions

Register or update this AI session's Agent Card (display_name, role, owned_paths, capabilities, channels, wakeup_mode, status) so peers can discover and route messages to 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": "agp_register"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoCurrent workspace root directory.
roleNoRole label, e.g. backend-specialist, frontend-dev, reviewer, coordinator.
statusNo
channelsNoOptional pub/sub channels to subscribe to, e.g. ['api-contract', 'release'].
agent_uriNoYour AGP URI (from SessionStart, e.g. agp://local/cli/<conv_id>).
descriptionNoShort summary of what this agent owns.
owned_pathsNoGlob paths owned by this agent, e.g. ['ai-platform/**'].
wakeup_modeNoWakeup mode: 'hook' (active hooks + agp.listen), 'auto_cli' (detached CLI resume), or 'webhook'.
webhook_urlNoOptional HTTPS/HTTP webhook callback URL.
capabilitiesNoDeclared capabilities, e.g. ['code.read', 'code.edit', 'test.run'].
display_nameNoClear task-based human name, e.g. 'Backend API (Auth Fix)'.
max_context_tokensNoMax estimated tokens per incoming AGP message (default 4000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the mutation and upsert semantics are covered structurally; 'Register or update' is consistent with idempotent=true. The description adds the discovery/routing motivation, which is real value. It does not mention whether registration is scoped to the session lifetime, what happens on re-registration, or any auth/session requirements, so it goes little beyond the annotation set.

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?

One sentence, front-loaded with the verb and resource, with the field list and the payoff ('so peers can discover and route messages') placed efficiently. The parenthetical list of seven field names is slightly redundant given the schema but is compact and aids scanning. No filler or hedging.

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

Completeness3/5

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

For a 12-parameter tool with no required fields and no output schema, the description omits what a caller gets back and what happens if key fields are omitted, and it does not relate this tool to agp_unregister or agp_status. Annotations cover the safety/idempotency profile, so the gap is moderate rather than severe, but the definition is thinner than the tool's parameter surface warrants.

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

Parameters3/5

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

Schema description coverage is 92%, with per-field descriptions including examples and enum meanings, so the schema already carries parameter meaning. The description only enumerates a subset of field names in parentheses and adds no format, default, or interaction guidance (e.g. how agent_uri relates to cwd or webhook_url to wakeup_mode). Baseline 3 applies when the schema does the heavy lifting.

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?

The description names a specific verb pair (register/update), the resource (this session's Agent Card), the fields it covers, and the outcome (peers can discover and route messages). It is not tautological with the name. It stops short of naming a sibling such as agp_unregister or agp_discover, so the boundary between registering and removing/listing agents is left implicit.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer it should call this when it wants to be discoverable and routable. There is no explicit when-to-use, no when-not-to-use, and no pointer to agp_unregister for teardown or agp_status for reading the current card. Adequate for a self-registration tool but not instructive.

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