Skip to main content
Glama

Scan a project for retiring model IDs

scan_project
Read-onlyIdempotent

Scan project folders for retired, retiring, or deprecated AI model IDs in code and config files, with file and line locations, to audit repositories or check before release.

Instructions

Scan a project folder for OpenAI, Anthropic, Google, Mistral, xAI, Cohere, DeepSeek and Groq model IDs (and Amazon Bedrock, Vertex AI and Azure) in code and config files and report the ones that are retired, retiring soon, deprecated or being re-routed, with file and line, most urgent first. Use it to audit a repository or before a release. For IDs you already know use check_models; for a time-based list use upcoming_retirements. Read-only: reads files on this machine and never changes them. Scans subfolders recursively, skips .git, node_modules, vendor, dist, build and similar folders, and files over 1 MB. Mentions in .md and .txt files are marked in_docs. Returns at most 200 findings (truncated: true when cut). Fails with an error if the path does not exist.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "scan_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoAbsolute path of the folder to scan. Defaults to the server's working directory, which may not be the user's project, so pass it explicitly.
include_okNoAlso list models with no retirement announced (status active or unknown). Default false.

Output Schema

NameRequiredDescriptionDefault
flaggedYes
scannedYes
findingsYes
all_datesNo
next_stepNoPresent when a model has to move: how to test prompts on the replacement first
truncatedNo
registry_sourceNolive = aidriftline.com/models.json; bundled = the copy shipped in the package (used offline)
model_referencesNoAll model ID mentions found, before filtering
registry_checkedNoDate the registry was last checked against the provider pages

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.11.7
    • addedOutput schema / properties / findings / items / properties / migration
      Added value: +{
      +  "description": "Whether moving to the replacement is just a new model name (drop_in true) or needs more: change = rename | settings | params | api | re-embed | choose, with a note and the provider's guide",
      +  "properties": {
      +    "change": {
      +      "type": "string"
      +    },
      +    "drop_in": {
      +      "type": "boolean"
      +    },
      +    "guide": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "note": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / findings / items / properties / note
      Added value: +{
      +  "description": "A fact from the provider's page beyond date and replacement, e.g. access already limited to existing users, or routed calls billed at the replacement's rates",
      +  "type": "string"
      +}
    • addedOutput schema / properties / findings / items / properties / previous_replacement
      Added value: +{
      +  "description": "The replacement the provider recommended before it changed its advice",
      +  "type": "string"
      +}
    • addedOutput schema / properties / findings / items / properties / replacement_alt
      Added value: +{
      +  "description": "A second replacement the provider names (\"X or Y\"); which one fits depends on how the model is used",
      +  "type": "string"
      +}
    • addedOutput schema / properties / findings / items / properties / replacement_changed
      Added value: +{
      +  "description": "YYYY-MM-DD: when the change was seen on the provider's page",
      +  "type": "string"
      +}
    • addedOutput schema / properties / findings / items / properties / replacement_note
      Added value: +{
      +  "description": "Extra instruction the provider gives with the replacement (e.g. a setting or API to use). Without it, switching the model name alone is not enough",
      +  "type": "string"
      +}
    • addedOutput schema / properties / findings / items / properties / under_review
      Added value: +{
      +  "description": "Present when the provider's page no longer matches this entry and Driftline is updating it: since (date), what (date, replacement or listing), page (source to check)",
      +  "properties": {
      +    "page": {
      +      "type": "string"
      +    },
      +    "since": {
      +      "type": "string"
      +    },
      +    "what": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed4 schema fields changedv0.1.1
    • addedInput schema / properties / include_ok / default
      Added value: +false
    • changedInput schema / properties / include_ok / description
      Previous value: -"Also list models with no retirement announced (default false)"New value: +"Also list models with no retirement announced (status active or unknown). Default false."
    • changedInput schema / properties / path / description
      Previous value: -"Folder to scan (default: the server's current directory)"New value: +"Absolute path of the folder to scan. Defaults to the server's working directory, which may not be the user's project, so pass it explicitly."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "all_dates": {
      +      "type": "string"
      +    },
      +    "findings": {
      +      "items": {
      +        "properties": {
      +          "advice": {
      +            "description": "One plain sentence to pass on to the user",
      +            "type": "string"
      +          },
      +          "alias_of": {
      +            "type": "string"
      +          },
      +          "days_left": {
      +            "description": "Days until the date; 0 or negative when it has passed",
      +            "type": "number"
      +          },
      +          "file": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "description": "The ID as given",
      +            "type": "string"
      +          },
      +          "in_docs": {
      +            "type": "boolean"
      +          },
      +          "line": {
      +            "type": "number"
      +          },
      +          "normalized": {
      +            "description": "The ID after removing provider prefixes such as models/ or openai/",
      +            "type": "string"
      +          },
      +          "page": {
      +            "description": "aidriftline.com page with the source for this date",
      +            "type": "string"
      +          },
      +          "provider": {
      +            "type": "string"
      +          },
      +          "qualifier": {
      +            "description": "exact date, earliest possible shutdown (Google), or not before this date (Anthropic)",
      +            "enum": [
      +              "exact",
      +              "earliest",
      +              "not-before"
      +            ],
      +            "type": "string"
      +          },
      +          "replacement": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "retires": {
      +            "description": "YYYY-MM-DD",
      +            "type": "string"
      +          },
      +          "routes": {
      +            "description": "true: after the date the provider answers with the replacement model instead of failing",
      +            "type": "boolean"
      +          },
      +          "status": {
      +            "description": "retired = calls fail (or are re-routed) now; at-risk = retires within 90 days; deprecated = retirement announced, further out; active = announced as active; unknown = no retirement published",
      +            "enum": [
      +              "retired",
      +              "at-risk",
      +              "deprecated",
      +              "active",
      +              "unknown"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "status",
      +          "advice"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "flagged": {
      +      "type": "number"
      +    },
      +    "model_references": {
      +      "description": "All model ID mentions found, before filtering",
      +      "type": "number"
      +    },
      +    "next_step": {
      +      "description": "Present when a model has to move: how to test prompts on the replacement first",
      +      "type": "string"
      +    },
      +    "registry_checked": {
      +      "description": "Date the registry was last checked against the provider pages",
      +      "type": "string"
      +    },
      +    "registry_source": {
      +      "description": "live = aidriftline.com/models.json; bundled = the copy shipped in the package (used offline)",
      +      "enum": [
      +        "live",
      +        "bundled"
      +      ],
      +      "type": "string"
      +    },
      +    "scanned": {
      +      "type": "string"
      +    },
      +    "truncated": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "scanned",
      +    "flagged",
      +    "findings"
      +  ],
      +  "type": "object"
      +}
  3. First observedv0.1.0

TDQS

A4.3/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 openWorld, but the description still adds real behavioral detail beyond them: recursive traversal, skipped folders (.git, node_modules, vendor, dist, build), the 1 MB file limit, the in_docs marking for .md/.txt mentions, the 200-finding cap with truncated:true, and the error on a nonexistent path. The one gap is that it never mentions include_ok or what the result looks like when nothing is found, so it stops short of a 5.

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?

Front-loaded with purpose and routing before the operational details, and nearly every sentence carries load. It is somewhat dense and run-on, with the long provider enumeration and parenthetical cloud list adding bulk, but no sentence is genuinely 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, so return values needn't be explained, yet the description still covers the urgent-first ordering, the truncation flag, and error behavior. What's missing is coverage of the include_ok parameter and its effect on results, a small but real gap for a two-parameter audit tool.

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 the baseline is 3. The description adds nothing about include_ok (the option to surface active/unknown models) and only restates the path concept implicitly by describing folder scanning, so the schema is doing all the parameter work.

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 ("Scan a project folder") plus the exact resource sought (model IDs across named providers, in code and config files) and the output shape (retired/retiring/deprecated/re-routed, with file and line, most urgent first). The provider list and status taxonomy make it clearly distinguishable from check_models and upcoming_retirements.

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

Usage Guidelines5/5

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

Gives explicit use contexts ("audit a repository or before a release") and names both alternatives with the selecting condition: check_models for known IDs, upcoming_retirements for a time-based list. An agent can route between all three without opening any schema.

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

Deploy Server

Other Tools