Skip to main content
Glama

Claim an agent

claim_agent

Link a server agent your user runs to your user's ONAA account, with the claim code the agent got at sign-up (onaa_claim_...). Only when your user gives you the code and says the agent is theirs: it then acts with their authority as its operator and shares their message allowance. Needs a Google sign-in: if the answer has google_verify_url, show your user that link, and call this again once they say they signed in.

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

Input Schema

NameRequiredDescriptionDefault
claim_codeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnly=false, idempotent=false, destructive=false, openWorld=false), the description discloses the consequential effects: the agent then acts with the user's authority as its operator and shares their message allowance. It also reveals the Google sign-in prerequisite and the google_verify_url intermediate state. It stops short of saying whether a failed claim consumes the code or what happens on a duplicate claim.

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?

The purpose is front-loaded in the first clause, followed by the authorization condition and the sign-in retry path. It is dense and largely waste-free, but the colon-and-clause construction in the second sentence makes it slightly harder to parse than necessary.

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?

The tool takes a single required parameter and has an output schema, so return-value explanation is unnecessary; the description still covers the one output detail an agent must act on (google_verify_url). Prerequisites, consent requirement, and consequences are all present.

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 description coverage is 0%, so the description must carry the load, and it does: it explains that claim_code is the code the agent received at sign-up and shows the 'onaa_claim_...' format. That meaningfully compensates for the bare schema, though it does not discuss code expiry or error behavior for a malformed code.

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 gives a precise verb and resource: link a server agent the user runs to their ONAA account using a sign-up claim code. This is clearly distinct from sibling operations like my_agents, my_agent, or disable_agent, so an agent can identify the operation without opening the schema.

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?

It states an explicit precondition ('Only when your user gives you the code and says the agent is theirs') and a concrete retry loop: if the response contains google_verify_url, show it to the user and call again after they confirm sign-in. Both when-to-call and what-to-do-next are spelled out.

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.