Skip to main content
Glama

Get model provider catalog

model_providers_catalog
Read-onlyIdempotent

Fetches a configured provider's live model catalog by validating its credential and probing the /models endpoint, confirming which models are available before you run agents.

Instructions

Fetches the provider's live model catalog by validating the configured credential and probing the provider's /models endpoint. The call waits on the upstream provider, so it is slower than the other model provider config routes and can report failure as data.

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

Input Schema

NameRequiredDescriptionDefault
orgIDYesOrganization ID (org_...).
modelProviderConfigIDYesModel provider config ID (mpc_...).

Output Schema

NameRequiredDescriptionDefault
errorNoWhy the probe failed. Present when status is failed.
modelsNoModels advertised by the provider, newest first, filtered to text-output tool-calling models where the provider exposes enough metadata to tell. Present when status is ok.
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.10
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "DiscoveredModelPricing": {
      +      "description": "Provider-advertised list prices in USD per million tokens, as exact decimal strings. Present only when the provider publishes pricing in its model catalog (OpenRouter). Cache prices are omitted when the provider does not publish them.",
      +      "properties": {
      +        "cache_read_input_usd_per_million": {
      +          "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
      +          "type": "string"
      +        },
      +        "cache_write_input_usd_per_million": {
      +          "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
      +          "type": "string"
      +        },
      +        "input_usd_per_million": {
      +          "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
      +          "type": "string"
      +        },
      +        "output_usd_per_million": {
      +          "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "input_usd_per_million",
      +        "output_usd_per_million"
      +      ],
      +      "type": "object"
      +    },
      +    "DiscoveredProviderModel": {
      +      "properties": {
      +        "context_window_tokens": {
      +          "description": "Provider-advertised context window limit in tokens, when available.",
      +          "maximum": 2147483647,
      +          "minimum": 2,
      +          "type": "integer"
      +        },
      +        "display_name": {
      +          "type": "string"
      +        },
      +        "max_output_tokens": {
      +          "description": "Provider-advertised maximum output limit in tokens, when available.",
      +          "maximum": 2147483647,
      +          "minimum": 1,
      +          "type": "integer"
      +        },
      +        "pricing": {
      +          "$ref": "#/$defs/DiscoveredModelPricing"
      +        },
      +        "slug": {
      +          "description": "Provider model slug usable as a configured model's provider_model_slug.",
      +          "type": "string"
      +        },
      +        "supported_reasoning_efforts": {
      +          "description": "Reasoning effort values the model accepts, when reported.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "supports_reasoning": {
      +          "description": "Whether Omnara can send this model a reasoning effort, when the provider or the public model catalog reports it.",
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "slug"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "description": "The provider's model catalog, obtained by validating the configured credential and probing the provider's /models endpoint. A failed probe does not affect the stored config; treat it as a warning that the base URL or API key may be invalid.",
      +  "properties": {
      +    "error": {
      +      "description": "Why the probe failed. Present when status is failed.",
      +      "type": "string"
      +    },
      +    "models": {
      +      "description": "Models advertised by the provider, newest first, filtered to text-output tool-calling models where the provider exposes enough metadata to tell. Present when status is ok.",
      +      "items": {
      +        "$ref": "#/$defs/DiscoveredProviderModel"
      +      },
      +      "type": "array"
      +    },
      +    "status": {
      +      "enum": [
      +        "ok",
      +        "failed"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status"
      +  ],
      +  "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 declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavior: the call blocks on the upstream provider and is therefore slower than sibling routes, and failures can come back as data rather than as an error — a detail an agent needs in order to interpret the response correctly.

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, both load-bearing: the first states what is fetched and how, the second front-loads the latency and failure-mode caveats. No filler or restatement of the title.

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?

With an output schema present, return values need not be described, and the description covers the two things an agent could not learn from structured fields: the blocking upstream call and the possibility of failure surfaced as data. Only the absence of explicit sibling routing keeps it short of full completeness.

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% and both parameters carry their own format descriptions, so the schema does the work. The description adds no meaning about orgID or modelProviderConfigID beyond what the schema states, which is the expected baseline here.

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 gives a specific verb and resource ('Fetches the provider's live model catalog') and explains the mechanism (credential validation plus a probe of the provider's /models endpoint). It implicitly separates itself from the config-oriented siblings by calling this the 'live' catalog and referring to 'the other model provider config routes', though it never names the sibling an agent should pick instead.

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 only implied: the agent can infer this is the route to use when it needs the provider's actual current model list rather than stored config. There is no explicit when-to-use or when-not statement, and no named alternative such as model_providers_get for the cheaper config read.

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