Skip to main content
Glama

update_evaluator

Rename an Evaluator, save updated Python source as a new version, or do both while preserving past run versions; validate code first and check metric group weights after changes.

Instructions

Renames an Evaluator, saves new source as a new version, or both. Send only what changes.

New source adds a version; the Evaluator's Metric Groups judge with the newest version from the next run on, and past runs keep the version they used. Validate the new code with try_evaluator first. Source the Evaluator already had in its history adds no version, so reverting is safe. hub-api rejects code that changes what an existing Metric measures (its shape, grain or range, a narrowed vocabulary), and a changed declaration can make a Metric Group weight unusable: check weights with list_metric_groups afterwards. Read the current source with get_evaluator. :param evaluator_id: The Evaluator's id. :param name: The new name; must not be taken. :param python_code: The new Python source. :returns: The Evaluator, or an error message.

Input Schema

NameRequiredDescriptionDefault
nameNo
python_codeNo
evaluator_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.44

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it explains versioning semantics (new source adds a version, judges use the newest from the next run, past runs keep their version), that resubmitting historical source creates no version so reverting is safe, and the server-side rejection rules around changed Metric shape/grain/range/vocabulary. This is exactly the mutation-safety context an agent needs beforehand.

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 description is dense and front-loaded with the operation summary before the versioning consequences, and every sentence carries operational weight. It is on the long side, and the closing 'Read the current source with get_evaluator' could have been folded into the earlier validation guidance, but there is no filler.

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 three-parameter mutation tool with no annotations and no output schema, it covers behavior, preconditions, postconditions, and return value ('The Evaluator, or an error message'). Nothing an agent needs to call this correctly is missing.

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 description coverage is 0%, so the description must compensate, and it does document all three parameters plus a constraint absent from the schema ('name ... must not be taken'). The python_code gloss stays at 'The new Python source' without format or content expectations, which is the one remaining gap.

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

Purpose5/5

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

The opening sentence names the resource (an Evaluator) and the exact operations (rename, save new source version, or both), and 'Send only what changes' makes it explicit that this is a partial update rather than a full replace. An agent can distinguish it from create_evaluator or run_evaluator without inspecting the schema.

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

Usage Guidelines5/5

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

It names concrete prerequisites and follow-ups with sibling tools: validate new code with try_evaluator first, read current source with get_evaluator, and re-check weights via list_metric_groups afterwards. It also states the failure condition (a changed declaration can break a Metric Group weight), which tells the agent when not to proceed blindly.

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