Skip to main content
Glama

evaluate

Ask a typed model boolean, choice, or score questions about a given state, returning probabilities, selected options, or ordered-level positions in one request.

Instructions

Ask a typed evaluation model (TypeSafe Jev) questions about some state.

Jev never writes text. It returns P(yes) for boolean questions, a chosen option plus probabilities for choice questions, and a position on ordered levels for score questions. Several questions run in one request. Billed through Vercel AI Gateway (input tokens only); needs the vercel key.

Question shapes (criteria describe options or levels): {"refunded": {"type": "boolean", "instructions": "Was a refund issued?"}} {"tone": {"type": "choice", "instructions": "Tone?", "criteria": {"calm": "...", "angry": "..."}}} {"clarity": {"type": "score", "instructions": "How clear?", "criteria": ["unclear", "partly", "clear"]}}

A probability near 0.5 means uncertain, not medium. Option wording, labels and order move the result, so vary them in calibration work.

Args: state: Text, JSON object or array to evaluate. questions: Map of question name to question object (see shapes above). model_id: Gateway evaluation model id (default typesafe-ai/jev).

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": {
      "state": "<state>",
      "questions": "<questions>"
    },
    "name": "evaluate"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYes
model_idNotypesafe-ai/jev
questionsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.1

TDQS

A4/5.0
Behavior4/5

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

With zero annotations the description must carry the behavioral burden, and it does more than most: it discloses the no-text output model, that multiple questions run in one request, the billing basis (input tokens only) and the required Vercel key. It stops short of describing latency, failure modes, or cost magnitude, but the essentials for a safe call are present.

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?

It is front-loaded with the core behavior and the pricing/auth facts before examples, and every sentence carries information. The Args block is slightly redundant with the prose above it, but since the schema has no field descriptions it earns its place; minor tightening only.

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?

Given a three-parameter tool with nested question objects, no annotations and no schema descriptions, the definition covers the input contract, billing model, and output semantics thoroughly. An output schema exists so return-value detail is optional and its inclusion is a bonus; only error/permission behavior is left implicit.

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 must fully compensate, and it does: `state` is defined by accepted types (text, JSON object or array), `questions` is illustrated with three concrete shapes including type, instructions and criteria, and `model_id` is identified as the gateway model id with its default. The nested object semantics that the raw schema leaves opaque are fully explained here.

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 opening sentence names a specific verb and resource (ask a typed evaluation model questions about state) and immediately clarifies the distinctive output contract: 'Jev never writes text' and instead returns probabilities, options, or level positions. That makes the tool's character clear enough to separate it from generic LLM siblings, though it never names or points at an alternative like `ask` or `judge`.

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: the question-shape examples show the tool is for boolean/choice/score classification, and 'Jev never writes text' hints that free-text generation belongs elsewhere. The calibration note ('vary option wording in calibration work') is genuine guidance, but there is no explicit when-not-to-use rule or named alternative for open-ended questions.

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