Skip to main content
Glama

web3_signup

Create a free 0xArchive account and obtain an API key by providing a signed SIWE message and its EIP-191 signature.

Instructions

Create a free-tier 0xArchive account and get an API key using a signed SIWE message. Requires a challenge from web3_challenge signed with personal_sign (EIP-191). Returns an API key that can be used with all other tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYesThe SIWE message from web3_challenge
signatureYesHex-encoded signature from personal_sign (0x-prefixed, 65 bytes)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesResult data object

Implementation Reference

  • The 'web3_signup' tool handler — registered via server.registerTool with input schema (message, signature), calls the SDK's api().web3.signup() or fallback direct fetch to POST https://api.0xarchive.io/v1/web3/signup. Returns the API key result.
    server.registerTool(
      "web3_signup",
      {
        description:
          "Create a free-tier 0xArchive account and get an API key using a signed SIWE message. " +
          "Requires a challenge from web3_challenge signed with personal_sign (EIP-191). " +
          "Returns an API key that can be used with all other tools.",
        inputSchema: {
          message: z.string().describe("The SIWE message from web3_challenge"),
          signature: z.string().describe("Hex-encoded signature from personal_sign (0x-prefixed, 65 bytes)"),
        },
        outputSchema: ObjectOutputSchema,
        annotations: AUTH_TOOL_ANNOTATIONS,
      },
      async (params: any) => {
        try {
          if (client) {
            const data = await api().web3.signup(params.message, params.signature);
            return formatResponse(data);
          }
          const response = await fetch("https://api.0xarchive.io/v1/web3/signup", {
            method: "POST",
            headers: { "Content-Type": "application/json" },
            body: JSON.stringify({ message: params.message, signature: params.signature }),
          });
          const data = await response.json();
          if (!response.ok) {
            return {
              content: [{ type: "text" as const, text: `Error: ${data.error || "Signup failed"}` }],
              isError: true,
            };
          }
          return formatResponse(data);
        } catch (err) {
          const error = err instanceof OxArchiveError ? err : new OxArchiveError(String(err), 500);
          return formatError(error);
        }
      }
    );
  • AUTH_TOOL_ANNOTATIONS — overrides the default read-only annotations for Web3 auth tools (including web3_signup) since these tools are not read-only.
    const AUTH_TOOL_ANNOTATIONS = {
      readOnlyHint: false,
      destructiveHint: false,
      idempotentHint: false,
      openWorldHint: true,
    } as const;
  • src/index.ts:2061-2062 (registration)
    Section header 'Tool Registration — Web3 Authentication' marking where web3_signup is registered.
    // Tool Registration — Web3 Authentication
    // ---------------------------------------------------------------------------
Behavior3/5

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

Annotations already convey non-read-only, non-destructive, and non-idempotent behavior. The description adds detail about requiring a generated challenge and signature format, but does not discuss error cases, idempotency effects, or rate limits.

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 effectively convey the action, prerequisites, and output with no unnecessary words. Very concise and well-structured.

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?

Provides sufficient context for a simple two-parameter tool with an output schema. Covers the purpose, prerequisites, and result. Could mention that the API key should be stored securely, but current content is adequate.

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 already covers both parameters with descriptions. The description adds context by linking the message to web3_challenge and the signature to personal_sign, clarifying the workflow beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it creates a free-tier account and returns an API key, specifying the required inputs. However, it does not explicitly distinguish from sibling tools like web3_list_keys or web3_revoke_key, leaving some room for ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Specifies the prerequisite of a challenge from web3_challenge signed with personal_sign, but does not provide exclusions or mention when to use alternatives (e.g., if the user already has an account).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xArchiveIO/0xarchive-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server