Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as mcptask.online. If you published it, claim ownership there.

SearchPiecesTool

Read-only

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

NameRequiredDescriptionDefault
pageNoPage number (1-based), defaults to 1
sizeNoPage size (1-50), defaults to 20
sortNoupdated_at_desc (default), created_at_desc or priority
queryNoText match on name and description, same as the web search
statesNotask_state codes (new, inprogress, completed, approved, blocked, ...) or "open" = everything except completed and approved
piece_typesNoTask, Story, Epic, Recurent
account_codeYesAccount code (e.g., "bcp", "jchsoft")
created_sinceNoISO 8601
updated_sinceNoISO 8601
author_user_idNoUser id of the author
task_type_codesNoe.g. ["bug","task"]
assigned_user_idNoUser id of the assignee; 0 = unassigned
include_estimatesNoTask and Recurent rows also carry scrum_point_code, duration_best_hours, duration_worst_hours, worked_out (hours), defaults to false
parent_relative_idNoOnly descendants (whole subtree) of this Epic/Story of the same project
include_descriptionNoInclude descriptions, defaults to false
project_relative_idYesRelative ID of the project to search in (required, there is no account-wide search)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / include_estimates
      Added value: +{
      +  "description": "Task and Recurent rows also carry scrum_point_code, duration_best_hours, duration_worst_hours, worked_out (hours), defaults to false",
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
  2. Added

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/non-destructive/closed-world, so the bar is lower, and the description still adds real value: the return shape ("compact rows + counts_by_state") and the hours-conversion rule for worked_out (day 7 h, week 5 days). It omits pagination behavior and total-count semantics, keeping it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two dense sentences with the scope constraint front-loaded and no filler. Minor cost: the compressed style and typos ("Recurent") slightly reduce readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter tool with no output schema, the description covers scope, key filters, and the shape of the return (compact rows plus counts_by_state). It leaves paging, sorting, and the parent_relative_id subtree semantics to the schema, which is acceptable given full schema coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description restates the "open" state semantics and the include_estimates output fields, both already in the schema, and only adds the hours-per-day/week conversion detail beyond it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Search pieces of ONE project" states a specific verb, resource, and scope, and the emphasized 'ONE project' implicitly separates it from the account-wide/listing siblings such as ListPiecesTool. It does not name a sibling directly, so it stops just short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The scoping phrase "ONE project" and the note "there is no account-wide search" (in schema) imply when this tool applies, but the description never says when to prefer it over ListPiecesTool, GetPieceTool, or GetProjectTreeTool. Usage is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources