Skip to main content
Glama

claim_username

Claim a unique username for the authenticated user's Public page. Usernames must be 3-30 characters, alphanumeric and underscores only.

ACCESS: needs a Proof account, signed in: call start_login, show the user its challenge, then wait_for_login, then call this tool again. Authenticating this client alone does NOT open this tool.

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

Input Schema

NameRequiredDescriptionDefault
usernameYesUsername to claim (3-30 chars, alphanumeric and underscores)
profile_idNoThe sub-account the username is for (its `id` from list_sub_accounts). Omitted: the primary sub-account.

Output Schema

NameRequiredDescriptionDefault
usernameYes
profile_urlYesPath of the public profile
username_claimed_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / profile_id / description
      Previous value: -"The profile the username is for (its `id` from list_profiles). Omitted: the primary profile."New value: +"The sub-account the username is for (its `id` from list_sub_accounts). Omitted: the primary sub-account."
  2. Changed1 schema field changed
    • addedInput schema / properties / profile_id
      Added value: +{
      +  "description": "The profile the username is for (its `id` from list_profiles). Omitted: the primary profile.",
      +  "maxLength": 64,
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "description": "The claimed username",
      +  "properties": {
      +    "profile_url": {
      +      "description": "Path of the public profile",
      +      "type": "string"
      +    },
      +    "username": {
      +      "type": "string"
      +    },
      +    "username_claimed_at": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "username",
      +    "username_claimed_at",
      +    "profile_url"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  5. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds the two pieces an agent most needs, namely the mandatory login sequence and the note that prior client auth does not unlock the tool. It also explains the effect on the Public page. It remains silent on whether the claim is idempotent, whether a previously claimed name can be changed, and what error surfaces on collision.

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?

Two short blocks, front-loaded with the action and its constraints before the access requirements. The duplication of the 3-30 alphanumeric rule is mildly redundant with the schema but serves as an at-a-glance summary. Little wasted wording overall.

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?

An output schema exists, so return values need not be described, and the description covers the two non-obvious things an agent must know: authentication flow and input constraints. For a low-complexity, two-parameter mutation tool this is close to sufficient. The remaining gap is failure behavior, such as a username already being claimed or the sub-account being invalid.

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 both username and profile_id are already documented, including the reference to list_sub_accounts for the sub-account id. The description only restates the username rules already present in the schema's pattern and length constraints, and never mentions profile_id, so it adds little beyond the structured fields.

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: claiming a unique username tied to the authenticated user's Public page. The character rules further pin down the operation. It stops short of naming any sibling tool it should be chosen over, but no sibling in the list appears to offer username claiming, so the operation is unambiguous in practice.

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

Usage Guidelines4/5

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

Gives an explicit prerequisite chain: a Proof account, start_login, show the challenge, wait_for_login, then call this tool again, plus a warning that authenticating the client alone is insufficient. That is concrete when-to-use guidance and a clear failure guard. It does not discuss what to do if the username is already taken or how to release/replace one.

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.