SearchPiecesTool
Search pieces of ONE project by type, state ("open" = not completed/approved), assignee, author, text; compact rows + counts_by_state. include_estimates adds scrum_point_code, duration_best_hours, duration_worst_hours, worked_out (hours; day 7 h, week 5 days) to Task/Recurent rows.
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>",
"project_relative_id": "<project_relative_id>"
},
"name": "SearchPiecesTool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-based), defaults to 1 | |
| size | No | Page size (1-50), defaults to 20 | |
| sort | No | updated_at_desc (default), created_at_desc or priority | |
| query | No | Text match on name and description, same as the web search | |
| states | No | task_state codes (new, inprogress, completed, approved, blocked, ...) or "open" = everything except completed and approved | |
| piece_types | No | Task, Story, Epic, Recurent | |
| account_code | Yes | Account code (e.g., "bcp", "jchsoft") | |
| created_since | No | ISO 8601 | |
| updated_since | No | ISO 8601 | |
| author_user_id | No | User id of the author | |
| task_type_codes | No | e.g. ["bug","task"] | |
| assigned_user_id | No | User id of the assignee; 0 = unassigned | |
| include_estimates | No | Task and Recurent rows also carry scrum_point_code, duration_best_hours, duration_worst_hours, worked_out (hours), defaults to false | |
| parent_relative_id | No | Only descendants (whole subtree) of this Epic/Story of the same project | |
| include_description | No | Include descriptions, defaults to false | |
| project_relative_id | Yes | Relative ID of the project to search in (required, there is no account-wide search) |