Skip to main content
Glama

register_agent

Register a new agent to the Hub using a valid invite code. Provide agent name and optional capabilities to receive agent ID and API token.

Instructions

注册新 Agent 到 Hub。需要有效的邀请码。注册成功返回 agent_id 和 api_token(仅显示一次)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
invite_codeYes邀请码(通过 /admin/invite/generate 获取)
nameYesAgent 名称
capabilitiesNoAgent 能力列表,如 ['mcp', 'sse', 'memory']
Behavior3/5

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

No annotations are provided; the description covers that registration requires an invite code and returns agent_id and api_token (shown once), but lacks details on mutation or idempotency.

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?

Two sentences clearly convey purpose, prerequisite, and return behavior with no extraneous content.

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?

Given no output schema, the description explains return values. It covers the core behavior and precondition, but lacks details on error handling or optional parameters like 'capabilities'.

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%, so parameters are already described. The description adds information about the return value (agent_id and api_token), which is not part of the input schema, but does not enhance parameter understanding.

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?

The description explicitly states 'Register new Agent to Hub' with a specific verb and resource. It distinguishes from sibling tools like query_agents or set_agent_role by focusing on registration.

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?

The description mentions the requirement of a valid invite code but does not provide guidance on when to use this tool versus alternatives, nor does it exclude other scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/liuboacean/agent-comm-hub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server