Skip to main content
Glama

Recommend a node and model

recommend
Read-onlyIdempotent

Recommend the best AI node + model for a task, with an enforceable cost estimate and human-readable reasons. Use this first when you know the task but not the model. Pass task (sent to this registry, which extracts features and discards the text) or features already extracted on your side with extractFeatures from @opennodes/core, which keeps the prompt private. Returns ranked candidates with score components, a cost estimate pinned to the node's card revision, an optional cheaper two-step scenario, and MCP tool categories the task likely needs. To browse instead, use search_offerings; to price a specific chain, use estimate.

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

Input Schema

NameRequiredDescriptionDefault
taskNoThe task description or the prompt itself. Sent to the registry for feature extraction; use `features` to keep it private. Give this or `features`.
policyNoOptional constraints and preferences for the recommendation.
featuresNoFeatures from extractFeatures(prompt) in @opennodes/core: task class, size, language and needs, no prompt text. Give this or `task`.
est_output_tokensNoExpected answer length in tokens, if known. Improves the cost estimate; otherwise inferred from the task.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / policy / properties / jurisdiction / description
      Previous value: -"Only operators in this jurisdiction: \"eea\" or ISO country codes (\"DE,FI\"). Local and LAN models always qualify."New value: +"Only operators that declare a country in this jurisdiction (inferred by the registry for imported listings): \"eea\" or ISO country codes (\"DE,FI\"). A declaration, not proof of where requests are processed. Local and LAN models always qualify."
    • changedInput schema / properties / policy / properties / sensitive / description
      Previous value: -"true when the task carries personal data or is otherwise sensitive: only the trusted pool qualifies (trusted jurisdictions, declared lineage without CN, tier verified or higher, no retention, no training on inputs). Models on this machine or LAN qualify on jurisdiction, tier and data policy, but not on lineage. If nothing qualifies, recommendations is empty: do not fall back to the open pool."New value: +"true when the task carries personal data or is otherwise sensitive: only the trusted pool qualifies (an operator declaring a trusted jurisdiction with a passing server-location check, declared lineage without CN, tier verified or higher, a declared data policy of no retention and no training on inputs). Models on this machine or LAN qualify on jurisdiction, tier and data policy, but not on lineage. If nothing qualifies, recommendations is empty: do not fall back to the open pool."
    • addedInput schema / properties / policy / properties / server_check
      Added value: +{
      +  "description": "\"passed\": only offerings whose server front the registry located in the declared country or region (behind a CDN: every declared origin address). A tripwire, not proof. Each recommendation carries server_check. Local and LAN models always qualify.",
      +  "enum": [
      +    "passed",
      +    "any"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / policy / properties / sensitive
      Added value: +{
      +  "description": "true when the task carries personal data or is otherwise sensitive: only the trusted pool qualifies (trusted jurisdictions, declared lineage without CN, tier verified or higher, no retention, no training on inputs). Models on this machine or LAN qualify on jurisdiction, tier and data policy, but not on lineage. If nothing qualifies, recommendations is empty: do not fall back to the open pool.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / policy / properties / local_memory_gb / description
      Previous value: -"RAM/VRAM this machine can give a local model, in GB. Local models that cannot fit are left out, and the largest size that fits is picked (4-bit estimate). The local stdio server fills this from the machine when it is not given."New value: +"RAM/VRAM this machine can give a local model, in GB. Local models that cannot fit are left out, and the largest size that fits is picked (4-bit estimate). The local stdio server fills this from the machine when it is not given; otherwise catalogue models are scored for a typical 16 GB laptop, and none is picked."
  4. Changed1 schema field changed
    • changedInput schema / properties / policy / properties / region / description
      Previous value: -"Required data region, e.g. \"CA\" or \"EU\". Offerings pinned to, or served from, other regions are excluded."New value: +"Required data region, e.g. \"CA\" or \"EU\" (EU and EEA include their member states). Offerings pinned to, or served from, other regions are excluded, and so are hosted offerings with no known location; models on this machine or LAN always qualify."
  5. Changed1 schema field changed
    • changedInput schema / properties / policy / properties / region / description
      Previous value: -"Required data region, e.g. \"eu\". Offerings pinned to other regions are excluded."New value: +"Required data region, e.g. \"CA\" or \"EU\". Offerings pinned to, or served from, other regions are excluded."
  6. Changed1 schema field changed
    • addedInput schema / properties / policy / properties / local_memory_gb
      Added value: +{
      +  "description": "RAM/VRAM this machine can give a local model, in GB. Local models that cannot fit are left out, and the largest size that fits is picked (4-bit estimate). The local stdio server fills this from the machine when it is not given.",
      +  "minimum": 1,
      +  "type": "number"
      +}
  7. Changed1 schema field changed
    • addedInput schema / properties / policy / properties / jurisdiction
      Added value: +{
      +  "description": "Only operators in this jurisdiction: \"eea\" or ISO country codes (\"DE,FI\"). Local and LAN models always qualify.",
      +  "type": "string"
      +}
  8. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/openWorld, and the description adds genuinely non-obvious behavior: task text is sent to the registry, features are extracted and the text discarded, and results include a cost estimate pinned to the node's card revision plus an optional cheaper two-step scenario. It stops short of covering failure/empty-result handling and any rate or auth constraints, which keeps it off 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 the verb and resource, then routing, then inputs, then returns — a logical order with no filler. It is a single dense block with no structural breaks, which makes it slightly harder to scan than a short list would be.

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?

With no output schema, the description does the necessary work by enumerating what comes back: ranked candidates, score components, pinned cost estimate, two-step scenario, suggested tool categories. Input privacy handling is covered; edge cases such as an empty recommendation set for strict `sensitive` policies are left to the schema text rather than the description.

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 nested `policy` object is documented in exhaustive detail, so the schema carries the burden. The description reinforces the privacy consequence of choosing `task` over `features`, but adds no syntax or defaults beyond what the schema already states — 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?

States a specific verb and resource ('Recommend the best AI node + model for a task') and immediately distinguishes itself from siblings by naming search_offerings for browsing and estimate for pricing a known chain. The added qualifiers (cost estimate, human-readable reasons) make the output shape predictable at a glance.

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?

Explicit routing guidance: 'Use this first when you know the task but not the model', plus the inverse cases — search_offerings to browse, estimate to price a specific chain. It also gives the decision rule between the two input modes (pass `task` for server-side extraction vs `features` to keep the prompt private).

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.