Skip to main content
Glama

Add an AI provider

colliedesk_ai_provider_add

Add a provider with the workspace's own key: anthropic (the Claude API, no base_url) or openai_compatible (OpenAI, OpenRouter, vLLM, Ollama; base_url with its version path, for example https://openrouter.ai/api/v1, public https unless the server operator allows private addresses). On OpenRouter, routing keeps the requests on providers that do not store or train on data (data_collection deny) or keep nothing (zdr). The key is checked with one small billed request to the first model and saved only when it works; it is sealed on the server and never shown again. It passes through this conversation, so use a key you can revoke at the provider. A failed check saves nothing and says why (ai_check_failed with check_error_code). At most 5 providers; adding one turns no feature on.

Needs: ai_settings:manage_credentials.

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": {
      "kind": "<kind>",
      "label": "<label>",
      "models": "<models>"
    },
    "name": "colliedesk_ai_provider_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
labelYes
modelsYes
api_keyNo
routingNo
base_urlNo

Output Schema

NameRequiredDescriptionDefault
providerYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Far exceeds the annotations (which only say non-read-only, open-world, non-idempotent, non-destructive): it discloses that the key is validated with one small billed request to the first model, that nothing is saved on failure, that the error surfaces as ai_check_failed with check_error_code, that the key is sealed server-side and never shown again, and that at most 5 providers are allowed. The billed-request and irreversibility disclosures are exactly the kind of consequence an agent must communicate before calling.

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?

Front-loads purpose, then constraints, then failure behavior, then permissions — a sensible order with no filler sentences. It is dense with parentheticals and semicolons, which makes it harder to scan than it needs to be, though nearly every clause carries a fact.

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

Completeness5/5

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

A six-parameter, nested-object mutation with an output schema: the description covers kinds, key handling, validation cost, failure mode, quota, permission requirement, and the fact that it does not enable a feature. Return values are covered by the output schema, so nothing critical is missing for correct invocation.

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 description coverage is 0%, but the description compensates for most parameters: kind enum values, base_url format with a concrete example and the public-HTTPS/private-address rule, routing semantics (data_collection deny, zdr), and the fact that the first element of models is the one billed for the check. label and the 1-20 models constraints are left to the schema, leaving a small residual gap.

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?

States a specific verb and resource ('Add a provider with the workspace's own key') and immediately disambiguates the two kinds: anthropic (Claude API, no base_url) versus openai_compatible (OpenAI/OpenRouter/vLLM/Ollama with a versioned base_url). An agent can tell exactly what will be created and in which shape without opening the schema.

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

Usage Guidelines4/5

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

Gives clear preconditions for use: it needs ai_settings:manage_credentials, it applies when the workspace brings its own key, and it warns that adding a provider turns no feature on (so it is a setup step, not an activation). It also warns the key traverses the conversation, so a revocable key should be used. It does not name sibling alternatives such as ai_provider_check or ai_provider_key_set, so it lacks explicit routing guidance.

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