Skip to main content
Glama

OptimToken: AI and Compute Economics

Recommend an LLM Model

recommend-llm-model
Read-onlyIdempotent

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
optimizationAssumptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed1 schema field changed
    • addedOutput schema / properties / optimizationAssumption
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "batchEligible": {
      +      "type": "boolean"
      +    },
      +    "cacheHitRate": {
      +      "type": "number"
      +    },
      +    "summary": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "cacheHitRate",
      +    "batchEligible",
      +    "summary"
      +  ],
      +  "type": "object"
      +}
  3. 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"
      +]
  4. Changed1 schema field changed
    • addedOutput schema / properties / provenance / properties / hostPricingAsOf
      Added value: +{
      +  "type": "string"
      +}
  5. 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"
      +}
  6. 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"
      +]
  7. 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."
  8. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses non-obvious behavior: over-constrained queries return empty `recommendations` with `nearMisses` naming the failed constraint, retired models are never recommended but counted in `retiredExcludedCount` and named in `retiredNotRecommended`, and the ranking is server-side and final. These are exactly the edge cases an agent would otherwise be surprised by.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening is well front-loaded, but the return payload is stated twice — "each with a per-constraint satisfied/violated breakdown as the evidence" and again later as "a per-constraint satisfied/violated breakdown" — and the field enumeration duplicates the output schema. Editing out that repetition would tighten the definition with no loss of information.

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 single-purpose ranking tool with six optional filters and an output schema, the description covers what an agent needs: required vs optional inputs, degraded/over-constrained outcomes, exclusion rules, and result finality. Nothing essential to correct invocation or result interpretation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3; the description adds a small amount by framing the four constraint families (budget, minimum ELO, capability, self-hostability) and by making clear that constraints are optional and only one workload is scored per call. It does not add syntax or format detail beyond the schema, which is appropriate.

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 uses a concrete verb and resource — "Returns a ranked top 3 for one workload under optional constraints" — and immediately distinguishes itself from the browsing sibling (compare-llm-models). An agent can tell what it produces and what it does not produce (a table) 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 an explicit when-to-use cue ("when the user wants an ANSWER rather than a table") with a concrete example query, plus an explicit routing rule to the alternative: "To browse or filter the whole catalogue instead, use compare-llm-models." Both the selection condition and the exclusion are stated.

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.