Skip to main content
Glama

Review user story before testing

review_user_story

Identifies missing acceptance criteria, untestable wording, undefined terms, and missing failure paths in a user story, then returns questions to answer before writing tests.

Instructions

Call this BEFORE parse_user_story. Finds what a careful tester would ask before writing tests: missing acceptance criteria, outcomes that can't be asserted, no user role, untestable words (fast, easy, many), limits without numbers, no failure path, missing preconditions, and (with context) terms the context never explains. Returns questions for a person to answer, each with why it matters and the words that raised it. If ready is false, ask the user these questions and wait; do not guess the answers.

context: related product docs, glossary or notes; terms the story uses but this never explains become questions.

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": {
      "story": "<story>"
    },
    "name": "review_user_story"
  }
}

Input Schema

NameRequiredDescriptionDefault
storyYes
contextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does most of it well: it discloses what is returned (questions a person must answer, each with why it matters and the offending words) and introduces a readiness signal that gates downstream behavior. It never states explicitly that the tool is read-only and does not alter the story, and says nothing about cost or latency, which keeps it short of a 5.

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?

Front-loaded with the ordering instruction, then the checklist, then the return behavior and the do-not-guess rule — a sensible priority order. The long enumeration of check categories is dense but each item is distinct and useful; the trailing "context:" fragment is awkwardly detached from the input-schema block it describes.

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 two-parameter analysis tool with no output schema and no annotations, the description covers purpose, sequencing, return semantics, the readiness gate, and the optional context parameter. Only the exact shape of the returned questions and the precise meaning of the ready flag are left implicit.

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 0%, so the description must supply all parameter meaning. It does this well for context — related product docs, glossary or notes — and explains the derived behavior (terms the context never explains become questions) plus the conditional "with context." It adds nothing about the required story parameter beyond its name, so compensation is only partial.

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 states a specific verb and resource (review a user story) and then enumerates exactly what the review looks for — missing acceptance criteria, unassertable outcomes, untestable words, unnumbered limits, no failure path, missing preconditions. It is clearly distinguished from the sibling parse_user_story by sequencing, so an agent can tell them apart without opening either schema.

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

Usage Guidelines4/5

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

"Call this BEFORE parse_user_story" gives explicit ordering against a named sibling, and "If ready is false, ask the user these questions and wait; do not guess the answers" prescribes post-call behavior. What is missing is an explicit when-not-to-use condition (e.g., a story that was already reviewed or already parsed), so a small amount is left to inference.

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