Skip to main content
Glama

Evaluate with Jev

jev.evaluate
Read-only

Evaluates a state by answering multiple typed yes/no, choice, or score questions in parallel, returning calibrated probabilities and confidence for each judgment.

Instructions

Ask TypeSafe Jev typed questions about a piece of state and get calibrated probabilities back.

Send the content to judge as state (a string, or a JSON object/array for structured data) and a map of questions keyed by IDs you choose. All questions are answered in parallel against the same state, in one request, and cannot see each other's answers.

Question types:

  • noul: a yes/no question. Returns noul, the probability of yes (0..1). Optional criteria { true, false } describes what yes and no mean.

  • choice: pick one option. criteria maps option names to descriptions (or null), up to 255 options. Returns choice, probabilities per option and confidence.

  • score: rate along ordered levels. criteria is an array of 2-10 level descriptions, lowest first. Returns score (a probability-weighted level index from 0, may fall between levels), legend, probabilities and confidence.

Question IDs are not shown to the model, so instructions must state the full question. Refer to parts of structured state with backticked paths such as ticket.messages[0].text. Ask one narrow judgment per question. model is optional and defaults to the server's configured model.

images (optional, up to 4 PNG, JPEG or WebP, 4 MiB each) are judged together with state; each is either { "path": "" } for a local file inside a directory the server allows (JEV_IMAGE_DIRS), or { "data": "data:image/png;base64,..." }. Only image-capable models accept images (for example cloudflare/clef or cloudflare/clef-flash through OpenRouter); other models reject them. Never put images inside state.

provider is optional; this server offers only "typesafe".

Input Schema

NameRequiredDescriptionDefault
modelNo
stateYes
imagesNo
providerNo
questionsYes

Output Schema

NameRequiredDescriptionDefault
modelYesThe model that answered, usually a versioned ID
usageYes
answersYesOne answer per question ID
providerNoThe provider that answered

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond readOnlyHint/openWorldHint: questions run in parallel against the same state and cannot see each other's answers, provider is restricted to "typesafe", and images must live under JEV_IMAGE_DIRS or be inline data URLs with a 4 MiB cap and image-capable-model requirement. Those are exactly the behavioral facts an agent would otherwise discover by failing.

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-loads the core purpose, then uses a bulleted question-type block, then tacks on optional concerns (images, provider). Dense and mostly waste-free, though the question-type bullets partially duplicate what the output schema already declares.

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 5-parameter tool with deeply nested question objects, the description covers the state/questions interaction, per-type criteria contracts, model/image constraints, and even summarizes return fields despite an output schema existing. An agent has everything needed to construct a valid call on the first try.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full load and does so thoroughly: `state` as string or JSON, `questions` as an ID-keyed map with the three variants and their criteria shapes and limits (255 options, 2-10 levels), `images` formats and sources, `model` default, and `provider` restriction. Little about the parameters is left ambiguous.

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: ask typed questions about a piece of state, get calibrated probabilities back. That is far more precise than a name restatement. It does not, however, differentiate itself from siblings jev.noul, jev.choice, jev.score or jev.evaluate_batch, so an agent must infer that this is the multi-question, multi-type entry point.

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

Usage Guidelines4/5

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

Offers concrete operating guidance: one narrow judgment per question, question IDs are invisible to the model so `instructions` must be self-contained, backticked paths for structured state, never place images inside `state`, and images require an image-capable model. It stops short of saying when to prefer this over jev.noul / jev.choice / jev.score / jev.evaluate_batch.

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