Skip to main content
Glama
Hardik-Singh

Invariance MCP

Official
by Hardik-Singh

cortex_run_eval

Run an evaluation to check if a workflow, run, or case meets your criteria like SLA or policy compliance. Provide target, criteria, and evidence to get a pass/fail job result.

Instructions

Convenience wrapper around cortex_run_job for job_kind="workflow_eval": checks whether a run/case/workflow met its criteria (e.g. SLA, policy compliance, action-item ownership). Returns the same job shape as cortex_run_job.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
optionsNoJSON object of execution options. Keys: use_llm (boolean), create_surface_item (boolean), timeout_ms (number), dedupe_key (string). Example: {"use_llm":true,"create_surface_item":false}
criteriaNoJSON object describing what the eval is optimizing for. Free-form per job_kind, but typical keys: optimize_for (string[]), constraints (string[]), pass_threshold (number 0..1). Example: {"optimize_for":["resolution_time"],"constraints":["do_not_expose_private_evidence"]}
questionNo
input_refsNoJSON object of evidence references the runner may use. Optional keys: run_ids (string[]), case_ids (string[]), node_ids (string[]), chunk_ids (string[]), surface_item_ids (string[]). The platform ACL-filters these before prompt construction; refs the caller cannot access are dropped or the job is denied. Example: {"run_ids":["run_1"],"case_ids":["case_123"]}
project_idYes
target_refYes
target_typeYes
input_payloadNoJSON object for inline target data. Required when target_type="external" (the target isn't a row in our DB). Example: {"workflow_name":"refund approval","steps":[]}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already signal readOnlyHint=false (mutation possible) and openWorldHint=true, so no contradiction with the description. The description adds the useful fact that it returns the same job shape as cortex_run_job. However, it does not disclose actual side effects — running a workflow_eval may trigger LLM calls or create surface items (evidenced by options.create_surface_item) — which matters for a non-read-only operation.

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?

Two dense sentences, front-loaded with the core purpose and the parent-tool relationship. No filler. It stops just short of 5 because it references 'same job shape' rather than describing it, keeping some semantic debt in the reader.

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 8-parameter tool with no output schema and 50% schema coverage, the description leaves too much implicit: what the returned job shape actually contains, what side effects occur, and how the criteria/target parameters fit together. Since it defers entirely to cortex_run_job's behavior without describing it, an agent cannot fully reason about invocation or results.

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

Parameters2/5

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

Schema description coverage is 50% (options, criteria, input_refs, input_payload are documented; project_id, target_ref, target_type, question are not). The description adds zero parameter-level meaning, so it does not compensate for the undocumented half. For a wrapper tool it would help to explain how target_type, target_ref, and criteria interrelate, but none of that is present.

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: it wraps cortex_run_job for job_kind='workflow_eval' to check whether a run/case/workflow met its criteria (SLA, policy compliance, action-item ownership). It names the parent sibling explicitly, which differentiates it from cortex_run_job. However, it does not distinguish against other cortex_* siblings like cortex_launch or cortex_ask, so differentiation is partial.

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?

Implied usage is reasonably clear: use it to check whether a target met eval criteria, and it identifies cortex_run_job as the underlying tool. But it never states when to call cortex_run_job directly versus this wrapper, and offers no explicit exclusions or alternatives for the eval scenario.

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