Skip to main content
Glama

Parse user story

parse_user_story

Converts user stories, Gherkin scenarios, or acceptance criteria into test scenarios and runnable pytest, JUnit 5, or TestNG skeletons for Python and Java projects.

Instructions

Turn a user story, Gherkin scenarios or acceptance criteria into scenarios and a test skeleton: pytest for Python projects, JUnit 5 or TestNG for Java projects (package/class_name apply to Java).

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

Input Schema

NameRequiredDescriptionDefault
urlNo
storyYes
packageNo
class_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

B3.4/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 burden, and it does disclose the return shape (scenarios plus a skeleton) and the framework chosen per project language, which is genuine value. However, it never says whether it writes files to disk or merely returns text, nor how the language (Python vs Java) is determined. For a generation tool those are material behavioral gaps.

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 tightly packed sentences with the core transformation front-loaded and the framework mapping trailing. The Java-only qualifier is squeezed into a trailing parenthesis, which is slightly awkward placement, but there is no 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?

No output schema and no annotations, so the description is the only source of behavioral detail, and it covers output format but not side effects, input source precedence (story vs url), or language detection. For a four-parameter generation tool with one completely undocumented parameter, that is adequate but not complete.

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% across four parameters, so the description must compensate, and it only partly does: the parenthetical clarifies that package and class_name are Java-only concepts, and 'story' is expanded to include Gherkin and acceptance criteria. The 'url' parameter is never mentioned and its relationship to 'story' (alternative input source?) is left entirely unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb-plus-resource: turns a user story/Gherkin/acceptance criteria into scenarios plus a test skeleton. It also names the concrete outputs (pytest, JUnit 5, TestNG), so the agent knows exactly what artifact results. It does not differentiate itself from siblings such as write_test or run_tests, which keeps it below a 5.

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

Usage Guidelines3/5

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

Usage is only implied: the agent can infer this is the entry point when it has a story and needs test skeletons, but there is no explicit when-to-use, when-not-to-use, or named alternative. The framework selection guidance (Python vs Java) is about output shaping rather than tool routing.

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