Static source inference · medium confidence · detected: Logging
Deprecated protocol patterns detected
Summary
TAMA Task Manager has a foundational MCP server structure with 10 tools covering task CRUD and dependency management. However, the implementation has significant quality gaps that prevent higher scores: (1) Descriptions are present but generic and lacking LLM-optimization guidance (most are 15-40 chars, below the 50-200 char baseline for A-grade tools). (2) Parameter schemas are visible and typed, but lack rich constraint documentation (no enums for status/priority, no format specs). (3) Output schemas are partially documented via type hints (Task/Subtask objects) but response structure for list_tasks (returns markdown string) is underdocumented, agents cannot parse structured data easily. (4) Error handling is absent, no actionable error messages, recovery guidance, or permission checks. (5) Tool naming is clear but compositional patterns are weak: list_tasks filters by status/priority in a single call, but lacks pagination for large result sets. (6) Security issues: tasks_list is a global mutable variable, no audit logging, no permission gates on destructive operations (remove_item). (7) The show_task tool returns Optional[Union[Task, Subtask]] but the union type is not documented in the description, agents cannot know what to expect. Averaging per-tool scores yields ~52, placing this in the D-range (poor).
Enum constraints missing for status and priority parameters. Descriptions list values as free-form text, inviting LLM hallucination of invalid options.
Return types for show_task (Union[Task, Subtask]), remove_item (Tuple), and check_dependencies (unknown) are not documented in descriptions. Agents cannot know what structure to expect.
Recommendations
Add enum constraints to status and priority parameters: status in {pending, in-progress, done, deferred, blocked, review}, priority in {high, medium, low}. Replace free-form text with machine-parseable enums.
Expand all tool descriptions to 50-200 characters. Answer: WHAT does it do? WHEN should the agent call it instead of a similar tool? WHAT does it return? Example: 'set_status: Updates a task's status (pending|in-progress|done|deferred|blocked|review). Use this to track progress on work. Returns true on success, false if task not found or invalid status. Status transitions may fail if dependencies block completion.'
Document return types explicitly in descriptions. show_task: 'Returns a Task or Subtask object with id, title, status, priority, dependencies, and timestamps. Returns None if task_id not found.' Add similar clarity to remove_item (explain Tuple structure) and check_dependencies (list of cycle descriptions?).
Add a confirm_delete tool or dry-run flag to remove_item. Agents should call confirm_delete(task_id) first, which returns cascading effects (e.g. 'Deleting task 1 will remove 3 subtasks and unblock tasks 2, 5'), then invoke remove_item only after confirmation.
No error handling or recovery guidance. Tools return bool or None on failure with no message explaining why or what to do next. Agents cannot self-correct.
Global mutable state (tasks_list) with no audit logging or permission checks. No trace of who modified what or when. Destructive operations (remove_item) lack access controls.
Parameter types and semantics underdocumented. dependencies param in add_task/add_subtask typed as List[Dependency] but not explained (IDs? objects?). task_id notation ('1' vs '1.2') implied but not validated.
Add pagination to list_tasks: accept limit (1-100, default 20) and offset/cursor parameters. Document that large task lists are truncated; instruct agents to use pagination to retrieve all tasks.
Document task_id format in parameter descriptions: 'task_id (string): The ID of a task or subtask in format PARENT.CHILD, e.g., "1" for task 1, "2.3" for subtask 3 of task 2. Must refer to an existing task.'
Clarify dependencies semantics. In add_task/add_subtask descriptions, state: 'dependencies: array of task IDs (strings) representing blocking prerequisites. Task cannot move to in-progress until all dependencies are marked done. Pass [] for no dependencies.'
Document next_task algorithm explicitly: 'Finds the next executable task: highest priority, status=pending, all dependencies resolved (marked done). Returns a single Task object or None if no executable tasks exist. Use this to recommend the agent's next action.'
Add audit logging. Log every mutation (add_task, set_status, remove_item) with timestamp, actor, parameters, and result. Store in a log file or structured sink for compliance.
Document cascading effects. In remove_item description: 'Deletes the specified task or subtask. If a parent is deleted, all subtasks are also deleted. Dependent tasks are NOT automatically unblocked, review dependencies after deletion. This operation is irreversible.'
Validate all input. Before processing, check that task_id exists, status value is valid, priority value is valid, dependency_id exists. Return actionable error messages: 'task_id "5" not found. Existing tasks: 1, 2, 3. Did you mean one of these?'
Consider breaking list_tasks into two tools: list_task_ids (returns IDs + titles + status for quick scanning) and describe_task (returns full Task object). Agents can scan IDs first, then fetch details only when needed.