Skip to main content
Glama

Caper

Exchange a signed proof for a token

login

Step 2: exchange the signed ROLA proof for a 12h Bearer token — the same verification the human wallet flow runs. Send the returned token as an HTTP Authorization: Bearer <token> header on every later tool call; tool arguments never carry it.

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": {
      "challenge": "<challenge>",
      "address": "<address>",
      "publicKey": "<publicKey>",
      "signature": "<signature>",
      "curve": "<curve>"
    },
    "name": "login"
  }
}

Input Schema

NameRequiredDescriptionDefault
curveYesSigning curve (Ed25519 = "curve25519")
addressYesYour account address (virtual account of the signing key)
challengeYesThe challenge from get_challenge
publicKeyYesEd25519 public key, hex
signatureYesSignature over the ROLA message, hex

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag a non-read-only, non-idempotent, open-world call, so the description's real contribution is the 12h token lifetime and the transmission contract: send it as an HTTP Authorization: Bearer header, never as a tool argument. That is genuinely useful behavioral context the annotations cannot express, though failure/expiry behavior is left unstated.

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, front-loaded with the step number and the outcome, and the critical 'tool arguments never carry it' constraint lands last where it is most memorable. No filler.

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?

No output schema exists, yet the description names the return value (a 12h Bearer token) and how to use it, and all five required inputs are documented in the schema. Nothing an agent needs to invoke this correctly is missing.

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%, including the curve enum and the get_challenge linkage, so the schema already carries parameter meaning. The description adds no per-parameter detail beyond the token mechanics, which matches the baseline 3.

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 (exchange) and resource (signed ROLA proof → 12h Bearer token), and the 'Step 2' framing plus the ROLA reference clearly separates it from the sibling get_challenge, which produces step 1's challenge.

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?

The 'Step 2' framing and the schema note that challenge comes from get_challenge imply the ordering, and the description tells the agent exactly what to do with the result. It stops short of explicit exclusions (e.g. what to do when a token still exists or has expired), so not a 5.

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.

Resources