Skip to main content
Glama
UI Audit MCP
by wa008

evaluate

Scores UI audit steps dimension by dimension: retrieve the next scoring prompt, submit a score with reason, and advance through outcome, usability, and aesthetics.

Instructions

Unified evaluation tool. Two modes:

  1. INITIAL: Call with only caseName + stepIndex (omit score/reason/token) → returns the first pending dimension's prompt, scoring guide, and evaluationToken.

  2. SUBMIT: Call with caseName + stepIndex + evaluationToken + score + reason → records the score, advances to the next dimension, and returns its prompt + new token (or completion message). Dimensions (easy → hard): outcome → usability → aesthetics. For observation steps (no expectedOutcome), outcome is skipped automatically.

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": {
      "caseName": "<caseName>",
      "stepIndex": "<stepIndex>"
    },
    "name": "evaluate"
  }
}

Input Schema

NameRequiredDescriptionDefault
scoreNoScore from 0 (worst) to 10 (perfect). Required when submitting an evaluation.
reasonNoAnalysis and reason for this score. Required when submitting an evaluation.
caseNameYesName of the test case
stepIndexYesStep index to evaluate
evaluationTokenNoThe exact token from the previous evaluate call. Omit on the first call to get the initial dimension.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.3

TDQS

A4.4/5.0
Behavior4/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 discloses the stateful contract well: token round-tripping, dimension advancement, and terminal completion messaging. It omits failure behavior — what happens with a stale or invalid evaluationToken, whether a dimension can be re-scored, and whether scores persist across sessions — which matters for a stateful protocol.

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?

Numbered modes make the two paths scannable, the mode-selecting constraints are front-loaded, and every clause carries operational information. There is no filler and nothing important buried at the end.

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 five-parameter, no-output-schema tool, the description explains what both calls return (a dimension prompt plus token, or a completion message), which is necessary since there is no output schema. It falls short only on error and retry semantics for a stateful token flow.

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 coverage is 100%, so the baseline is 3; the schema already documents each parameter including the 'Required when submitting' note on score and reason. The description adds genuinely useful orchestration context — omitting the token on the first call to bootstrap the flow — but repeats the schema's own conditional requirement rather than adding new meaning.

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 description names the tool's role precisely and then splits it into two explicit operating modes (INITIAL and SUBMIT) with the exact parameter combination that selects each. An agent knows this is a stateful, multi-step scoring tool over named test-case steps, and the dimension ordering (outcome → usability → aesthetics) is stated outright.

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?

Each mode has an explicit call recipe: 'only caseName + stepIndex (omit score/reason/token)' for mode 1 and the full parameter set for mode 2. It also states the exclusion rule that observation steps without an expectedOutcome skip the outcome dimension automatically, removing the main ambiguity an agent would hit.

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