Skip to main content
Glama

Get model provider config

model_providers_get
Read-onlyIdempotent

Retrieve a saved model provider configuration by organization and config ID without returning secrets or contacting the provider; model lists are not included.

Instructions

Returns one model provider config's stored settings; secret values are never returned. The provider isn't contacted, so the response doesn't list its models.

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_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgIDYesOrganization ID (org_...).
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. Changed1 schema field changedv0.1.10
    • 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. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / modelProviderConfigID / description
      Added value: +"Model provider config ID (mpc_...)."
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, and closed-world behavior, but the description adds substantive context beyond them: secrets are redacted and no live provider call is made, so no model inventory appears. Return format need not be described because an output schema exists.

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 short sentences with no filler. The core return behavior is front-loaded, followed by the two caveats an agent most needs (secret redaction, no provider contact).

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 two-parameter read tool with full annotation coverage and an output schema, the definition covers the important constraints and does not need to explain return values. It could add error behavior for a missing or unauthorized config, which is the only meaningful gap.

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

Parameters3/5

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

Schema description coverage is 100%, so both orgID and modelProviderConfigID are already documented with their patterns in the schema. The description adds no further meaning about these parameters, which is the expected baseline when the schema does the work.

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?

The description names a specific verb and resource ('Returns one model provider config's stored settings') and bounds the result by excluding secrets and model lists. It does not explicitly name a sibling such as model_providers_list or model_providers_catalog, so sibling differentiation is implied rather than stated.

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

Usage Guidelines3/5

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

Usage is implied by 'stored settings' and by the note that the provider is not contacted, which tells an agent this is the cheap config-only read. There is no explicit when-to-use versus model_providers_catalog or model_providers_list, and no note on what happens when the ID is unknown.

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