Skip to main content
Glama

create_api_key

Create a new API key. The raw key is returned ONCE — hand it to the user and never repeat or store it. Every MisarDev key has full API access; keys expire (default 90 days, max 365).

Input Schema

NameRequiredDescriptionDefault
nameYesKey label (1–80 chars)
ip_allowlistNoOptional IPs/CIDRs allowed to use the key
expires_in_daysNoDays until expiry (1–365, default 90)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare a non-read-only, non-idempotent, non-destructive mutation, and the description adds genuinely new behavioral facts: the raw key is returned exactly once, must be delivered and not stored, all keys carry full API access, and expiry defaults to 90 days with a 365-day ceiling. These are the details an agent needs to avoid silently losing the secret or mis-assuming scoped permissions.

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?

Three short sentences, front-loaded with the action, then the irreversible one-time-secret warning, then expiry facts. No filler and nothing that could be dropped without losing information.

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?

With no output schema, the description carries the return-value burden and does so: the created key is returned once and never again. Combined with the expiry rules and full-access statement, an agent has everything needed to call this correctly and handle the result safely.

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, but the description adds a semantic constraint the schema doesn't state: every key has full API access, which reframes ip_allowlist as a network restriction rather than a permission scope. The expiry default and max in the description duplicate the schema, but the full-access note is real added value.

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?

States a specific verb and resource ('Create a new API key') so the agent can distinguish it from list_api_keys, revoke_api_key, and other siblings. It doesn't name those siblings explicitly, so differentiation relies on the trivially obvious verb, not on stated routing.

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?

The description conveys usage context ('hand it to the user and never repeat or store it'), which implies this is the provisioning step in a key lifecycle. However, it never says when to use this versus list_api_keys or revoke_api_key, and gives no prerequisites about who may create keys.

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.