Suggest assert/expect patches
suggest_assertionsGenerate compact expect/assert YAML patches from API outputs or JSON bodies to tighten smoke tests after a run.
Instructions
Suggest compact expect/assert YAML patches from API outputs and/or a JSON response body. Use after a run or when tightening a scaffolded smoke test — patch only, do not rewrite the file. Do not use testlight, npx, npm, shell, or node dist/mcp/server.js.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Parsed JSON response body | |
| style | No | Patch style (default both) | |
| status | No | HTTP status to expect | |
| stepId | No | Call step id for ${id.field} asserts | |
| apiPath | No | API .mmt to read outputs from | |
| bodyFile | No | Path to a JSON response file | |
| maxFields | No | Max body fields to suggest | |
| workspaceRoot | No | Workspace root (required with apiPath or bodyFile) |