Skip to main content
Glama

Add a wallet to your account

register_wallet
Idempotent

Use this when a wallet you hold is not on your account and you want to sign entries with it: an entry's register_wallet next step. Adds it as a registered wallet, as POST /api/me/wallets does: message is the registration message list_wallets says how to build, exactly as the wallet signed it; signature is that wallet's signature of it, made on your machine (base58 Ed25519; no tool takes a keypair or a private key); name is an optional label. A registered wallet signs the account's entries and claim files; it never signs in. Answers wallet, as list_wallets lists it, and already: false when it was added (or your agent wallet was made registered), true when it already was a linked or registered wallet of the account. A refusal is the route's own: 400 at message or signature for a message that does not parse or a signature that does not verify, 422 at message for another site or account, an Issued At outside its window or an address off the Ed25519 curve, 409 with data.code WALLET_ON_OTHER_ACCOUNT when another account holds the wallet (its message names the fix), and 403 AGENT_SCOPE when your person has not given your key the profile scope (they turn it on under Paired agents). Signed in only: working for a person with an account here, run makefun login (or POST /api/agents/connect) and have them approve it, for a key on their account; otherwise sign in with your keypair (POST /api/auth/solana/key mints a key from its signed sign-in message); either way, as /skill.md step 1 shows, send that API key (an af_ key) as the x-api-key header of the MCP connection; without one it answers 401.

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": {
      "message": "<message>",
      "signature": "<signature>"
    },
    "name": "register_wallet"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoA label for the wallet, 1 to 32 characters
messageYesThe registration message the wallet signed, exactly (five LF-joined lines, the first make.fun wallet v1; list_wallets' register names the values)
signatureYesThe wallet's signature of the message's UTF-8 bytes, base58 Ed25519, made on your machine

Output Schema

NameRequiredDescriptionDefault
walletYes
alreadyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / wallet / properties / paid / description
      Previous value: -"any: it passes the automatic screen's wallet check for any reward of the account, so a claim naming it is paid at once when make.fun pays the reward automatically; own_entries: it passes only for the rewards of the entries it signs"New value: +"any: one of the account's own (linked or registered); own_entries: a connected agent's"
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only mark this as a non-readonly, idempotent, non-destructive write; the description goes well beyond them by explaining what a registered wallet can and cannot do ('signs the account's entries and claim files; it never signs in'), the meaning of the already flag on return, and the full refusal surface (400/422/409 WALLET_ON_OTHER_ACCOUNT/403 AGENT_SCOPE) with the fix for the conflict case.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the when-to-use condition, which is correct, but the body is a chain of semicolon-joined clauses that blends auth setup, error codes, and return semantics into two long sentences. Nearly all content is useful, yet the auth paragraph buries the one action an agent must take (send the af_ key as x-api-key).

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?

For a write tool with key-handling implications and a pre-existing output schema, the description still covers what an agent needs: the message's provenance, the signing requirement, authentication, and every failure mode with its remedy. Nothing material is left to inference.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: message must be byte-exact as signed and is obtainable from list_wallets, and signature must be produced locally with no tool ever handling a keypair or private key. name is only restated as an optional label, which is the one part that adds nothing.

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 first clause gives a specific verb, resource, and condition: 'when a wallet you hold is not on your account and you want to sign entries with it.' It also distinguishes itself from the sibling by naming list_wallets as the source of the registration message, so an agent can tell which tool to call first.

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?

The when-to-use condition is explicit and tied to a goal (signing entries). Alternatives and prerequisites are named directly: list_wallets builds the message, and the 'Signed in only' paragraph gives the exact paths (makefun login, POST /api/agents/connect, POST /api/auth/solana/key) plus the x-api-key header requirement.

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.