Skip to main content
Glama

create_app_api_key

Issue an API key for an app so REST endpoints can authenticate requests. Store it server-side and include X-App-User to enable per-user authorization.

Instructions

Create an API key for an app. SECURITY: the key must live server-side only (env var, Next.js API routes) — never in browser code. If the app has its own users, the server also sends X-App-User: <user id> with the key so per-user endpoints know who is acting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
appIdYes
organizationIdNo

Schema Changelog

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

  1. First observedv0.7.0

TDQS

A3.5/5.0
Behavior4/5

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

The description adds valuable behavioral context beyond the annotations: the key must be server-side only, and per-user requests must include X-App-User. This is meaningful security-sensitive guidance that an agent needs. The description aligns with readOnlyHint=false, and no contradiction exists, though it does not describe the return value or key lifecycle.

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?

The description is two sentences with no filler. The main purpose is front-loaded, followed by a focused, high-value security note. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an operation that creates a sensitive credential, the description omits critical context: what the response contains, whether the key is shown only once, how organizationId factors in, and what name means. There is no output schema, and parameter semantics are entirely absent, so the description is not complete enough for an agent to invoke it with confidence.

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

Parameters1/5

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

Schema description coverage is 0%, and the description does not explain any of the three parameters: name, appId, or organizationId. It only refers to 'app' generically and mentions the X-App-User header, which is not a parameter. With zero schema coverage, the description should compensate, but it does not.

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 states a specific verb and resource: 'Create an API key for an app.' This clearly distinguishes it from siblings like create_app, create_app_endpoint, and login. The resource being created is unambiguous and the title annotation reinforces it.

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 provides important usage guidance about storing the key server-side and sending X-App-User, but it does not explicitly say when to use this tool versus alternatives or when not to use it. The context implies it is for creating API keys for apps, but no exclusions or alternative routing are given.

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

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/shimon-ks/tasklite-mcp'

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