Skip to main content
Glama

Cooper Email

Create API key link

cooper_create_api_key_link

Use this when the person needs an API key for this account, for example a ChatGPT, Claude, or Grok Bot user who signed in with OAuth and has no key for curl, a script, or another client. Requires auth: an OAuth session or a full-access API key. A restricted or inbox-scoped key gets HTTP 403 permission_denied. Optional input name (up to 80 characters) names the new key. Returns {object:"api_key_link", url, expires_at, single_use:true, key_name, note}. Give url to the person. They open it in a browser and press Create key to see one new full-access key, once. The key itself is never in this result, so it does not enter the chat. The link expires in 15 minutes and works once. Existing keys and OAuth connections keep working. Limited to 5 links per hour per account; more returns HTTP 429 with Retry-After. Same as POST /api/v1/keys/link.

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": "cooper_create_api_key_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional name for the new key. Defaults to "created from link".

Output Schema

NameRequiredDescriptionDefault
urlNoLink to give the person. They open it in a browser and press Create key.
noteNoWhat to tell the person.
objectNoAlways api_key_link.
key_nameNoName the new key will have.
expires_atNoISO-8601 time the link stops working (15 minutes).
single_useNoAlways true. The link works once.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: auth requirements (OAuth session or full-access key), the 403 permission_denied outcome for restricted or inbox-scoped keys, the 5-links-per-hour rate limit with HTTP 429 and Retry-After, the 15-minute single-use expiry, and the guarantee that existing keys and OAuth connections are unaffected. It also discloses the key security property that the key itself never appears in the result, which is exactly the kind of context annotations cannot 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-loads the trigger condition, then auth, then the return shape and operational constraints, so an agent can stop reading once it has what it needs. It is dense rather than padded, though the explicit return-object listing is somewhat redundant given an output schema exists.

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?

Covers everything an agent needs for a non-idempotent, non-destructive mutation: who it is for, auth prerequisites, failure modes, rate limits, link lifetime and single-use semantics, and what to do with the returned url. Nothing material is left to inference for a one-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single optional name parameter is already documented with its maxLength and default. The description restates that name (up to 80 characters) names the new key, adding no syntax or behavioral detail beyond the schema, so the baseline 3 applies.

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 (create an API key link) and immediately scopes it to the person who needs a key for this account. The concrete examples (ChatGPT/Claude/Grok Bot OAuth user with no key for curl or a script) make it distinguishable from sibling link tools like cooper_domain_setup_link and cooper_upgrade_link without opening any schema.

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?

Gives an explicit when-to-use condition with concrete personas and the precondition that the person has no existing key. It also implies when-not by noting existing keys and OAuth connections keep working. It does not name an alternative tool for the case where a key already exists, so it falls short of a full when/when-not/alternatives treatment.

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.