Skip to main content
Glama

evals_invoke

Run a custom evaluator on an input and output to assess result quality, optionally comparing the output against an expected output.

Instructions

Invoke a custom evaluator

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": {
      "eval_id": "<eval_id>",
      "input": "<input>",
      "output": "<output>"
    },
    "name": "evals_invoke"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesInput to evaluate
outputYesOutput to evaluate
eval_idYesEvaluator ID
expectedNoExpected output

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it says nothing about whether invocation is read-only or creates a scored record, whether it requires a pre-existing evaluator, or whether it incurs cost or rate limits. The word "invoke" hints at execution but leaves the side-effect profile completely unstated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four words with no waste, but this is under-specification rather than conciseness; a tool with three required parameters and execution semantics needs more than a bare phrase. Nothing is front-loaded because there is essentially nothing to front-load.

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

Completeness2/5

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

For an execution tool with four parameters, no annotations, and no output schema, the description should at minimum explain what the invocation returns and what preconditions exist. Neither is present, leaving an agent unable to predict the result of the call from the definition alone.

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%, with all four parameters (eval_id, input, output, expected) self-documented, so the schema already does the explanatory work. The description adds nothing about the required input/output pairing or the optional expected value used for comparison scoring, making the baseline 3 appropriate.

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

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Invoke a custom evaluator" gives a verb and a resource, so the broad intent is discernible, but it never says what invoking actually does (run a stored evaluator against an input/output pair?) or how that differs from siblings like evals_create or evals_update. An agent can guess it executes a previously defined eval rather than managing one, but the discrimination is inferred rather than stated.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says to create the evaluator first with evals_create, when scoring is appropriate, or what alternatives exist for running agents or deployments. The agent must infer the entire workflow from the tool name.

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

Deploy Server

Other Tools