Skip to main content
Glama

Register agent (get API key)

register_agent

Get a free API key for higher limits and click attribution. Example: {"name":"Trip planner","client":"claude"}. The key is shown once. Send it as Authorization: Bearer .

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

Input Schema

NameRequiredDescriptionDefault
nameYesYour agent or app name, e.g. "Trip planner GPT".
clientNoHost client, e.g. claude, chatgpt, cursor, codex. Used for attribution.
contactNoOptional developer email for key notices. Never shared.
websiteNoOptional homepage of the agent or app.

Output Schema

NameRequiredDescriptionDefault
apiKeyYesShown once. Send as Authorization: Bearer <apiKey>.
agentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / contact / pattern
      Removed value: -"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
  2. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "agentId": {
      +      "type": "string"
      +    },
      +    "apiKey": {
      +      "description": "Shown once. Send as Authorization: Bearer <apiKey>.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "agentId",
      +    "apiKey"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the bar is lower, and the description adds two genuinely useful behavioral facts beyond them: the key is returned only once and must be sent as 'Authorization: Bearer <apiKey>'. It does not disclose whether calling twice mints a second key or whether limits apply to registrations.

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?

Four short sentences, front-loaded with the payoff and ending on the actionable auth detail; nothing is padded. The inline JSON example is a little awkward mid-sentence but does real work.

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?

With an output schema present, return values need not be explained, and the description covers the one thing the schema cannot: the key is single-display. For a one-required-param registration call this is nearly complete, missing only repeat-call and any registration limit behavior.

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 100%, so the schema already documents all four fields and the baseline is 3. The inline example body adds a small amount of practical signal about the typical call shape, but only exercises name and client and says nothing extra about contact or website.

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: 'Get a free API key' for the agent registration flow, plus the concrete benefit (higher limits, click attribution). It is clear what the tool produces, though it never distinguishes itself from auth-adjacent siblings such as unlock_mcp.

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 rationale for calling it is implied by 'for higher limits and click attribution', which tells an agent why it might want a key. There is no explicit when-not guidance, no statement about what happens on repeat registration, and no pointer to an alternative flow.

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.