list_openrouter_models
Fetch the live OpenRouter model catalog (price, context, reasoning) and rank models by task to choose the right one before making a request.
Instructions
List the live OpenRouter catalog — ~400 models with price per million tokens, context window, and which reasoning efforts each one accepts. FREE: the catalog endpoint needs no API key and costs nothing, so call it before ask_openrouter rather than guessing a model id. Pass task='…' to rank a provider-diverse shortlist for that job; ranking reads the catalog's own fields (reasoning support, context length, price, release date), so a model released today ranks correctly with no update here. A task mentioning cheap/fast/high-volume flips the ranking toward the cheap and free tiers; otherwise it leads with capable models. Show the user the shortlist with prices and let them choose — do not silently pick an expensive model on their behalf.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | Optional job to rank the live catalog for, such as 'debug a large Rust repository' or 'cheap high-volume summarizing'. Ranking uses the catalog's own data (reasoning support, context length, price, release date) rather than a hand-maintained list of model families. | |
| limit | No | Maximum task-matched models to offer. | |
| refresh | No | Fetch the live OpenRouter catalog (no auth needed). When false, only report the effort choices (no network). | |
| interactive | No | When a task is supplied, open a native model + effort picker if the MCP client supports form elicitation; otherwise return picker JSON. |