Skip to main content
Glama

Unkey MCP by usefulapi

Create an API key

unkey_create_key
Destructive

Issue a new API key under an API. The plaintext key is returned ONCE in the response and cannot be retrieved later unless recoverable is set. Unkey: POST /v2/keys.createKey.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaNoArbitrary JSON metadata.
nameNoA human-readable label for the key.
apiIdYesThe API to issue the key under.
rolesNoRole names to attach.
prefixNoPrefix for the generated key, e.g. acme.
enabledNoCreate the key enabled. Defaults to true.
expiresNoExpiry as a Unix timestamp in milliseconds.
byteLengthNoEntropy in bytes. Defaults to 16.
externalIdNoThe identity (your user or org id) this key belongs to.
permissionsNoPermission names to attach.
recoverableNoStore the key encrypted so it can be shown again later. Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only supply title and destructiveHint=true, so the description carries most of the burden. It does so well by disclosing the critical irreversible trait: the plaintext key is returned once and cannot be retrieved later unless recoverable is enabled. It still omits auth/permission requirements and prefix or expiry consequences, keeping it short of a 5.

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 with no filler, and the one-time-return warning is front-loaded immediately after the purpose. The trailing endpoint reference is compact and costs little.

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?

There is no output schema, so the description correctly compensates by describing what the response contains (the plaintext key, shown once). With all 11 parameters documented in the schema and destructiveHint declared, the agent has what it needs, though permission requirements and default behaviors aren't restated.

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 100%, so the baseline is 3, but the description adds genuine meaning for the recoverable flag by tying it to key retrievability, a consequence not stated in the schema. This lifts it above baseline, though the other ten parameters get no added interpretation.

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 ('Issue a new API key under an API') and names the parent resource, which separates it from siblings like unkey_create_api and unkey_create_identity. An agent can identify the operation without opening a schema.

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?

Usage is implied by the operation itself (issuing a key), and the description adds the conditional 'unless recoverable is set', but it never states when to choose this over unkey_create_api or unkey_update_key. No exclusions or prerequisites are given beyond the single-return warning.

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.