Skip to main content
Glama

Get model details

model_detail
Read-onlyIdempotent

Get capabilities, context/output limits, and current sourced provider offers by model_slug from catalog_search. Prices are base-context rates; long-context tiers, cache writes, batch discounts, and free-tier quotas can change actual cost.

Input Schema

NameRequiredDescriptionDefault
model_slugYes

Output Schema

NameRequiredDescriptionDefault
dataYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedOutput schema / properties / data / properties / model / properties / offers / items / properties / evidence
      Added value: +{
      +  "properties": {
      +    "inferenceProvider": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "priceAuthority": {
      +      "type": "string"
      +    },
      +    "providerUrl": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "inferenceProvider",
      +    "providerUrl",
      +    "priceAuthority"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / data / properties / model / properties / offers / items / properties / prices / properties / cacheWritePerMillionTokens
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / data / properties / model / properties / offers / items / properties / prices / required
      Previous value: -[
      -  "inputPerMillionTokens",
      -  "outputPerMillionTokens",
      -  "cachedInputPerMillionTokens"
      -]New value: +[
      +  "inputPerMillionTokens",
      +  "outputPerMillionTokens",
      +  "cachedInputPerMillionTokens",
      +  "cacheWritePerMillionTokens"
      +]
    • addedOutput schema / properties / data / properties / model / properties / offers / items / properties / provenance / properties / checkedAt / anyOf
      Added value: +[
      +  {
      +    "format": "date",
      +    "type": "string"
      +  },
      +  {
      +    "format": "date-time",
      +    "type": "string"
      +  }
      +]
    • removedOutput schema / properties / data / properties / model / properties / offers / items / properties / provenance / properties / checkedAt / format
      Removed value: -"date"
    • removedOutput schema / properties / data / properties / model / properties / offers / items / properties / provenance / properties / checkedAt / type
      Removed value: -"string"
    • changedOutput schema / properties / data / properties / model / properties / offers / items / required
      Previous value: -[
      -  "id",
      -  "model",
      -  "provider",
      -  "routeType",
      -  "prices",
      -  "limits",
      -  "provenance"
      -]New value: +[
      +  "id",
      +  "model",
      +  "provider",
      +  "routeType",
      +  "prices",
      +  "limits",
      +  "provenance",
      +  "evidence"
      +]
  2. Changed3 schema fields changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / model_slug / pattern
      Added value: +"^[a-zA-Z0-9._:-]+$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "data": {
      +      "properties": {
      +        "model": {
      +          "properties": {
      +            "author": {
      +              "properties": {
      +                "name": {
      +                  "type": "string"
      +                },
      +                "slug": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "slug",
      +                "name"
      +              ],
      +              "type": "object"
      +            },
      +            "capabilities": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "categories": {
      +              "items": {
      +                "properties": {
      +                  "name": {
      +                    "type": "string"
      +                  },
      +                  "slug": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "slug",
      +                  "name"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "contextTokens": {
      +              "anyOf": [
      +                {
      +                  "minimum": 1,
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "description": {
      +              "type": "string"
      +            },
      +            "family": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "knowledgeCutoffAt": {
      +              "anyOf": [
      +                {
      +                  "format": "date",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "maxOutputTokens": {
      +              "anyOf": [
      +                {
      +                  "minimum": 1,
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "name": {
      +              "type": "string"
      +            },
      +            "offers": {
      +              "items": {
      +                "properties": {
      +                  "id": {
      +                    "type": "string"
      +                  },
      +                  "limits": {
      +                    "properties": {
      +                      "contextTokens": {
      +                        "anyOf": [
      +                          {
      +                            "minimum": 1,
      +                            "type": "integer"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "maxOutputTokens": {
      +                        "anyOf": [
      +                          {
      +                            "minimum": 1,
      +                            "type": "integer"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      }
      +                    },
      +                    "required": [
      +                      "contextTokens",
      +                      "maxOutputTokens"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "model": {
      +                    "properties": {
      +                      "name": {
      +                        "type": "string"
      +                      },
      +                      "slug": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "slug",
      +                      "name"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "prices": {
      +                    "properties": {
      +                      "cachedInputPerMillionTokens": {
      +                        "anyOf": [
      +                          {
      +                            "minimum": 0,
      +                            "type": "number"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "inputPerMillionTokens": {
      +                        "minimum": 0,
      +                        "type": "number"
      +                      },
      +                      "outputPerMillionTokens": {
      +                        "minimum": 0,
      +                        "type": "number"
      +                      }
      +                    },
      +                    "required": [
      +                      "inputPerMillionTokens",
      +                      "outputPerMillionTokens",
      +                      "cachedInputPerMillionTokens"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "provenance": {
      +                    "properties": {
      +                      "checkedAt": {
      +                        "format": "date",
      +                        "type": "string"
      +                      },
      +                      "sourceUrl": {
      +                        "format": "uri",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "sourceUrl",
      +                      "checkedAt"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "provider": {
      +                    "properties": {
      +                      "name": {
      +                        "type": "string"
      +                      },
      +                      "slug": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "slug",
      +                      "name"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "routeType": {
      +                    "enum": [
      +                      "official",
      +                      "cloud",
      +                      "gateway",
      +                      "unverified"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "model",
      +                  "provider",
      +                  "routeType",
      +                  "prices",
      +                  "limits",
      +                  "provenance"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "releaseChannel": {
      +              "type": "string"
      +            },
      +            "releasedAt": {
      +              "anyOf": [
      +                {
      +                  "format": "date",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "slug": {
      +              "type": "string"
      +            },
      +            "status": {
      +              "type": "string"
      +            },
      +            "weightAvailability": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "slug",
      +            "name",
      +            "description",
      +            "author",
      +            "family",
      +            "status",
      +            "releaseChannel",
      +            "releasedAt",
      +            "knowledgeCutoffAt",
      +            "contextTokens",
      +            "maxOutputTokens",
      +            "weightAvailability",
      +            "capabilities",
      +            "categories",
      +            "offers"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "model"
      +      ],
      +      "type": "object"
      +    },
      +    "meta": {
      +      "properties": {
      +        "apiVersion": {
      +          "const": "v1"
      +        },
      +        "currency": {
      +          "const": "USD"
      +        },
      +        "tokenPriceUnit": {
      +          "const": "per_million_tokens"
      +        }
      +      },
      +      "required": [
      +        "apiVersion",
      +        "currency",
      +        "tokenPriceUnit"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "meta",
      +    "data"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuinely non-obvious business context: prices reflect base-context rates only, and long-context tiers, cache writes, batch discounts, and free-tier quotas can alter real cost.

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 returned data set and followed by the pricing caveat. Every clause earns its place.

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?

An output schema exists, so return-field detail is unnecessary, and annotations cover safety. The description covers input sourcing, output scope, and the one non-obvious caveat (pricing variability) that an agent would otherwise misreport to a user.

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 description coverage is 0%, so the description must carry the load: it identifies model_slug as the key and tells the agent where to source a valid value (catalog_search). It does not restate the pattern/length constraints, but it adds the meaning the schema lacks.

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 (Get) and a concrete resource bundle: capabilities, context/output limits, and sourced provider offers for a given model_slug. It is clearly distinguishable from sibling catalog_search (discovery) and offer_compare (comparison) because it is a single-model detail lookup.

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 phrase 'by model_slug from catalog_search' effectively routes the agent: obtain the slug via catalog_search, then call this tool. It gives clear context but names no explicit exclusions or alternative siblings for related questions (e.g., offer_compare).

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