Skip to main content
Glama
deep-agentic-core-mcp

deep-agentic-core-mcp

Official

ModelFit Recommend

lens.modelfit_recommend
Read-only

Recommends a model per task category from AgenticLens experiment reports under hard quality, cost, latency, safety, provider, and deployment constraints, with confidence, fallbacks, and savings.

Instructions

Recommend a model per task category from supplied AgenticLens experiment reports, under hard quality, cost, latency, safety, provider and deployment constraints that fail closed. Returns per-category recommendations with confidence, fallbacks, savings against a reference variant and quality risks, plus the full ModelFit report and task-level model matrix. No model is called and nothing is stored. Needs agenticlens>=0.9.0.

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": {
      "reports": "<reports>"
    },
    "name": "lens.modelfit_recommend"
  }
}

Input Schema

NameRequiredDescriptionDefault
configNoModelFit config: categories, defaults, weights, candidates, reference_variant_id.
reportsYesExperiment reports (agenticlens experiment run --save).
session_idNoSession to read/write shared state under. Defaults to 'default'.
variant_metadataNoVariant ID -> manifest metadata (provider, deployment, capabilities).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.14

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description usefully confirms 'No model is called and nothing is stored', which removes ambiguity about side effects. It also discloses that constraints 'fail closed' and lists what the response contains (confidence, fallbacks, savings, quality risks), plus a hard dependency on agenticlens>=0.9.0 — meaningful behavioral context beyond the annotations.

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?

Two dense sentences: the first states the action and constraint model, the second states outputs and side-effect guarantees. Front-loaded and largely waste-free, though the output enumeration is a long list that could be tightened.

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 carries the burden of describing returns and does so explicitly (per-category recommendations, confidence, fallbacks, savings, quality risks, full report, task-level matrix). The 'fail closed' phrasing hints at error behavior but doesn't say what an agent should expect when constraints are unsatisfiable.

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 description coverage is 100%, so the baseline is 3. The description does add that reports come from 'agenticlens experiment run --save' and that variant_metadata supplies provider/deployment/capabilities implicitly, but it says nothing about how config weights, defaults, or session_id state sharing behave beyond the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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: 'Recommend a model per task category from supplied AgenticLens experiment reports', and names the constraint dimensions (quality, cost, latency, safety, provider, deployment). It does not name or contrast any sibling, so an agent must infer how this differs from e.g. lens.routing_decide or lens.optimization_analyze.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied rather than stated: it requires AgenticLens experiment reports and agenticlens>=0.9.0, which tells the agent the prerequisite input. There is no explicit when-not-to-use guidance and no named alternative for adjacent decisions such as routing or optimization analysis.

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