Skip to main content
Glama

Save your own server or a vendor API key

create_supply_credential

Save your own server or a vendor API key

Saves, for selling, your own OpenAI-compatible server's https base URL and optional key (preset custom), or a vendor API key (today a Z.ai GLM Coding Plan key: preset zai). A preset marked comingSoon in the list_supply_presets tool is refused (422 preset_coming_soon). It is sealed at once to the box that serves requests (the console itself cannot read it back), never logged and never shown again: the answer carries a hint only. OAuth and session tokens are refused (400 key_refused). One listing per key: the same key saved again answers 200 with the credential already saved (alreadyAdded: true, nothing new is saved), and a key another account lists is refused (409 key_taken). Then discover its models with the discover_models tool. Sellers only: an account that has not accepted the selling terms gets 403 not_seller. At most 20 seller keys per account, and 100 new ones a day: past either, 409 limit_reached.

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": {
      "preset": "<preset>"
    },
    "name": "create_supply_credential"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoThe vendor API key (required for a vendor preset; optional bearer key for custom). Sealed at once to the serving box; never stored readable, logged or shown again.
labelNo
presetYes
baseUrlNocustom only: the server's OpenAI-compatible base URL, https and a public host (port 443 or from 1024). Sealed with the key; the serving box checks every address it connects to.
statementNoThe statementVersion of GET /sell/presets: records the seller's statement for this key (else it is asked at publish).
idempotencyKeyNoOptional. A unique string so that repeating this call never creates twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses the full behavioral profile: the secret is sealed to the serving box and never readable back or logged, the response carries only a hint, and each failure mode is pinned to a status code (422 preset_coming_soon, 400 key_refused, 403 not_seller, 409 key_taken, 409 limit_reached) plus hard quotas (20 seller keys, 100 new per day). The repeated-save case (200 with alreadyAdded: true, nothing new saved) is a key-material uniqueness rule rather than a request-level idempotency guarantee, so it does not directly contradict idempotentHint=false, especially given the separate optional idempotencyKey parameter.

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?

The content is front-loaded with the two save paths before the constraints, error codes, and quota limits, and nearly every clause carries distinct information. The opening line merely restates the title, and the long run-on sentence packing all refusal codes could be broken into a short constraint list for faster scanning.

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 six-parameter mutation with no output schema, the description covers authorization, quotas, all refusal paths, and even the shape of the response ('the answer carries a hint only'). The remaining gap is that `label` is not explained in either the schema or the description, leaving one optional parameter opaque.

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?

Schema coverage is 67% and the description meaningfully extends it: it explains that `preset` selects between a custom OpenAI-compatible server (requires baseUrl) and a vendor key (zai), and that the key is sealed on write. It clarifies why `key` is optional for custom presets and links `statement` to the seller statement recorded at publish time. Only `label` is left without semantic explanation anywhere.

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 names a specific verb and resource ('Saves ... your own OpenAI-compatible server's https base URL and optional key ... or a vendor API key') and enumerates the two concrete shapes via preset values (custom server vs. zai vendor key). It is clearly separable from siblings: presets are looked up with `list_supply_presets` and models enumerated with `discover_models`, neither of which saves anything.

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

Usage Guidelines5/5

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

It states when the tool applies (sellers only, terms accepted) and explicitly when it does not: preset marked comingSoon is refused, OAuth/session tokens are refused, a key already listed by another account is refused. It also names the follow-up action ('Then discover its models with the `discover_models` tool') and the prerequisite lookup (`list_supply_presets`), so an agent is routed rather than left to infer.

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