Skip to main content
Glama

jev_confidence_gate

Compare a synthesized choice’s confidence to a threshold and return the choice only when it meets the threshold; otherwise return a fallback label for review.

Instructions

Return choice when confidence >= threshold, else below.

Local deterministic routing over a synthesized choice answer — no API call. provider is validated against the registry; the gate is provider-agnostic.

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": {
      "choice": "<choice>",
      "confidence": "<confidence>",
      "threshold": "<threshold>"
    },
    "name": "jev_confidence_gate"
  }
}

Input Schema

NameRequiredDescriptionDefault
belowNoreview
choiceYes
providerNojev
thresholdYes
confidenceYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.2

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose useful traits: local execution, determinism, no API call, and that provider is validated against a registry while the gate itself is provider-agnostic. It omits what happens on an unregistered provider (error vs fallback) and does not explain what the `below` value contributes to the output, leaving meaningful behavioral gaps.

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?

The rule is front-loaded in the first sentence and the supporting facts (local, no API call, provider-agnostic) follow compactly with no filler. The reStructuredText double-backtick markup is slightly noisy but does not obstruct reading.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, and the core conditional logic is fully specified. However, for a 5-parameter tool with entirely undocumented schema fields, the description leaves `below` unexplained and says nothing about provider validation failure, so it is adequate but not complete.

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 0%, so the description must compensate, and it does explain the core semantics: the comparison of confidence against threshold and the resulting choice/bypass branch. It also clarifies that provider only affects registry validation, not gate logic. The `below` parameter (default 'review') is left undefined, which keeps it short of a 5.

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 states a concrete conditional rule ('Return choice when confidence >= threshold, else below') and names the resource as a confidence gate, so the operation is unambiguous. It also signals this is local routing rather than an API call, which separates it from API-backed siblings like jev_ask, 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?

Usage is implied rather than stated: 'routing over a synthesized choice answer' tells the agent this consumes an already-produced answer, and 'no API call' implies it is the cheap deterministic path. There is no explicit when-to-use versus jev_tiered_gate or jev_evaluate, and no conditions that would make this the wrong choice.

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