Skip to main content
Glama

Review user story before testing

review_user_story

Checks a user story for missing acceptance criteria, unclear terms, user roles, numeric limits, and failure paths before test authoring. Returns questions to answer before parsing.

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.

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
contextNoRelated product docs, glossary or notes; terms the story uses but this never explains become questions

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.1

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the return shape (questions, each with why it matters and the words that raised it) and a readiness signal (ready). It stops short of saying the tool is purely analytical/non-mutating and how the context parameter changes volume of output, but the behavior is otherwise clear.

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?

Front-loads the call-order directive, then the checklist of findings, then the return contract, then the stop condition. Dense but every clause adds actionable information; 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 two-parameter analysis tool with no output schema, the definition supplies the call ordering, the finding categories, the return structure and the branch on ready. That is everything an agent needs to invoke it and act on the result.

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 50%: context is documented, but the required story parameter has no schema description. The description explains what context is for ('terms the context never explains become questions') yet never says what form story takes (raw text, markdown, ticket ID), leaving one of two parameters underspecified.

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 a specific action (review a user story before tests) and enumerates the exact defect classes it hunts for: missing acceptance criteria, non-assertable outcomes, absent user role, untestable words, unnumbered limits, missing failure paths and preconditions. It also names the sibling it must precede (parse_user_story), so an agent can place it in the workflow without reading another 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?

Gives explicit ordering ('Call this BEFORE parse_user_story') plus a conditional branch for the result: if ready is false, ask the user and wait rather than guessing. That is a when-to-use, a when-not-to-proceed and the follow-up action, all stated.

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