Skip to main content
Glama

iam_create_api_key

Create an IAM API key for an application or user. The secret key is returned only once and the credentials persist beyond the session.

Instructions

Create an IAM API key for an application or a user.

Sensitive and persistent: this mints long-lived credentials that outlive the session and are not removed by disabling deletes. The secret key is returned only once in the response. Only expose the iam product to trusted agents.

Exactly one of application_id or user_id identifies the bearer.

API keys carry no tags, so delete_api_key requires SCW_ALLOW_DELETE_UNTAGGED=true to remove them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idNoID of the owning user (mutually exclusive with ``application_id``).
descriptionYesDescription of the API key (max 200 characters).
application_idNoID of the owning application (mutually exclusive with ``user_id``).
default_project_idNoDefault project ID to use with Object Storage.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description fully informs about important behaviors: long-lived credentials persisting beyond sessions, secret key returned only once, and deletion requiring a special flag due to lack of tags. This fully compensates for missing annotations.

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?

Concise and well-structured. The purpose is stated first, then critical behavioral details, usage constraints, and deletion implications. Every sentence is necessary and informative.

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?

Given the tool's complexity (4 parameters, 1 required) and the existence of an output schema, the description covers all necessary context: sensitive nature, parameter mutual exclusivity, persistence, response limitation, and clean-up requirements. No gaps remain.

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%, so baseline is 3. The description adds only the mutual exclusivity reminder, which is already in the schema. It does not provide new details beyond the parameter descriptions.

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?

The description clearly states the action 'Create an IAM API key' and specifies the target resources 'for an application or a user'. It distinguishes from sibling tools like iam_create_application and iam_list_api_keys by focusing on key creation.

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 guidance that exactly one of application_id or user_id must be used, cluing the agent into mutual exclusivity. Also advises restricting access to trusted agents. However, it does not compare with alternative ways to create credentials or mention when not to use this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sndpl/scaleway-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server