Skip to main content
Glama

KnowAPI

Get a free API key

get_api_key

Issue a free API key for one API (keys are per API; a few per day per caller). Keep it and reuse it.

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": {
      "api_id": "<api_id>"
    },
    "name": "get_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_idYesAPI id from search_apis.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-idempotent write, and the description adds context beyond them: a rate limit ('a few per day per caller'), per-API key scoping, and the recommendation to retain and reuse the key rather than re-issuing. That last point is valuable given idempotentHint=false, since repeat calls create new keys. It stops short of 5 because it does not state key lifetime or whether re-issuing invalidates a prior key.

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?

Two short sentences with the action and its scoping constraint front-loaded in the parenthetical, followed by the reuse advice. Nothing is redundant or buried.

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?

For a single-parameter tool with no output schema, the description covers the important points: what is produced, that it is scoped per API, the rate limit, and that the result should be retained. It leaves the return shape unstated, though the phrase 'keep it' implies the key is handed back.

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

Parameters4/5

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

Schema coverage is 100% and the schema already routes api_id to search_apis, so the baseline would be 3. The description earns a bump by explaining that the key is scoped to a single API, which tells the agent that api_id determines the credential's audience and that a separate call is needed per API.

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 states a specific verb and resource: 'Issue a free API key for one API'. It also clarifies scope ('keys are per API'), so an agent understands one key per API rather than a global credential. It does not explicitly differentiate itself from siblings such as get_plans or query_api, which keeps it short of a 5.

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?

'Keep it and reuse it' implicitly advises against repeated calls, which is real usage guidance for a non-idempotent tool. However, there is no explicit statement of when to call this versus alternatives (e.g., check_request or query_api) or what prerequisite conditions apply beyond having an api_id.

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.

Resources