Skip to main content
Glama

manage_api_keys_create

Generate API keys with customizable scopes and expiration for project access control in the MCP Hub management platform.

Instructions

Create a new API key for a project.

Args: project_id: Project ID or "*" for all projects scope: Access scope - single ("read", "write", "admin") or multiple space-separated ("read write admin") Examples: "read", "write", "admin", "read write", "read write admin" expires_in_days: Optional expiration in days (default: never expires) description: Optional description for the key

Returns: dict: Key information including the actual key (SAVE IT - won't be shown again!)

Examples: # Single scope manage_api_keys_create(project_id="wordpress_site1", scope="read")

# Multiple scopes (space-separated)
manage_api_keys_create(project_id="wordpress_site1", scope="read write admin")

# All scopes for all projects
manage_api_keys_create(project_id="*", scope="read write admin")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes
scopeNoread
expires_in_daysNo
descriptionNo
Behavior4/5

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

Excellent disclosure of critical behavior: the warning that the key 'won't be shown again' and must be saved immediately. Also explains default behaviors (never expires) and scope syntax (space-separated). Missing: permission requirements or failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Uses a clear docstring structure (Args/Returns/Examples) that front-loads the critical warning in the Returns section. Slightly verbose in the Examples section with repetitive code blocks, but every sentence conveys necessary information.

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?

Given no annotations, no output schema, and 0% input schema coverage, the description comprehensively covers all parameters, return value format, security implications, and usage patterns. Adequate for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by detailing all 4 parameters: project_id wildcard behavior, scope format rules (space-separated values), expires_in_days default, and description purpose. Includes specific value examples.

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 opening sentence states the specific action ('Create'), resource ('API key'), and scope ('for a project'), clearly distinguishing this from sibling tools like manage_api_keys_delete, list, revoke, or rotate.

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 clear context through examples showing valid use cases (single project vs. wildcard '*', single vs. multiple scopes), though it lacks explicit 'when not to use' or alternative comparisons.

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/airano-ir/mcphub'

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