Skip to main content
Glama

Change an AI provider

colliedesk_ai_provider_update
Idempotent

Rename a provider, change its models, or change an OpenRouter provider's routing by data policy. A new first model is checked (one billed request) before it is saved. The base URL never changes: a new address is another provider, added with its key, so its features need turning on again. A model a feature uses, or intake's fallback model, cannot be removed (ai_model_in_use). Loosening routing (data_collection deny to allow, zdr true to false) lets customers' data reach more providers: say so to the person you work for first.

Needs: ai_settings:update.

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": {
      "provider_id": "<provider_id>"
    },
    "name": "colliedesk_ai_provider_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNo
modelsNo
routingNo
provider_idYesFrom colliedesk_ai_settings_get.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / description
      Added value: +"Same shape as colliedesk_ai_provider_add's output."
    • removedOutput schema / properties
      Removed value: -{
      -  "provider": {
      -    "properties": {
      -      "auth_kind": {
      -        "enum": [
      -          "api_key",
      -          "none"
      -        ],
      -        "type": "string"
      -      },
      -      "base_url": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "check_error_code": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "check_status": {
      -        "enum": [
      -          "ok",
      -          "failing"
      -        ],
      -        "type": "string"
      -      },
      -      "checked_at": {
      -        "type": "string"
      -      },
      -      "created_at": {
      -        "type": "string"
      -      },
      -      "created_by": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "key_hint": {
      -        "description": "The key's last four characters; the key is never shown.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "kind": {
      -        "enum": [
      -          "anthropic",
      -          "openai_compatible"
      -        ],
      -        "type": "string"
      -      },
      -      "label": {
      -        "type": "string"
      -      },
      -      "models": {
      -        "description": "The first is the one a check uses.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "routing": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "data_collection": {
      -                "description": "deny: only providers that do not store or train on what they are sent.",
      -                "enum": [
      -                  "allow",
      -                  "deny"
      -                ],
      -                "type": "string"
      -              },
      -              "zdr": {
      -                "description": "true: only providers with zero data retention.",
      -                "type": "boolean"
      -              }
      -            },
      -            "required": [
      -              "data_collection",
      -              "zdr"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "OpenRouter's routing by data policy; null on another server."
      -      },
      -      "updated_at": {
      -        "type": "string"
      -      },
      -      "used_by": {
      -        "items": {
      -          "enum": [
      -            "triage",
      -            "draft",
      -            "chat",
      -            "intake"
      -          ],
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "kind",
      -      "label",
      -      "models",
      -      "check_status",
      -      "used_by"
      -    ],
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "provider"
      -]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say it is a non-read-only, idempotent mutation; the description adds the real behavioral payload — a new first model is validated with one billed request, the base URL is immutable so features must be re-enabled, in-use models are rejected, and loosening data policy broadens data exposure. These side effects and failure modes are not recoverable from the structured fields.

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-loaded with the three operations, then constraints, then a clearly separated 'Needs:' line for the permission. It is dense but nearly every sentence carries a distinct fact; a bulleted structure would improve scanning slightly.

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?

For a nested, 4-parameter mutation with an output schema, the definition covers the required permission, the validation side effect, the immutability constraint, the error case, and the escalation rule. Nothing needed to call it safely is missing, and return values are correctly left to the output schema.

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 only 25%, and the description compensates well by explaining what label, models, and routing actually do, including that the first model position carries special meaning. The routing object's two fields are already described in-schema, and provider_id's source is documented in-schema, so it stops just short of full coverage.

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 opens with a specific verb-plus-resource statement covering exactly what is mutable here: label, models, and OpenRouter routing. It also implicitly separates itself from the add tool ('a new address is another provider, added with its key'), so an agent can route between provider mutations without opening the schemas.

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 gives concrete when/when-not rules: a base URL change requires adding a new provider instead, a model in use by a feature or intake fallback cannot be removed (with the error code ai_model_in_use), and loosening routing requires a human sign-off first. The required permission is stated explicitly as a trailing 'Needs:' line.

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