Skip to main content
Glama

generate_api_key_auth

Generate API key authentication middleware with secure hashing, prefix-based lookup, validation, and rotation support

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "runtime": "<runtime>"
    },
    "name": "generate_api_key_auth"
  }
}

Input Schema

NameRequiredDescriptionDefault
prefixNo
runtimeYes
rotationDaysNo
hashAlgorithmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It lists features of the generated middleware but never says what the tool actually returns or does: whether it emits code files, a snippet, or writes into a project, whether it mutates existing files, or whether it depends on a configured runtime environment. For a code-generation tool with zero annotation coverage that is a substantial gap.

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?

A single dense sentence with no filler, and the core purpose is front-loaded ahead of the feature list. The trailing feature enumeration reads as a flat list rather than structured information, but nothing is wasted.

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?

With no annotations, no output schema, and 0% parameter coverage on a four-parameter code generator, the description should explain what is produced and how the required runtime shapes the output. It leaves both unaddressed, so an agent cannot predict the result of a call.

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 description coverage is 0% across four parameters, so the description must compensate. It partially does: 'prefix-based lookup' maps to the prefix parameter, 'hashing' to hashAlgorithm, and 'rotation support' to rotationDays. The required runtime parameter is never mentioned, and no formats, defaults, or constraints are given for any of them.

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?

The description uses a specific verb and resource ('Generate API key authentication middleware') and enumerates the capabilities of the generated artifact: hashing, prefix lookup, validation, rotation. An agent can tell this produces auth middleware rather than, say, key storage config. It stops short of distinguishing itself from close siblings such as generate_api_key_config or generate_passkey_auth.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to choose this tool over alternatives, no prerequisites, and no exclusions. The description is purely a feature list of the output, so the agent must infer the selection criteria from the name alone.

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.