Skip to main content
Glama

Compare a scenario's runs

compare_runs
Read-only

Compare a scenario's kept runs (up to 50, newest first): for each, the targets met, area and cost of the best solution and its settings, ranked best first (most targets met, then lowest cost, then smallest area), with why each other run ranks lower. Read-only.

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": {
      "scenario_id": "<scenario_id>"
    },
    "name": "compare_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
scenario_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the trailing 'Read-only.' adds nothing beyond structured data. The genuinely useful additions are the 50-run cap, newest-first retrieval, and the exact ranking and tie-break rules (targets met, then cost, then area), which tell the agent how results are ordered and why lower runs are explained.

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 a single front-loaded sentence with no filler; every clause (cap, ordering, ranking criteria, lower-rank explanation) carries information. The nested parentheses make it dense to parse in one pass, which keeps it from being exemplary.

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?

For a one-parameter, annotation-covered read tool with no output schema, the description is nearly self-sufficient: it says what comes back for each run (targets met, area, cost, settings) and how results are ordered. Only edge-case behavior — empty run sets, unknown scenario id, error conditions — is left unstated.

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?

There is one parameter with 0% schema description coverage, so the schema says only that scenario_id is an integer. The description implies it identifies a scenario whose runs are compared, but does not state where that id comes from (list_scenarios) or what happens with an invalid id. Partial compensation earns the baseline rather than more.

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 description opens with a specific verb+resource ('Compare a scenario's kept runs') and immediately scopes it ('up to 50, newest first'), so the operation is unambiguous. It stops short of naming a contrasting sibling such as run_scenario or list_scenarios, so an agent must infer the boundary from the word 'kept runs'.

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 only implied: 'kept runs' signals this is a post-simulation read on a scenario that already has runs. There is no explicit when-to-use vs. when-not, and no mention of what to do if a scenario has no kept runs or which sibling to call first.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources