Skip to main content
Glama

register_agent

Idempotent

Register or look up an agent identity under the API key's organization. When to use: before client-side signing flows that need a known public_key, or to attach a human-readable name to an existing key. When NOT to use: Managed Mode log_decision (pass agent_name instead: Audifact provisions the key); do not use this to log decisions or outcomes. Idempotent on public_key: repeating the same key returns the existing agent. Requires X-API-Key. Returns the agent record (id, public_key, name).

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": {
      "public_key": "<public_key>"
    },
    "name": "register_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional human-readable agent name. On lookup of an existing key, may update the stored name when provided.
public_keyYesBase64 Ed25519 public key. Idempotency key: same value always resolves to the same agent in this org.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / public_key / description
      Previous value: -"Base64 Ed25519 public key. Idempotency key — same value always resolves to the same agent in this org."New value: +"Base64 Ed25519 public key. Idempotency key: same value always resolves to the same agent in this org."
  2. Changed2 schema fields changed
    • changedInput schema / properties / name / description
      Previous value: -"Human-readable agent name."New value: +"Optional human-readable agent name. On lookup of an existing key, may update the stored name when provided."
    • changedInput schema / properties / public_key / description
      Previous value: -"Base64 Ed25519 public key."New value: +"Base64 Ed25519 public key. Idempotency key — same value always resolves to the same agent in this org."
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, but the description adds the auth requirement (X-API-Key), the return shape (id, public_key, name), and the non-obvious side effect that a lookup with a name may update the stored name. It does not cover error behavior or rate limits, so it falls short of fully exhaustive.

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?

Front-loaded with purpose, then labeled 'When to use' / 'When NOT to use' / constraints / return value. Every sentence carries distinct information; 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?

No output schema exists, yet the description names the returned fields, states the auth prerequisite, and clarifies the upsert semantics. For a two-parameter tool this leaves nothing an agent needs in order to call it correctly.

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 coverage is 100% and the schema already documents public_key as the idempotency key and name as an optional updatable label. The description's 'Idempotent on public_key' restates rather than extends that, so the baseline 3 applies.

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?

States a specific verb and resource ('Register or look up an agent identity under the API key's organization') and immediately scopes it to the org. It is clearly distinguishable from the sibling log_decision, which the description explicitly names as a different path.

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

Usage Guidelines5/5

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

Provides explicit when-to-use ('before client-side signing flows that need a known public_key, or to attach a human-readable name to an existing key') and when-NOT-to-use ('Managed Mode log_decision — pass agent_name instead'). It also names the alternative mechanism, so the agent can route correctly without inference.

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.