Skip to main content
Glama

Request SIWE nonce

getSiweNonce

Public: issue a single-use SIWE nonce for wallet_address (optionally scoped by tenant_code). Embed the nonce in an EIP-4361 message, have the wallet sign it, then call login with provider: siwe. Dedicated SIWE agent auth is an authorized pattern — this is how an agent signs in with a wallet without raw HTTP. Do not log tenant_code. The nonce is not a credential.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesJSON request body.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already convey non-read-only and idempotent=false, but the description adds meaningful behavior: the nonce is single-use, not a credential, and tenant_code must not be logged. The upfront 'Public' declaration also matches the openWorldHint annotation.

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?

The description uses four tight sentences, each earning its place: purpose, usage flow, authorization pattern, and security warnings. No filler, and the core purpose is front-loaded.

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?

For a simple one-parameter tool with no output schema, the description covers purpose, the sign-in flow, optionality of tenant_code, and sensitive-data handling. It does omit response format or expiry behavior, but those are minor for issuing a nonce.

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?

The schema only describes body as a JSON object with wallet_address and tenant_code, but the description adds that wallet_address is the target and tenant_code is optional scoping. It also provides a security-relevant warning about tenant_code. It stops short of specifying the wallet_address format.

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 states a specific action: 'issue a single-use SIWE nonce for wallet_address' and clearly ties it to the EIP-4361 wallet sign-in flow. It also distinguishes itself from sibling auth tools by calling out the dedicated SIWE agent auth pattern.

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 description gives a clear usage flow: embed the nonce in an EIP-4361 message, sign it, then call login with provider: siwe. It explains this is how an agent signs in without raw HTTP, but it does not explicitly enumerate when to avoid sibling tools like getAuthConfig or requestOtp.

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