fix_gherkin
Fix Gherkin syntax warnings from a jira_to_test_suite result. Takes the current gherkin text and the _gherkin_warnings array, calls your LLM to fix ONLY the flagged issues (adds missing Given/When/Then steps, etc.), and returns the corrected Gherkin. Lightweight — uses ~300-500 tokens vs ~5k for a full regeneration. Requires BYOK LLM key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | LLM model to use for the fix, e.g. "gpt-4o-mini". Must belong to the provider whose key you passed in api_key. | |
| api_key | Yes | Your own LLM provider API key (BYOK) — OpenAI "sk-…", Anthropic "sk-ant-…", Google "AIzaSy…", or Groq "gsk_…". There is no server-side key for this tool: if you do not have one, do not call it and do not invent a value — placeholders like "configured", "your_api_key" or a masked "sk-…***…" are rejected. Used for this call only, never stored. | |
| gherkin | Yes | The current Gherkin text from the jira_to_test_suite result (test_suite.gherkin). | |
| warnings | Yes | The _gherkin_warnings array from the jira_to_test_suite result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latency_ms | No | ||
| model_used | No | ||
| fixed_gherkin | No | ||
| warnings_after | No | ||
| warnings_before | No | ||
| remaining_warnings | No |