Skip to main content
Glama

Update model provider config

model_providers_update
DestructiveIdempotent

Update a model provider configuration's connection settings, including credentials, headers, base URL, auth options, and timeouts; omitted fields retain their current values.

Instructions

Updates a model provider config's connection settings, such as its credential and headers, and returns the updated config; omitted fields keep their values. The credential secret is checked to exist and match auth_kind, but the provider isn't contacted, so a credential the provider rejects isn't caught here.

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": {
      "modelProviderConfigID": "<modelProviderConfigID>",
      "orgID": "<orgID>"
    },
    "name": "model_providers_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgIDYesOrganization ID (org_...).
headersNoExtra HTTP headers sent with every request to this provider. Values are stored and returned as plain text; use secret_headers for keys and tokens. Replaces all headers when provided.
base_urlNoProvider endpoint base URL.
auth_kindNoHow the credential is sent: as a bearer token, in the header named by auth_options.header_name, or signed with AWS SigV4.
auth_optionsNoNon-secret authentication settings. Use an empty object with bearer_token. With api_key_header, set {"header_name":"..."}. With sigv4, set the AWS signing service and region.
endpoint_pathNoURL path under base_url. This changes where requests are sent, not which API format Omnara speaks.
secret_headersNoExtra HTTP headers whose values come from org-owned generic secrets, mapping header names to secret references. Replaces all secret headers when provided.
idle_timeout_msNoMaximum wait for response headers or the next response bytes, in milliseconds. Heartbeats count as activity. Local response processing does not consume this idle budget.
request_timeout_msNoTotal deadline for one provider attempt, including reasoning and response streaming, in milliseconds. Retries have separate deadlines.
credential_secret_idNoSecret ID (sec_...).
modelProviderConfigIDYesModel provider config ID (mpc_...).

Output Schema

NameRequiredDescriptionDefault
idYesIdentifies this provider config.
nameYesName agent configs use to reference this provider as model.provider_config.
org_idYesOrganization that owns this provider config.
headersYesExtra HTTP headers sent with every request to this provider.
base_urlYesProvider endpoint base URL.
auth_kindYesHow Omnara sends the credential to the provider.
api_formatYesWire protocol Omnara speaks to this provider.
created_atYesWhen the provider config was created.
updated_atYesWhen the provider config was last changed.
api_variantYesProvider-specific flavor of the API format.
auth_optionsYesNon-secret authentication settings for this provider config.
endpoint_pathYesPath under base_url that model requests are sent to.
secret_headersYesExtra HTTP headers whose values come from the referenced secrets.
idle_timeout_msYesLongest wait for response headers or more response data; heartbeats count as activity.
management_kindYesWhether the organization manages this provider or the Omnara installation provisions and manages it.
request_timeout_msYesTotal deadline for one provider attempt, including reasoning and response streaming.
credential_secret_idYesSecret holding the credential Omnara sends to the provider.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.1.10
    • changedInput schema / properties / auth_kind / description
      Previous value: -"How the credential is sent: bearer_token, api_key_header, or sigv4 (AWS)."New value: +"How the credential is sent: as a bearer token, in the header named by auth_options.header_name, or signed with AWS SigV4."
    • removedInput schema / properties / auth_kind / x-enum-varnames
      Removed value: -[
      -  "BearerToken",
      -  "ApiKeyHeader",
      -  "ModelProviderSigV4"
      -]
    • addedInput schema / properties / auth_options / properties / header_name / description
      Added value: +"Header that carries the API key when auth_kind is api_key_header."
    • addedInput schema / properties / auth_options / properties / region / description
      Added value: +"AWS region to sign for when auth_kind is sigv4."
    • addedInput schema / properties / auth_options / properties / service / description
      Added value: +"AWS service to sign for when auth_kind is sigv4."
    • removedInput schema / properties / auth_options / x-go-type
      Removed value: -"json.RawMessage"
    • removedInput schema / properties / auth_options / x-go-type-skip-optional-pointer
      Removed value: -true
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "ManagementKind": {
      +      "description": "Lifecycle owner. Tenant-managed resources can be changed through tenant APIs. Cluster-managed resources are installed and lifecycle-managed by the control plane; individual APIs may explicitly expose tenant-editable settings.",
      +      "enum": [
      +        "tenant",
      +        "cluster"
      +      ],
      +      "type": "string"
      +    },
      +    "ModelAPIFormat": {
      +      "description": "Wire protocol the model endpoint speaks.",
      +      "enum": [
      +        "openai-responses",
      +        "openai-chat-completions",
      +        "anthropic-messages"
      +      ],
      +      "type": "string"
      +    },
      +    "ModelProviderAPIVariantResponse": {
      +      "type": "string"
      +    },
      +    "ModelProviderAuthKindResponse": {
      +      "type": "string"
      +    },
      +    "ModelProviderConfigID": {
      +      "pattern": "^mpc_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "OrganizationID": {
      +      "pattern": "^org_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ResourceName": {
      +      "description": "Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.",
      +      "maxLength": 64,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "SecretID": {
      +      "description": "Secret ID (sec_...).",
      +      "pattern": "^sec_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    }
      +  },
      +  "properties": {
      +    "api_format": {
      +      "$ref": "#/$defs/ModelAPIFormat",
      +      "description": "Wire protocol Omnara speaks to this provider."
      +    },
      +    "api_variant": {
      +      "$ref": "#/$defs/ModelProviderAPIVariantResponse",
      +      "description": "Provider-specific flavor of the API format."
      +    },
      +    "auth_kind": {
      +      "$ref": "#/$defs/ModelProviderAuthKindResponse",
      +      "description": "How Omnara sends the credential to the provider."
      +    },
      +    "auth_options": {
      +      "description": "Non-secret authentication settings for this provider config.",
      +      "properties": {
      +        "header_name": {
      +          "description": "Header that carries the API key when auth_kind is api_key_header.",
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "region": {
      +          "description": "AWS region to sign for when auth_kind is sigv4.",
      +          "maxLength": 64,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "service": {
      +          "description": "AWS service to sign for when auth_kind is sigv4.",
      +          "maxLength": 64,
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "base_url": {
      +      "description": "Provider endpoint base URL.",
      +      "type": "string"
      +    },
      +    "created_at": {
      +      "$ref": "#/$defs/Timestamp",
      +      "description": "When the provider config was created."
      +    },
      +    "credential_secret_id": {
      +      "$ref": "#/$defs/SecretID",
      +      "description": "Secret holding the credential Omnara sends to the provider."
      +    },
      +    "endpoint_path": {
      +      "description": "Path under base_url that model requests are sent to.",
      +      "type": "string"
      +    },
      +    "headers": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "description": "Extra HTTP headers sent with every request to this provider.",
      +      "type": "object"
      +    },
      +    "id": {
      +      "$ref": "#/$defs/ModelProviderConfigID",
      +      "description": "Identifies this provider config."
      +    },
      +    "idle_timeout_ms": {
      +      "description": "Longest wait for response headers or more response data; heartbeats count as activity.",
      +      "type": "integer"
      +    },
      +    "management_kind": {
      +      "$ref": "#/$defs/ManagementKind",
      +      "description": "Whether the organization manages this provider or the Omnara installation provisions and manages it."
      +    },
      +    "name": {
      +      "$ref": "#/$defs/ResourceName",
      +      "description": "Name agent configs use to reference this provider as model.provider_config."
      +    },
      +    "org_id": {
      +      "$ref": "#/$defs/OrganizationID",
      +      "description": "Organization that owns this provider config."
      +    },
      +    "request_timeout_ms": {
      +      "description": "Total deadline for one provider attempt, including reasoning and response streaming.",
      +      "type": "integer"
      +    },
      +    "secret_headers": {
      +      "additionalProperties": {
      +        "$ref": "#/$defs/SecretID"
      +      },
      +      "description": "Extra HTTP headers whose values come from the referenced secrets.",
      +      "type": "object"
      +    },
      +    "updated_at": {
      +      "$ref": "#/$defs/Timestamp",
      +      "description": "When the provider config was last changed."
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "org_id",
      +    "management_kind",
      +    "name",
      +    "api_format",
      +    "api_variant",
      +    "base_url",
      +    "endpoint_path",
      +    "request_timeout_ms",
      +    "idle_timeout_ms",
      +    "auth_kind",
      +    "auth_options",
      +    "credential_secret_id",
      +    "headers",
      +    "secret_headers",
      +    "created_at",
      +    "updated_at"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.1.9
    • changedInput schema / properties / base_url / description
      Previous value: -"Provider endpoint base URL. Normal API mode requires a public HTTPS endpoint; localhost and loopback endpoints are accepted only when the API is running in insecure dev mode."New value: +"Provider endpoint base URL."
  3. Changed5 schema fields changedv0.1.1
    • addedInput schema / $defs / SecretID / description
      Added value: +"Secret ID (sec_...)."
    • addedInput schema / properties / auth_kind / description
      Added value: +"How the credential is sent: bearer_token, api_key_header, or sigv4 (AWS)."
    • addedInput schema / properties / credential_secret_id / description
      Added value: +"Secret ID (sec_...)."
    • addedInput schema / properties / modelProviderConfigID / description
      Added value: +"Model provider config ID (mpc_...)."
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the bar is lower, yet the description still adds two non-obvious facts: the credential is validated only for existence and auth_kind match, and the provider is not contacted, so rejected credentials pass undetected. It does not spell out that supplied headers/secret_headers replace existing ones wholesale — but that is documented in the schema, so the omission is small.

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 sentences, zero filler, front-loaded with the action and the patch rule before the caveat about credential validation. Every clause carries information an agent needs to call it correctly.

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?

Output schema exists so return values need not be explained, and 100% param coverage means the description can focus on behavior — which it does. For a destructive 11-parameter mutation it could still note required permissions or that headers/secret_headers are replaced rather than merged, but nothing critical is missing.

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?

With 100% schema description coverage the baseline is 3, and the description earns an extra point by defining the semantics of absent parameters (preserved, not cleared) — meaning the schema itself does not state at the object level. It does not add meaning for individual fields like base_url, endpoint_path or the timeouts, which the schema handles.

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 (updates) and resource (model provider config's connection settings), names the affected field classes (credential, headers), and adds patch semantics ('omitted fields keep their values') plus the return shape. That distinguishes it cleanly from model_providers_create and model_providers_get without opening either 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?

The 'omitted fields keep their values' clause tells the agent this is the right tool for partial/connection-only edits and that it need not resend the whole config. There is no explicit when-not or named alternative ('use model_providers_create for a new provider'), so it stops one step short of full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.