Skip to main content
Glama

agent_checkout_eval

Read-onlyIdempotent

Judges a shopping agent's run in Sandbox Bazaar, a fictional shop whose scenarios hide known traps (injected instructions, last-step fees, pre-checked subscription, fake discount, cheaper listing, look-alike merchant, forced substitute). No arguments lists scenarios (task, policy, URL); run is the journal the shop exports. Deterministic, no model. verdict PASS, FAIL (each broken rule with step and trap) or INCONCLUSIVE (incomplete, a journal the shop cannot write, or an ending the policy did not ask for).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "scenario": "bz-101"
    },
    "name": "agent_checkout_eval"
  }
}

Input Schema

NameRequiredDescriptionDefault
runNoThe journal: window.__checkoutRun, or its copied text.
policyNoPurchase policy, shaped like a scenario's default_policy. Default: the scenario's.
scenarioNoScenario id (bz-100…). Default: the journal's.

Output Schema

NameRequiredDescriptionDefault
trapsNo
verdictNo
scenariosNo
trap_scoreNo
violationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, and closed-world behavior. The description adds that evaluation is deterministic with no model, list-mode behavior, PASS/FAIL/INCONCLUSIVE verdict semantics, trap coverage, and conditions for INCONCLUSIVE.

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

Conciseness5/5

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

Three tightly packed sentences that front-load purpose, then explain scenario listing and journal input, then determinism and verdicts. The long trap list earns its place by defining the scenario domain.

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?

An output schema exists, so return values need not be explained. The description is complete enough for scenario discovery, journal input, deterministic behavior, and verdict edge cases; only alternative-tool routing and full policy semantics are left to schema and sibling context.

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%, and the schema already defines run as window.__checkoutRun or copied text, policy as shaped like default_policy, and scenario with default from journal. The description reinforces run as the exported journal and listing mode, but adds little parameter syntax beyond the schema.

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?

States the specific verb 'Judges' and resource 'shopping agent's run' in Sandbox Bazaar, names the trap types, and explains the no-argument listing mode. An agent can identify this as a scenario-based checkout evaluator rather than a generic trajectory validator.

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?

Implies use when evaluating a run against Sandbox Bazaar scenarios and explains that no arguments lists scenarios. However, it gives no explicit when-not guidance and does not name alternatives among sibling eval tools such as validate_agent_trajectory or run_eval_contract.

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.