Skip to main content
Glama

complete_merchant_credential_rotation_signature

Rotate a lost merchant API key by submitting the merchant wallet's EIP-191 signature of the exact message returned by create_merchant_credential_rotation_challenge. This method needs no transaction or gas. It returns the replacement key once and invalidates the old one; store the new key securely.

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": {
      "wallet": "<wallet>",
      "challengeId": "<challengeId>",
      "signature": "<signature>"
    },
    "name": "complete_merchant_credential_rotation_signature"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletYes
signatureYes
challengeIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that no on-chain transaction is needed, that the replacement key is returned exactly once, and that the old key is invalidated. It omits failure behavior such as challenge expiry, single-use semantics, or what happens on signature mismatch.

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?

Three tight sentences: what it does, how it works without gas, and the consequence plus safety instruction. The operative information is front-loaded with no filler.

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 three-parameter mutation with no annotations and no output schema, the description covers the return value and key invalidation, which is the critical operational context. It stops short of describing error conditions or whether the challenge is single-use, which would round out completeness.

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 compensate, and it partly does: it clarifies that the signature is EIP-191 over the exact message from the challenge tool and that the wallet is the merchant's wallet. challengeId is left to the reader to connect to the challenge call, and no format details are added beyond the schema patterns.

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 and resource ('Rotate a lost merchant API key') plus the exact mechanism (EIP-191 signature of a message from create_merchant_credential_rotation_challenge). It also implicitly separates itself from the transaction-based sibling by noting no transaction or gas is required.

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?

It clearly establishes the prerequisite flow (call create_merchant_credential_rotation_challenge first and sign that exact message) and the condition under which this variant applies (no transaction or gas). It does not name the alternative sibling complete_merchant_credential_rotation_transaction explicitly, so the routing signal is implied rather than 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.

Resources