create_work_item
Creates a TestIT test case, checklist, or shared step with steps, preconditions, tags, attributes, and priority, so you can define reusable work items directly from your MCP client.
Instructions
Create a test case, checklist or shared step. Defaults: entityTypeName=TestCases, state=NotReady, priority=Medium, duration=60000 ms (always 0 for SharedSteps — required by TestIT). Extra CreateWorkItemApiModel fields can be passed in "payload".
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": {
"name": "<name>"
},
"name": "create_work_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Work item name. | |
| tags | No | Tag names. | |
| state | No | ||
| steps | No | ||
| payload | No | Raw CreateWorkItemApiModel fields; typed args take precedence. | |
| duration | No | Duration in ms (1..86400000; 0 for SharedSteps). | |
| priority | No | ||
| projectId | No | Project UUID (defaults to TESTIT_PROJECT_ID). | |
| sectionId | No | Section UUID (root section if omitted). | |
| attributes | No | Custom attributes {attributeId: value}. | |
| description | No | ||
| projectName | No | Project name (alternative to projectId). | |
| attachmentIds | No | Attachment UUIDs from upload_attachment. | |
| entityTypeName | No | ||
| preconditionSteps | No | ||
| postconditionSteps | No |