Skip to main content
Glama
k11 API Functional QA

k11 API Functional QA

Official

Draft flow from a user story

draft_flow

Convert user stories or acceptance criteria into API test scenarios, likely spec operations, and a flow skeleton to finish with chained IDs, value checks, and database assertions. Review the story first to surface open questions.

Instructions

Turn a user story or acceptance criteria into scenarios, the spec operations most likely involved, and a flow skeleton to complete (chain IDs with save/${...}, add value and db checks). Call review_user_story first; the result includes a short review so open questions are never silently skipped.

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": "draft_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
specNo
storyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it usefully discloses that the deliverable is a partial skeleton (chain IDs via save/${...}, value and db checks to add) and that the result embeds a short review, which are real behavioral traits beyond the name. It stops short of stating side effects, whether anything is persisted, or error behavior for malformed stories, leaving the mutation/read-only profile to inference from the word 'draft'.

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?

Two sentences, front-loaded with the transformation and its output parts, with the lifecycle constraint last. The parenthetical about chaining IDs and adding checks earns its place as concrete post-processing guidance; nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description does well to enumerate what the response contains and to flag the embedded review. However, for a two-parameter tool at 0% schema coverage, the total silence on the 'spec' parameter leaves a real gap an agent cannot resolve from structured data.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the properties are bare ('Story', 'Spec'), so the description must compensate; it only indirectly characterizes 'story' as a user story or acceptance criteria and never explains what the optional 'spec' parameter accepts (a spec name? ID? path? whole document?) or how it changes the draft.

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 uses a specific verb+resource combination ('Turn a user story or acceptance criteria into ... scenarios, spec operations ... and a flow skeleton') and distinguishes the output from siblings by framing it as a skeleton to complete rather than a finished flow (write_flow) or a critique (review_user_story). An agent can determine the tool's role without inspecting the 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?

Explicit ordering guidance is present: 'Call review_user_story first,' which tells the agent this tool is downstream of review and must not be invoked cold. It also implies the tool is a drafting step followed by manual completion, but it does not state when to skip it in favor of write_flow or what to do when the story is already unambiguous.

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