Skip to main content
Glama

clerk.create_api_key

Create an API key in a connected Clerk application.

Sensitive — the returned secret is a high-privilege credential; do not log or expose it.

Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.

Returns the new API key summary.

Cost = 10 tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesHuman-readable name for the new API key.
claimsNoCustom claims to embed in tokens minted from this API key.
scopesNoPermission scopes to grant the API key.
subjectYesSubject the API key is scoped to (user_... or org_...).
key_typeNoAPI key type (typically "api_key").
created_byNoUser id to record as the creator of this API key.
descriptionNoOptional description for the API key.
clerk_instance_idNoClerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account.
seconds_until_expirationNoSeconds from creation until the API key expires.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoNewly created Clerk API key from the Backend API.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Description highlights that the 'returned secret is a high-privilege credential; do not log or expose it' — a valuable safety disclosure. It also states the return type and token cost. However, since no annotations are provided, the description does not mention permissions required, reversibility, or side effects beyond creation; it relies on the obvious 'create' semantics.

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?

Description is compact, with each section (action, sensitive warning, prerequisite, return, cost) serving a distinct purpose. Clear formatting with line breaks and bold makes it scannable.

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?

For a mutation tool with zero annotations and 9 parameters, the description provides key context: sensitivity, prerequisite, instance selection, and return type. The output schema covers return details, and params are fully specified in schema. Missing alternative guidance is a minor gap, but overall sufficient.

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?

Input schema already describes all 9 parameters with 100% coverage, so the description adds little beyond the 'clerk_instance_id' guidance already present in the schema. The description doesn't enrich parameter meanings 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 'Create an API key in a connected Clerk application' — a specific verb and resource. Among many create_* siblings, it does not explicitly distinguish from token creation tools like create_m2m_token or create_session_token, but the target is unambiguous.

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?

Provides explicit prerequisite: 'Call clerk.get_connected_accounts first.' Also explains instance targeting: 'Pass clerk_instance_id to target a specific connection, or omit it to use the default account.' No mention of when to choose this over alternative credential-creation tools, but the context is 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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool has a distinct purpose, further clarified by group prefixes and clear descriptions. Within each group, tools perform different operations (e.g., domains.lookup vs. domains.whois vs. domains.rdap) with no ambiguity.

Naming Consistency5/5

All tools follow a consistent group.tool_name pattern using snake_case. The naming is predictable and uniformly applied across all groups.

Tool Count4/5

78 tools is high, but the server aggregates multiple distinct API domains (11 groups). Each group has a reasonable number of tools, typically under 10, with TikTok having 17. The count reflects breadth, not bloat.

Completeness5/5

Each domain's tool set covers the primary expected operations (e.g., search, details, reviews, metrics, user info). There are no obvious gaps for read-only analytical use; features like posting are likely out of scope.