groundwork-mcp
v0.9.1Traceability for software built with agents, in your repo: requirements, risks, tickets, tests, CI results and release sign-off, kept as linked files by your…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_workspace Get workspace
The project's name, its products with their areas and versions, people, item counts and any file problems. Call this first.
search_items Search items
Find insights, hypotheses, experiments, findings, requirements or risks. Matches every word of `query` against titles, main text and notes. Returns short summaries; use get_item for the full item and its links.
| Parameter | Type | Description |
|---|---|---|
area | string | Only items in this product area (label or id). |
kind | string | Only this kind. |
limit | integer | |
offset | integer | Skip this many matches first, to page through more than 100. |
query | string | Words to match, any order. |
status | string | Only items with this status, e.g. draft, testing, running, awaiting-approval. |
get_item Get item
One item in full, with its notes, the items it links to and the items that link to it.
| Parameter | Type | Description |
|---|---|---|
id * | string | An item id, e.g. INS-0007. |
trace_code Trace code
Which requirements and risks the given files or folders touch, by their codeRefs. Call it before changing code, so you know when a change touches an approved requirement or a risk control, and name those in the plan and the PR. Obsolete requirements are left out.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Repo-relative files or folders, e.g. the files a change touches. |
add_insights Add insights
Log customer evidence: one insight per distinct pain, need or behaviour, each with the quote that shows it.
| Parameter | Type | Description |
|---|---|---|
insights * | array |
add_hypotheses Add hypotheses
Draft hypotheses in the form "We believe we will [outcome] if [forWhom] get [benefit] with [feature]", linked to the insights behind them.
| Parameter | Type | Description |
|---|---|---|
hypotheses * | array |
add_experiment Add experiment
Design an experiment for one hypothesis. It starts as planned; call start_experiment when it begins.
| Parameter | Type | Description |
|---|---|---|
experiment * | object |
add_findings Add findings
Record what was learned, linked to the experiments, hypotheses and insights behind it.
| Parameter | Type | Description |
|---|---|---|
findings * | array |
add_requirements Add requirements
Add requirements as drafts. Stakeholder requirements are user stories ("As a <role> I want <need> so that <reason>"). Solution requirements are "shall" statements and must list the stakeholder requirements they fulfil in stakeholderIds, so add the stakeholder requirements first, in an earlier call. findingIds, insightIds and origin are optional evidence. The result lists wording warnings, if any. To ask for sign-off afterwards, use submit_requirement_for_approval.
| Parameter | Type | Description |
|---|---|---|
requirements * | array |
link_code_tests Link code tests
Link automated tests in the repository to the solution requirement they verify, after writing them. Put the requirement's id (e.g. REQ-0042) in the test's name too, so anyone reading the test can trace it. Tests already linked are skipped.
| Parameter | Type | Description |
|---|---|---|
requirementId * | string | An item id, e.g. INS-0007. |
tests * | array |
unlink_code_tests Unlink code tests
Remove automated tests linked to a solution requirement, e.g. after deleting or renaming them. Renamed tests: unlink the old name and link the new one. Tests linked before the requirement shipped are part of that release's record and stay.
| Parameter | Type | Description |
|---|---|---|
requirementId * | string | An item id, e.g. INS-0007. |
tests * | array |
link_test_cases Link test cases
Link cases in your test-management tool (Qase, TestRail, Xray, …) to a solution requirement, as the tests that verify it. Find or create the cases in the tool with your own connection to it first (write cases from the requirement's acceptance criteria); Groundwork stores what you give it and doesn't check the tool. A case is identified by tool, project and id. Already linked: its title and url are refreshed.
| Parameter | Type | Description |
|---|---|---|
cases * | array | |
requirementId * | string | An item id, e.g. INS-0007. |
unlink_test_cases Unlink test cases
Remove linked test cases (by tool, project and id) from a solution requirement. Cases linked before the requirement shipped are part of that release's record and stay.
| Parameter | Type | Description |
|---|---|---|
cases * | array | |
requirementId * | string | An item id, e.g. INS-0007. |
record_test_results Record test results
Record a finished (or partly finished) test run's results for the product version it tested, after reading them in the team's test-management tool (Qase, TestRail, Xray, …) with your own connection to it. Give every case's latest status, mapped to Groundwork's statuses. Recording the same run (tool, project, id) again replaces it. The run is written to groundwork/results/tools/: commit it with the work. A version's readiness is judged on these results and the CI results on the default branch.
| Parameter | Type | Description |
|---|---|---|
results * | array | |
run * | object | |
version * | string | The version the run tested: a planned version of the product. |
product | string | The product (id or title). Leave out when there's one product. |
add_risks Add risks
Add risks to a product's risk register, scored on the project's risk matrix (see get_workspace). Then link mitigating requirements with link_items (risk -> requirement).
| Parameter | Type | Description |
|---|---|---|
risks * | array |
add_product_areas Add product areas
Add product areas so items can be tagged with them. They go into the product's file in groundwork/products/ (or config.yml for a project that hasn't migrated). Give labels; ids are made from them unless you pass one. Area ids are unique across products. Areas already there are skipped. Check get_workspace first and reuse an existing area rather than adding a near-duplicate. Can't rename or remove areas: those are edits to the files.
| Parameter | Type | Description |
|---|---|---|
areas * | array | |
product | string | The product's id or title. Needed when there's more than one product. |
add_products Add products
Add products, each as a file in groundwork/products/ (or to config.yml for a project that hasn't migrated), so requirements can name them and areas and versions can be added to them. Products already there are skipped. Check get_workspace first and reuse an existing name rather than adding a near-duplicate.
| Parameter | Type | Description |
|---|---|---|
products * | array |
add_product_versions Add product versions
Add planned versions to a product, in release order (e.g. 1.0, then 1.1). Versions already listed are skipped. Needs product files: if get_workspace says catalogue is legacy, the user must run groundwork migrate first.
| Parameter | Type | Description |
|---|---|---|
versions * | array | |
product | string | The product's id or title. Needed when there's more than one product. |
update_item Update item
Change fields of an existing item. `patch` takes the same fields as the add_ tool for that kind (only the ones to change; arrays replace the old value). Requirement status changes have their own tools.
| Parameter | Type | Description |
|---|---|---|
id * | string | An item id, e.g. INS-0007. |
patch * | object |
link_items Link items
Add evidence links without replacing existing ones. `id` is the item to link from; `linkTo` are the items it builds on. Supported: hypothesis -> insights; finding -> experiments, hypotheses, insights; requirement -> findings, insights, hypotheses, stakeholder requirements (for a solution requirement); experiment -> one hypothesis (replaces it); risk -> requirements that mitigate it (recorded on both).
| Parameter | Type | Description |
|---|---|---|
id * | string | An item id, e.g. INS-0007. |
linkTo * | array |
start_experiment Start experiment
Mark a planned experiment as running. A draft hypothesis it tests moves to testing.
| Parameter | Type | Description |
|---|---|---|
id * | string | An item id, e.g. INS-0007. |
record_experiment_results Record experiment results
Record the measured values and complete the experiment. Groundwork computes the verdict (validated, invalidated or inconclusive) from the targets and moves the hypothesis accordingly.
| Parameter | Type | Description |
|---|---|---|
id * | string | An item id, e.g. INS-0007. |
primaryActual * | number | Measured value of the primary metric. |
guardrailActuals | array | Measured value of each guardrail, in the experiment's order. |
notes | string | What happened, in a few sentences. |
submit_requirement_for_approval Submit requirement for approval
Ask a person (by id from get_workspace members) to sign off a draft requirement.
| Parameter | Type | Description |
|---|---|---|
approverId * | string | |
id * | string | An item id, e.g. INS-0007. |
approve_requirement Approve requirement
Sign off a requirement that is awaiting your approval. Only the named approver can approve. If the approver signed off outside Groundwork (e.g. verbally), pass approvedBy and a note. Groundwork records who entered it.
| Parameter | Type | Description |
|---|---|---|
id * | string | An item id, e.g. INS-0007. |
approvedBy | string | Who approved it, when they did so outside Groundwork, e.g. verbally. A person id from get_workspace. |
note | string | How or where it was approved, e.g. "Approved by Maria in sprint planning". |
plannedFor | string | Solution requirements: the planned product version it should ship in. Required once the product has planned versions (see get_workspace). |
plan_requirements Plan requirements for a version
Move approved solution requirements that haven't shipped to another planned version of their product, e.g. when work slips from 1.1 to 1.2. Requirements they replace move with them.
| Parameter | Type | Description |
|---|---|---|
ids * | array | |
version * | string |
link_tickets Link tickets
Record a ticket (Linear, Jira, GitHub issue, …) that implements one or more solution requirements. Call it after creating a ticket from requirements, with the REQ ids also written in the ticket. A fix ticket under an existing requirement is linked to that requirement too. Already linked: its details are refreshed.
| Parameter | Type | Description |
|---|---|---|
requirementIds * | array | |
ticket * | object |
unlink_tickets Unlink tickets
Remove a ticket linked by mistake. A ticket linked before its requirement shipped is part of that release's record and stays.
| Parameter | Type | Description |
|---|---|---|
requirementIds * | array | |
ticket * | object |
update_tickets Update tickets
Refresh ticket status from the tracker, on every requirement that has the ticket. Use it before releasing, after checking the tickets with the tracker's own tool. Tickets that aren't linked to any requirement are listed in notLinked.
| Parameter | Type | Description |
|---|---|---|
tickets * | array |
get_release Get release
For a planned version: the solution requirements planned to ship in it and the requirements planned to become obsolete in it. For a released version: its release report (introduced, made obsolete, stakeholder needs met, corrections).
| Parameter | Type | Description |
|---|---|---|
version * | string | |
product | string | The product's id or title. Needed when there's more than one product. |
release_version Release version
Release a planned version: `shipped` are the planned requirements that went out in it. Planned requirements not listed, and planned removals not confirmed in `removed`, move to `moveTo` (another planned version), which is required if there are any. Replaced requirements become obsolete once all their replacements have shipped. Show the user the list and get their agreement first.
| Parameter | Type | Description |
|---|---|---|
shipped * | array | |
version * | string | |
moveTo | string | |
overrideJustification | string | Owners only: why this version may go out despite its blockers. Recorded on the sign-off. Only when the user gives it; never write one yourself. |
product | string | The product's id or title. Needed when there's more than one product. |
removed | array |
check_release Check release
Whether a version is ready to release, and what blocks it: risks without approved mitigations or with a residual score still high, requirements not approved, and requirements whose tests haven't passed: code tests in the newest CI runs on the default branch (failed-code-test, no-ci-run), test-management cases in the runs recorded for the version (untested-requirement), or no tests linked at all (missing-tests). Call it before opening a PR for release work and report the gaps. CI results are read as last fetched: suggest git fetch when they may be stale. For a released version it says whether i…
| Parameter | Type | Description |
|---|---|---|
version * | string | |
product | string | The product's id or title. Needed when there's more than one product. |
sign_off_release Sign off release
Sign off a released version that has no sign-off: one released before sign-off records, a baseline once its last area is recorded, or one whose sign-off was withdrawn and then corrected. It checks readiness on what shipped, as release_version does, and writes a frozen record. With blockers, only an owner can sign it off, with overrideJustification. A baseline's blockers are recorded but don't stop it.
| Parameter | Type | Description |
|---|---|---|
version * | string | |
overrideJustification | string | Owners only: why this version may go out despite its blockers. Recorded on the sign-off. Only when the user gives it; never write one yourself. |
product | string | The product's id or title. Needed when there's more than one product. |
withdraw_release Withdraw sign-off
Withdraw a version's sign-off, e.g. to correct a mistake in what shipped. Owners only, with the reason. The record is kept, marked withdrawn; the version stays released. Correct it, then sign it off again with sign_off_release.
| Parameter | Type | Description |
|---|---|---|
reason * | string | |
version * | string | |
product | string | The product's id or title. Needed when there's more than one product. |
release_requirements Release requirements
Record approved solution requirements as shipped in a version that's already released, e.g. for teams that ship continuously.
| Parameter | Type | Description |
|---|---|---|
ids * | array | |
version * | string | |
product | string | The product's id or title. Needed when there's more than one product. |
correct_release Correct release
Correct a released version, e.g. a requirement recorded as shipped that didn't. Changes only what's listed; requirements taken out go back to `moveTo` (a planned version). The correction is recorded on the version with who, when and the reason, and shows in the release report. Ask the user for the reason.
| Parameter | Type | Description |
|---|---|---|
reason * | string | |
version * | string | |
addObsolete | array | |
addShipped | array | |
moveTo | string | |
product | string | The product's id or title. Needed when there's more than one product. |
removeObsolete | array | |
removeShipped | array |
record_baseline Record baseline
Record what an existing product already does as its as-is baseline: inferred hypotheses (validated), stakeholder and solution requirements (approved by approvedBy, origin existing-product), with the solution requirements released in `version`, and the risks the product carries (origin existing-product, tagged for `version`, linked to the requirements that control them). One product area per call. Use only to document existing behaviour, after the user agreed to the list and named the approver. Link new items with keys (stakeholderKeys, hypothesisKeys) or existing ids.
send_back_requirement Send requirement back
Return a requirement awaiting your approval to draft, for changes. Only the named approver can do this.
| Parameter | Type | Description |
|---|---|---|
id * | string | An item id, e.g. INS-0007. |
obsolete_requirement Make requirement obsolete
Retire an approved requirement, optionally naming the requirements that replace it. To replace one, prefer adding the new requirement with replaces. With inVersion (a planned version of its product), it stays valid until that version is released; a requirement that has shipped needs inVersion.
| Parameter | Type | Description |
|---|---|---|
id * | string | An item id, e.g. INS-0007. |
inVersion | string | The planned version that removes it. It stays valid until then. |
replacedBy | array |
delete_item Delete item
Delete an item's file. Links to it are removed from other items; deleting a hypothesis also deletes its experiments. Confirm with the user first.
| Parameter | Type | Description |
|---|---|---|
id * | string | An item id, e.g. INS-0007. |