Skip to main content
Glama
k11 API Functional QA

k11 API Functional QA

Official

Review a user story

review_user_story

Review user stories before drafting API tests by flagging missing acceptance criteria, untestable wording, failure-path gaps, status-code omissions, and spec mismatches; return questions to resolve.

Instructions

Call this BEFORE draft_flow. Finds what a careful tester would ask before writing an API test: missing acceptance criteria, outcomes that can't be checked, no user role, untestable words (fast, many), limits without numbers, no failure path, missing preconditions; and for APIs: rejections without a status code or error body, deletes that don't say whether the record is kept, no expected result without credentials or for another user's data, repeated requests with no defined result, and (with a spec) endpoints or fields the spec doesn't have. 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. spec: OpenAPI/Swagger file to check against (default: the configured spec).

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
specNo
storyYes
contextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.1

TDQS

A4.2/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 most of it: it discloses the return shape (questions, each with rationale and the offending words) and a readiness flag with a conditional next action. It does not state permissions, idempotency, or whether the story is modified — implied read-only but never asserted.

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

Conciseness3/5

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

The critical sequencing instruction is correctly front-loaded, but the core check list is one sprawling semicolon-chained sentence that packs generic-story checks, API checks, and spec checks into a single run-on. The content earns its place, but the structure does not aid scanning.

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 three-parameter, no-annotation, no-output-schema tool, the description covers purpose, the two optional parameters, the response contents, and the required agent behavior on a negative result. It stops short of clarifying whether an empty question list is the same signal as ready=true, a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 compensate, and it largely does: context is defined as product docs/glossary/notes with the rule that unexplained terms become questions, and spec is defined as an OpenAPI/Swagger file with a stated default of the configured spec. Only the required story parameter is left implicit, which is reasonable given its name.

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 immediately enumerates what the review looks for: missing acceptance criteria, untestable words, missing failure paths, missing status codes on rejections, and spec mismatches. It also names the sibling it precedes (draft_flow), so an agent can distinguish it from drafting tools without opening any 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 draft_flow" gives explicit ordering against a named sibling, and "If ready is false, ask the user these questions and wait; do not guess" prescribes the follow-up behavior. There are no stated exclusions or when-not conditions, which keeps it short of a 5.

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