Skip to main content
Glama
clawallex

Clawallex MCP Server

by clawallex

whoami

Check API Key binding status to determine if it's linked to a client ID, returning bound or unbound state without modifying data.

Instructions

Query the current API Key binding status — read-only, does NOT modify any state. Returns: • client_id_bound=true → this API Key is already bound to a specific client_id. • client_id_bound=false → this API Key is not yet bound; call bootstrap to bind. Example response (bound): { "user_id": "u_123", "api_key_id": "ak_123", "status": 100, "bound_client_id": "ca_abc123", "client_id_bound": true } Example response (unbound): { "user_id": "u_123", "api_key_id": "ak_123", "status": 100, "bound_client_id": "", "client_id_bound": false }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The "whoami" tool is defined and registered in src/tools/auth.ts. It calls the /auth/whoami endpoint on the client to check the API Key's binding status.
    server.tool(
      "whoami",
      [
        "Query the current API Key binding status — read-only, does NOT modify any state.",
        "Returns:",
        "• client_id_bound=true → this API Key is already bound to a specific client_id.",
        "• client_id_bound=false → this API Key is not yet bound; call bootstrap to bind.",
        "",
        "Example response (bound):",
        '  { "user_id": "u_123", "api_key_id": "ak_123", "status": 100, "bound_client_id": "ca_abc123", "client_id_bound": true }',
        "",
        "Example response (unbound):",
        '  { "user_id": "u_123", "api_key_id": "ak_123", "status": 100, "bound_client_id": "", "client_id_bound": false }',
      ].join(" "),
      {},
      async () => {
        try {
          const result = await client.getAuth<unknown>("/auth/whoami");
          return toolOk(result);
        } catch (err) {
          return toolError(err);
        }
      },
    );
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explicitly declares the read-only nature, then provides exhaustive documentation of return values including field semantics (what the boolean means) and complete JSON examples for both possible response states (bound vs unbound).

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 description is front-loaded with the core purpose and read-only guarantee. While the JSON examples are lengthy, they are necessary compensation for the missing output schema and structured formatting prevents clutter. Only minor verbosity in the example spacing prevents a 5.

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?

Given zero parameters and no output schema, the description achieves completeness by documenting the exact response structure and providing concrete examples of both possible return states. It fully prepares the agent to interpret results without needing additional schema information.

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 input schema has zero parameters, which per the evaluation rules establishes a baseline score of 4. No parameter documentation is required or present.

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 uses a specific verb ('Query') with a clear resource ('API Key binding status'). It explicitly distinguishes itself from the sibling 'bootstrap' tool by stating when to use that alternative ('call bootstrap to bind'), clearly defining its scope as read-only status checking.

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?

Provides explicit conditional guidance: if 'client_id_bound=false' then 'call bootstrap to bind'. It clearly states the tool is read-only and 'does NOT modify any state', helping the agent distinguish this query tool from mutation alternatives in the sibling list.

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/clawallex/clawallex-mcp'

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