Skip to main content
Glama

OptimToken: AI and Compute Economics

Recommend an LLM Model

recommend-llm-model
Read-only

Pick a model. Returns a ranked top 3 for one workload under optional constraints, each with a per-constraint satisfied/violated breakdown as the evidence. Use this when the user wants an ANSWER rather than a table — 'what should I use for support tickets under $500 a month'. To browse or filter the whole catalogue instead, use compare-llm-models. Constraints: (monthly budget, minimum ELO, required capability, self-hostability). Returns a top 3 as structured facts — efficiency rank, ELO, list and optimized cost, FinOps flag, volatility, and a per-constraint satisfied/violated breakdown. When nothing satisfies every constraint the query is reported as over-constrained, recommendations is empty, and the nearest misses are returned in nearMisses instead, each carrying the constraint it failed and flagged as a miss in the text. A model whose maker has announced its retirement is never recommended: it is left out, counted in retiredExcludedCount, and the ones that would have ranked are named in retiredNotRecommended with the notice. The ranking is computed server-side and is final.

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": {
      "useCasePreset": "<useCasePreset>"
    },
    "name": "recommend-llm-model"
  }
}

Input Schema

NameRequiredDescriptionDefault
minEloNoMinimum Chatbot Arena ELO score. Typical range 1000-1500; ~1400 is roughly frontier-class. Models with no ELO score never satisfy this.
opennessNoRequire a self-hostability bucket, derived from the licence: Open source, Open weights, Proprietary, Unknown
volumePresetNoMonthly request volume: 10k, 100k, or 1m. Default: 100k
useCasePresetYesWorkload shape, which sets tokens per request: supportTicket (1.5k in / 500 out), knowledgeQA (2k / 800), meetingSummary (10k / 1.2k, batch-eligible), marketingContent (2.5k / 1.8k), codingTask (3k / 2k), invoiceProcessing (1.5k / 600, batch-eligible), callSummary (2k / 700, batch-eligible), agentWorkflow (6k / 3k).
maxMonthlyBudgetNoMaximum monthly budget in USD at the given volume. Tested against the LIST-price monthly cost, not the caching/batch-optimized cost.
requiredCapabilityNoCapability the model must have: Text, Vision, Reasoning, Agents, Image Gen, Audio. There is no Code capability: for coding, pass useCasePreset codingTask.

Output Schema

NameRequiredDescriptionDefault
errorNo
sourceYes
volumeYes
eloAsOfYes
dataAsOfNo
nearMissesYes
provenanceNo
catalogSizeYes
rankedCountYes
volumeLabelYes
useCaseLabelYes
candidateCountYes
overConstrainedYes
recommendationsYes
roiCalculatorUrlYes
retiredExcludedCountYes
retiredNotRecommendedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedOutput schema / properties / nearMisses / items / properties / deprecation
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "replacement": {
      +      "type": "string"
      +    },
      +    "shutdown": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / provenance / properties / deprecationsVerifiedAt
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / recommendations / items / properties / deprecation
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "replacement": {
      +      "type": "string"
      +    },
      +    "shutdown": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / retiredExcludedCount
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / retiredNotRecommended
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "capabilities": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "category": {
      +        "type": "string"
      +      },
      +      "constraints": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "actual": {
      +              "type": "string"
      +            },
      +            "constraint": {
      +              "type": "string"
      +            },
      +            "required": {
      +              "type": "string"
      +            },
      +            "satisfied": {
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "constraint",
      +            "required",
      +            "actual",
      +            "satisfied"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "contextWindow": {
      +        "type": "string"
      +      },
      +      "costDeltaVsTopPct": {
      +        "type": "number"
      +      },
      +      "deprecation": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "replacement": {
      +            "type": "string"
      +          },
      +          "shutdown": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "efficiencyRank": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "efficiencyScore": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "eloScore": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "isFinOpsFriendly": {
      +        "type": "boolean"
      +      },
      +      "license": {
      +        "type": "string"
      +      },
      +      "model": {
      +        "type": "string"
      +      },
      +      "monthlyBudget": {
      +        "type": "number"
      +      },
      +      "monthlyOptimizedBudget": {
      +        "type": "number"
      +      },
      +      "openness": {
      +        "type": "string"
      +      },
      +      "outlierListing": {
      +        "type": "boolean"
      +      },
      +      "perRequest": {
      +        "type": "number"
      +      },
      +      "perRequestOptimized": {
      +        "type": "number"
      +      },
      +      "promotionalListing": {
      +        "type": "boolean"
      +      },
      +      "provider": {
      +        "type": "string"
      +      },
      +      "rank": {
      +        "type": "number"
      +      },
      +      "rankedOutOf": {
      +        "type": "number"
      +      },
      +      "savingsPct": {
      +        "type": "number"
      +      },
      +      "volatilityRisk": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "rank",
      +      "provider",
      +      "model",
      +      "category",
      +      "openness",
      +      "contextWindow",
      +      "capabilities",
      +      "eloScore",
      +      "efficiencyScore",
      +      "efficiencyRank",
      +      "rankedOutOf",
      +      "perRequest",
      +      "perRequestOptimized",
      +      "monthlyBudget",
      +      "monthlyOptimizedBudget",
      +      "savingsPct",
      +      "isFinOpsFriendly",
      +      "volatilityRisk",
      +      "costDeltaVsTopPct",
      +      "constraints"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "recommendations",
      -  "nearMisses",
      -  "overConstrained",
      -  "useCaseLabel",
      -  "volumeLabel",
      -  "volume",
      -  "candidateCount",
      -  "rankedCount",
      -  "catalogSize",
      -  "roiCalculatorUrl",
      -  "source",
      -  "eloAsOf"
      -]New value: +[
      +  "recommendations",
      +  "nearMisses",
      +  "retiredExcludedCount",
      +  "retiredNotRecommended",
      +  "overConstrained",
      +  "useCaseLabel",
      +  "volumeLabel",
      +  "volume",
      +  "candidateCount",
      +  "rankedCount",
      +  "catalogSize",
      +  "roiCalculatorUrl",
      +  "source",
      +  "eloAsOf"
      +]
  2. Changed1 schema field changed
    • addedOutput schema / properties / provenance / properties / hostPricingAsOf
      Added value: +{
      +  "type": "string"
      +}
  3. Changed4 schema fields changed
    • addedOutput schema / properties / nearMisses / items / properties / outlierListing
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / nearMisses / items / properties / promotionalListing
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / recommendations / items / properties / outlierListing
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / recommendations / items / properties / promotionalListing
      Added value: +{
      +  "type": "boolean"
      +}
  4. Changed12 schema fields changed
    • removedOutput schema / properties / nearMisses / items / properties / efficiencyRank / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / nearMisses / items / properties / efficiencyRank / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / nearMisses / items / properties / efficiencyScore / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / nearMisses / items / properties / efficiencyScore / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / nearMisses / items / properties / eloScore / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / nearMisses / items / properties / eloScore / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / recommendations / items / properties / efficiencyRank / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / recommendations / items / properties / efficiencyRank / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / recommendations / items / properties / efficiencyScore / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / recommendations / items / properties / efficiencyScore / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / recommendations / items / properties / eloScore / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / recommendations / items / properties / eloScore / type
      Added value: +[
      +  "number",
      +  "null"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / requiredCapability / description
      Previous value: -"Capability the model must have: Text, Vision, Code, Reasoning, Agents, Image Gen, Audio"New value: +"Capability the model must have: Text, Vision, Reasoning, Agents, Image Gen, Audio. There is no Code capability: for coding, pass useCasePreset codingTask."
  6. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare read-only/non-destructive/open-world; the description adds substantive behavior the annotations cannot: over-constrained queries return empty `recommendations` plus `nearMisses` flagged in text, retiring models are excluded and surfaced via `retiredExcludedCount` and `retiredNotRecommended`, and the ranking is server-side and final. These are exactly the non-obvious outcomes an agent must anticipate.

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 the routing decision, and the edge-case sentences carry real weight. It loses a point for repetition: the return payload ('top 3 ... per-constraint satisfied/violated breakdown') is described twice in near-identical terms early in the text.

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?

For a six-parameter recommendation tool with an output schema, the description covers intent, alternative routing, constraint vocabulary, and the two non-obvious failure/exclusion modes. Some return-value prose duplicates the output schema, but nothing an agent needs in order to call it correctly 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%, so the baseline is 3. The description restates the constraint set (budget, minimum ELO, required capability, self-hostability) but adds no syntax or interpretation beyond what the schema already documents, including the list-price caveat on budget.

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 and resource ('Pick a model', 'ranked top 3 for one workload under optional constraints') and immediately distinguishes itself from the sibling that browses the catalogue. An agent can tell it apart from compare-llm-models without opening either 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?

Gives an explicit selection rule ('when the user wants an ANSWER rather than a table') with a concrete example query, plus a named alternative for the opposite intent ('To browse or filter the whole catalogue instead, use compare-llm-models'). Both the when and the when-not are present.

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.