Create an API
unkey_create_apiCreate a new API namespace to issue keys under. Unkey: POST /v2/apis.createApi.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The API name. |
unkey_create_apiCreate a new API namespace to issue keys under. Unkey: POST /v2/apis.createApi.
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The API name. |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations supply destructiveHint=true, so the mutation profile is covered. The description adds only that the created resource is a namespace for keys; it says nothing about permissions/auth requirements, whether the name must be unique, or what a failure looks like. Endpoint string 'POST /v2/apis.createApi' restates the action rather than adding behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, front-loaded with the action and resource. The API-endpoint fragment is redundant with the name but costs little.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a single-parameter create tool with annotations covering the mutation hint and no output schema, the description is minimally adequate. It omits any note about what is returned (an API id needed for subsequent key creation), which is the main practical gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Only one parameter with 100% schema description coverage ('The API name.'). The description adds no format, uniqueness, or constraint details 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.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource ('Create a new API namespace') and adds clarifying scope ('to issue keys under'), which implicitly distinguishes it from sibling unkey_create_key. Clear enough to select without opening the schema, though it does not explicitly name siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No explicit when-to-use guidance or alternatives are given. The reader can infer this must precede unkey_create_key, but the description never states that dependency or any prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.