Skip to main content
Glama

Create API Key

ethora-api-key-create

Mint a revocable API key for the signed-in user, to authorise a script, a CI job or another AI client. The key is a user token with the account's full access: send it as Authorization: Bearer <key> to the Ethora API or the hosted MCP endpoint (or set it in the stdio client). Shown once; store it somewhere safe and do not repeat it in later messages. On an OAuth connection (Claude.ai, ChatGPT) this needs the admin permission and confirm: true, the key lives 30 days by default and 90 at most, and it keeps working after the connector is disconnected until it expires or is revoked with ethora-api-key-revoke. The user can also create and revoke keys in the dashboard under Account > AI Assistants. Requires: a signed-in user. Auth: user mode. Errors: 401 not signed in; 403 INSUFFICIENT_SCOPE without the admin permission on an OAuth connection; 409 API_KEY_LIMIT_REACHED at 20 active keys; 422 ttlDays out of range.

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": "ethora-api-key-create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoLabel to recognise the key later (e.g. `ci-runner`, `import-script`). Defaults to a label naming the client that created it.
confirmNoRequired (`true`) on an OAuth connection: acknowledges that the key value will appear in this conversation and is not limited by this connection's permissions.
ttlDaysNoLifetime in days. Default 90 (30 on an OAuth connection, where the maximum is 90).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "Required (`true`) on an OAuth connection: acknowledges that the key value will appear in this conversation and is not limited by this connection's permissions.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / name / description
      Previous value: -"Label to recognise the key later (e.g. `ci-runner`, `claude-desktop`)."New value: +"Label to recognise the key later (e.g. `ci-runner`, `import-script`). Defaults to a label naming the client that created it."
    • changedInput schema / properties / ttlDays / description
      Previous value: -"Lifetime in days. Server default applies when omitted."New value: +"Lifetime in days. Default 90 (30 on an OAuth connection, where the maximum is 90)."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare that this is a non-idempotent, non-destructive write; the description adds the substantive traits: one-time display, 30-day default and 90-day maximum TTL on OAuth, survival after connector disconnect until expiry or revocation, a 20-key cap, and named error codes (401, 403 INSUFFICIENT_SCOPE, 409 API_KEY_LIMIT_REACHED, 422). This is well beyond what the annotations convey.

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?

Front-loaded with purpose, then usage, then requires/auth/errors — a sensible order with no filler sentences. It is dense and long-ish for a three-parameter tool, but each clause (one-time display, revocation path, limits, error codes) carries information an agent needs.

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 credential-minting tool with no output schema, the description covers what is returned (the key, shown once), how to use it (Bearer header, MCP endpoint, stdio client), lifetime rules, quota, and failure modes. An agent has everything needed to call it correctly and to warn the user about the key's power.

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, and the description earns an extra point by explaining connection-dependent meaning: confirm is required specifically on an OAuth connection, and ttlDays behaves differently there (30-day default, 90-day max) than on user mode.

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?

"Mint a revocable API key for the signed-in user" states a specific verb, resource, and actor, followed by the intended consumers (script, CI job, another AI client). This is clearly distinguishable from the surrounding create/update tools for agents, apps, and chats.

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 names concrete use cases, the prerequisite (signed-in user, admin permission plus confirm:true on OAuth), and routes to the alternative path (dashboard under Account > AI Assistants) and to ethora-api-key-revoke. It stops short of an explicit "do not use when" exclusion, but the surrounding context makes the boundary clear.

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.