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

deep-agentic-core-mcp

Official

Routing Decision

lens.routing_decide
Read-only

Explains model routing decisions from a saved ModelFit report and routing policy, returning selected targets, fallback chain, confidence, rejections, and evidence hashes without model calls or writes.

Instructions

Explain a model route from a saved ModelFit report and routing policy. Returns selected targets, fallback chain, confidence, constraint rejections and evidence/policy hashes. Read-only in every mode: no model calls, callbacks, audit-file writes or approval execution. Needs agenticlens>=0.10.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": {
      "report": "<report>",
      "request": "<request>"
    },
    "name": "lens.routing_decide"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyNoLens RoutingPolicy; default advisory.
reportYesModelFit report JSON.
requestYes
session_idNoSession to read/write shared state under. Defaults to 'default'.

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/openWorldHint/destructiveHint, but the description goes further by spelling out what read-only means here (no model calls, callbacks, audit-file writes or approval execution) and by naming the returned fields (fallback chain, confidence, evidence/policy hashes). That is real added context beyond the structured fields. The only gap is no mention of failure modes or behavior when the report and policy disagree.

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?

Three dense sentences in a logical order: what it does, what it returns, what it will not do. No filler, though the version requirement in the final sentence is somewhat tacked on rather than grouped with prerequisites.

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 compensates by enumerating the return fields, and it discloses the safety profile and dependency version. For a nested-object tool with two required parameters, the only shortfall is the unexplained semantics of request_id/category_id and session state scope.

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 75%, so the schema already documents policy, report and session_id. The description confirms the report/policy pairing but adds nothing about request_id, category_id, or how the nested request object affects routing. Baseline 3 fits since the schema carries most of the load.

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?

States a specific verb and resource ('Explain a model route') plus the inputs it operates on ('a saved ModelFit report and routing policy'), and enumerates the outputs. That is enough for an agent to tell it apart from compute-oriented siblings like lens.modelfit_recommend, though no sibling is named explicitly.

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?

It implies the prerequisite context (requires an existing ModelFit report and a routing policy) and notes the policy defaults to advisory, but never says when to prefer this over lens.modelfit_recommend or lens.score_analysis, nor any exclusion conditions. Usage is inferable rather than stated.

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