Skip to main content
Glama

post_api_llm

Create a new LLM API key. POST /api/v2/api/llm

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the write/non-destructive profile is covered. The description adds nothing beyond the annotations and the raw REST path — no statement about authentication needs, whether an existing key is invalidated, or what happens if the same service/model is registered twice.

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?

Two brief sentences with the core action front-loaded, so it is efficiently sized. The trailing 'POST /api/v2/api/llm' line is largely redundant with the tool name and adds little value.

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?

This is a creation endpoint with a required nested body, three undocumented required fields, and no output schema. The description omits any information about what must be supplied or what is returned, leaving an agent under-equipped to call it correctly.

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

Parameters2/5

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

Schema coverage is 0% and the single top-level 'body' parameter wraps three required fields (serviceId, modelId, apiKey). The description says nothing about these required identifiers or the optional name field, so it fails to compensate for the undocumented parameter surface.

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?

States a specific verb and resource ('Create a new LLM API key'), which cleanly separates it from sibling creators such as post_api_exchange and post_api_prediction. It stops short of naming or contrasting related LLM siblings (get_api_llm, put_api_llm_id_model), so no explicit differentiation is provided.

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 call this versus alternatives such as get_api_llm or put_api_llm_id_model, nor any mention of prerequisites (e.g. that a valid serviceId/modelId must be resolved first via get_api_llm_services). The agent is left to infer usage entirely from the name.

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