CreatePieceTool
Create new work items (Tasks, Stories, Epics, Recurents) in McpTask.online with full authorization controls. A dependency on another piece is declared with blocked_by_relative_ids — the new piece waits for the ids listed there. blocks_relative_ids is the opposite direction — the listed pieces wait for the new piece; the assignee of a piece may list it there when the new piece is assigned to another user (a hand-off), so finishing the new piece unblocks theirs.
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": {
"account_code": "<account_code>",
"piece_type": "<piece_type>",
"name": "<name>",
"project_relative_id": "<project_relative_id>"
},
"name": "CreatePieceTool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name/title of the piece | |
| repeat_on | No | One value: monday–friday for 1week/2weeks, a day of the month "1"–"31" for 1month. | |
| sprint_id | No | Database ID (primary key) of the sprint to assign the piece to (not relative_id) | |
| for_errors | No | Whether this Epic is the project's bug bucket (Epic only). Passing it for another piece type returns a validation error. | |
| piece_type | Yes | Type of piece to create: Task, Story, Epic, or Recurent | |
| description | No | Optional description of the piece | |
| account_code | Yes | Account code (e.g., "bcp", "jchsoft") | |
| repeat_after | No | Repeat a Task every 1week, 2weeks or 1month; only a Task inside an Epic or a Recurent repeats; needs repeat_on. | |
| priority_code | No | Priority code | |
| task_type_code | No | Task type code (for Tasks only) | |
| assigned_user_id | No | Database ID (primary key) of the user to assign the piece to. Must be a member of the target project; anyone else is refused with the list of project members to choose from (project_members). | |
| scrum_point_code | No | Scrum point/complexity code. Task/Recurent: ! (0), S (3), M (5), L (8), XL (13), XXL (40), XXXL (100). Story: m! (0), mS (42), mM (70), mL (112), mXL (182), mXXL (560), mXXXL (1400) | |
| parent_relative_id | No | Relative ID of a parent piece in the same project. Omit to attach to the project root. Story/Recurent/Epic parent must be an Epic; Task may parent an Epic, Story, Recurent, or Task | |
| blocks_relative_ids | No | Relative IDs of the pieces that will wait for this new piece (each gets a blocked_by link to it) — the opposite direction of blocked_by_relative_ids. Allowed for a waiting piece you authored or whose project you are a boss of, and for a piece assigned to you when this new piece is assigned to another user (a hand-off: your task waits until they finish theirs). All-or-nothing: one refused or unresolvable id rejects the whole call and creates nothing. | |
| project_relative_id | Yes | Account-scoped relative ID of the target project (not the database ID) | |
| blocked_by_relative_ids | No | Relative IDs of the pieces this piece waits for (its blocked_by links). Additive: it only adds links — remove them with ManageBlockerLinksTool(action: "remove"); an id already linked is refused, do not re-send it. All-or-nothing: one id that does not resolve in the account rejects the whole call and creates nothing. |