Skip to main content
Glama

Register agent

register_agent

Register an autonomous agent in a project's agent registry to get its id, slug, and wire-up steps for attaching monitors via agent_id.

Instructions

Requires the write scope or higher. Registers an autonomous agent in the project's agent registry and returns its id, slug and wire-up steps. One agent stands for one autonomous worker, which can own many monitors: create_monitor and update_monitor attach a monitor through agent_id (the id or the slug). An agent_id that does not exist is an error (400 UNKNOWN_AGENT), never an implicit create. The slug is derived from the name, so registering the same name again is refused (409) rather than creating a second agent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesHuman-readable agent name, e.g. 'Deploy Bot'. Used to derive the agent's slug.
descriptionNoOptional free-text description of what this agent does. Omitted: none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.17
    • changedInput schema / properties / description / description
      Previous value: -"Optional free-text description of what this agent does. Omit for none."New value: +"Optional free-text description of what this agent does. Omitted: none."
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent, closed-world write; the description goes well beyond them with the auth scope requirement, the idempotency-adjacent uniqueness rule (same derived slug → 409), concrete error codes (400 UNKNOWN_AGENT, 409), and the shape of the response (id, slug, wire-up steps) despite there being no output schema.

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?

Four tight sentences with the scope requirement front-loaded, then purpose, then conceptual model and monitor relationship, then uniqueness/error behavior. No sentence is redundant and each adds a fact an agent needs to call this correctly.

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?

Complete for a two-parameter, no-output-schema write tool: auth, return payload, relationship to monitor tools, failure modes, and duplicate-name behavior are all covered, leaving nothing material for the agent to infer.

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 the baseline is 3, but the description adds real meaning beyond the schema: it explains the consequence of slug derivation (duplicate names are refused rather than creating a second agent) and how the returned id/slug are consumed downstream by agent_id. It still doesn't elaborate on the optional description field, which the schema already covers.

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 ('Registers an autonomous agent in the project's agent registry') and even names the created artifact and return values (id, slug, wire-up steps). It distinguishes itself from siblings by explaining that this is not an implicit create path (agent_id pointing at a missing agent is a 400, not a create), separating it from create_monitor/update_monitor which only attach monitors to an existing agent.

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?

Gives an explicit prerequisite ('Requires the write scope or higher') and clear when-to-use context: call this to create the agent, then use create_monitor/update_monitor to attach monitors via agent_id. It also states when NOT to expect creation (unknown agent_id is never an implicit create) and that re-registering an existing name is refused with 409.

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