Skip to main content
Glama

Models and prices

models
Read-only

Returns the models Leanfare can send work to now: each one's id, name, provider, price per 1M input and output tokens (or free) and Arena rating, plus ticked models that cannot take work now with the reason (retired, no credit, free…

Instructions

Returns the models Leanfare can send work to now: each one's id, name, provider, price per 1M input and output tokens (or free) and Arena rating, plus ticked models that cannot take work now with the reason (retired, no credit, free allowance used). Use it to name a model in ask or estimate, or to tell the user what Leanfare can use. Not needed for plan or delegate, which pick models themselves; for models on this computer and downloads, use local_model. Read only: calls no model and changes nothing (the user ticks models in Leanfare's Settings).

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": "models"
  }
}

Input Schema

NameRequiredDescriptionDefault
providerNoOnly this provider's models, by its id: for example openai, anthropic, google, deepseek, openrouter, ollama. Leave it out for every provider.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.5
    • changedInput schema / properties / provider / description
      Previous value: -"Only this provider, for example openai, anthropic, google, openrouter."New value: +"Only this provider's models, by its id: for example openai, anthropic, google, deepseek, openrouter, ollama. Leave it out for every provider."
  2. First observedv0.15.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description reinforces this with "Read only: calls no model and changes nothing" — useful confirmation on a tool whose name could be mistaken for something that instantiates models. It adds real context an agent would not otherwise have: that tick state is owned by the user in Settings, and that unavailable models are returned with the reason categories (retired, no credit, free allowance used), which is genuinely beyond the annotation set. It stops short of noting any caching or freshness characteristics, so it is not fully exhaustive.

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?

Content is front-loaded: the return payload leads, then usage, then exclusions, then the read-only assurance. Three dense sentences with no filler, though the return-value enumeration is long enough that a shorter grouped phrasing ("id, name, provider, pricing, rating") would have read faster.

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?

There is no output schema, so the description must carry the return contract — and it does, naming every field and explaining the second class of results (ticked models blocked from work, with reasons). For a zero-required-parameter listing tool with a single documented filter, nothing an agent needs in order to call or interpret it is missing.

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% and the single provider parameter already documents itself with concrete id examples (openai, anthropic, google, deepseek, openrouter, ollama) plus the omit-for-all behavior. The description never mentions the provider filter or adds any semantics beyond it, so the schema is doing all the work here and baseline 3 applies.

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?

The description opens with a specific verb and resource ("Returns the models Leanfare can send work to now") and enumerates the exact fields returned: id, name, provider, per-1M token prices, Arena rating, plus ticked-but-unavailable models with reasons. It explicitly separates itself from local_model ("for models on this computer and downloads, use local_model"), so an agent can distinguish it from the nearest sibling without opening any schema.

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?

It gives positive routing ("Use it to name a model in ask or estimate, or to tell the user what Leanfare can use") and negative exclusions ("Not needed for plan or delegate, which pick models themselves"), naming the specific siblings that supersede it. Both when-to-use and when-not-to-use are stated, with the alternative for local/on-device models supplied.

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