Skip to main content
Glama

TOKENLOCK

Start a token sign-in (gate)

start_token_signin

Use when you (an agent) want to sign in to a site or API gated by TOKENLOCK, using a Bitcoin name or token your own wallet holds. Free; nothing is paid or sent. Step 1 of 2: returns challenge_id and the exact message to sign. For a TOKENLOCK site, pass its publishable site_key (pk_…, public on its sign-in page) and the site origin; the tokens it accepts come from the site. Without a site_key you can name the assets (or any_name) to get a general pass. Then sign message with your wallet (BIP-322 or legacy sign-message) and call finish_token_signin within 10 minutes. Counts as a sign-in on the site's plan only when it passes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "start_token_signin"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetsNoWithout site_key: tokens or names that unlock (any one is enough).
originNoThe gated site's origin, e.g. https://example.com. Required with site_key.
any_nameNoWithout site_key: accept any vanity name on Bitcoin.
site_keyNoThe site's publishable key pk_… (from its sign-in page). Omit for a general pass.
pass_ttl_secondsNoHow long the pass lasts (default 900).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the mutation signal is covered. The description adds materially on top of that: it is free, nothing is paid or sent, the challenge expires in 10 minutes, and it only counts against a site's plan on success. These are real behavioral facts an agent cannot get from the structured fields.

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 trigger condition is front-loaded and the two-step flow is ordered explicitly. It is dense but nearly every clause carries operational information; the only soft spot is that the site_key branch and the general-pass branch are packed into a single sentence.

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 five-parameter, schema-rich tool with no output schema, the description still names the return values (challenge_id and the exact message), the expiry window, and the success-dependent billing behavior. Nothing an agent needs in order to invoke it correctly is missing.

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 relational semantics the flat schema cannot express: site_key and origin belong together, while assets and any_name are the no-site_key path, and accepted tokens are determined by the site. It omits pass_ttl_seconds, but the schema documents that fully.

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 opening sentence names a specific action (sign in), the resource being gated (a TOKENLOCK site/API), and the credential source (a Bitcoin name or token in your own wallet). It also positions itself in the flow as 'Step 1 of 2', which separates it cleanly from finish_token_signin.

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 both operating modes explicitly: pass site_key + origin for a TOKENLOCK site, or omit site_key and name assets/any_name for a general pass. It then gives the required follow-up (sign the message, call finish_token_signin within 10 minutes), leaving no ambiguity about when to use this versus the sibling.

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