Skip to main content
Glama

Get model provider catalog

model_providers_catalog
Read-onlyIdempotent

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 changed
    • addedOutput schema / $defs / DiscoveredProviderModel / properties / pricing / description
      Added value: +"Provider-advertised list prices, present only when the provider publishes pricing in its model catalog (OpenRouter)."
  2. Changed1 schema field changed
    • 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"
      +}
  3. Changed2 schema fields changed
    • 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

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, the description discloses real behavioral traits: an outbound credential-validated probe, added latency from waiting on the upstream provider, and the non-obvious fact that failure is returned as data rather than as an error. That last point materially changes how an agent should interpret the response.

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?

Two dense sentences, no filler, with the latency and failure-mode caveats front-loaded alongside the core action. Slightly terse phrasing like 'report failure as data' could be sharper, but nothing is wasted.

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?

An output schema exists and the input schema is fully described, so the description only needs to cover runtime behavior — which it does via latency, upstream dependency, and failure-as-data semantics. The only gap is guidance on when a live catalog fetch is warranted versus the cheaper config routes.

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 coverage is 100%, with both orgID and modelProviderConfigID fully documented with patterns, so the schema already carries parameter meaning. The description adds nothing about how the two IDs scope the lookup or what happens if the config is stale; baseline 3 applies.

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') plus the mechanism (credential validation + probing /models endpoint), which clearly separates it from config-reading siblings like model_providers_get. It never names a sibling explicitly, so differentiation is inferable 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?

It implies when to be cautious ('slower than the other model provider config routes') and that failures surface as data, but it never states when an agent should prefer model_providers_get/list instead of paying the live round-trip cost. Usage context is implied rather than prescribed.

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.