Skip to main content
Glama

Find retired AI models in code

find_retired_models
Read-onlyIdempotent

Scan source and config files for AI model IDs that the vendor (OpenAI, Anthropic, Google Gemini, Mistral, Cohere, xAI, DeepSeek) or hosting platform (Amazon Bedrock, Groq, Fireworks AI, Google Vertex AI) has retired or scheduled for retirement. Exact matches only, including Bedrock, Vertex AI, LiteLLM and OpenRouter spellings. Returns each model's shutdown date, days left, the vendor's recommended replacement, the source page and the file:line locations.

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": {
      "files": "<files>"
    },
    "name": "find_retired_models"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesFiles to scan, each with its repository-relative path and full text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 open-world behavior, and the description does not contradict any of them. Beyond that it adds genuinely useful behavior: exact-match-only semantics (no fuzzy or version-range matching) while accepting Bedrock, Vertex AI, LiteLLM and OpenRouter spellings, and the shape of what comes back. It does not mention what happens when nothing matches or how the 200-file cap is treated, but this is solid added context.

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 dense sentences with no filler: the first states what is scanned and by which vendors/platforms, the second states matching rules and return contents. The vendor enumeration earns its space because it defines coverage boundaries. Front-loaded on the core action.

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 no output schema, the description correctly compensates by enumerating returned fields (shutdown date, days left, recommended replacement, source page, file:line). Combined with annotations and a fully described input schema, an agent has enough to call this correctly. Minor gaps remain around empty-result behavior and how the file-count limit is surfaced.

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?

There is a single parameter and schema description coverage is 100%, with the schema already explaining 'files to scan, each with its repository-relative path and full text'. The description reinforces the 'source and config files' framing but adds no new constraint or format detail beyond the schema. 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: it 'scans source and config files' for 'AI model IDs ... retired or scheduled for retirement'. That is distinguishable from catalog-style siblings such as list_model_retirements or lookup_model, since this tool operates on supplied file contents rather than looking up a single model. It stops short of explicitly naming the sibling it replaces, so it is a 4 rather than a 5.

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?

The scope of the scan (source and config files, exact matches only) implies when to reach for this tool, but there is no explicit when-to-use or when-not-to-use statement. Nothing tells the agent why it would pick this over list_model_retirements for a migration audit, or whether it is appropriate for non-code text.

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