Pluggable task queue (Memory/SQLite/Postgres) with FastMCP server
Server defines 7 tools with complete input schemas and descriptions. Naming follows verb_noun convention (add_task, list_tasks, claim_task, etc.). Descriptions are present but brief (10-60 chars), below the 50-200 char LLM-optimized baseline. Parameters have types and descriptions, but lack constraints (enums, ranges, patterns). Output schemas are not documented, LLMs cannot predict return structure. Error handling is minimal; no recovery guidance or actionable error messages visible. Task queue domain is well-scoped, but tool composition could be tighter (e.g., claim_task + update_task_status could be one atomic operation for common workflows).
Add a new task in pending status.
Atomically claim a pending task. Raises if already claimed.
Get task counts by status for a job.
Refresh claim lease — updates claimed_at to NOW().
List tasks by job and status. Only 'pending' is currently indexed.
Update task status. Validates transition (pending->claimed->completed/failed).
Check if a status transition is valid (without mutating).
Output schemas not documented. LLMs cannot predict return structure (e.g., does list_tasks return task objects or just IDs?). Breaks downstream tool chaining.
Descriptions are too brief (10-60 chars, below 50-200 char baseline). Missing context on WHEN to use each tool and prerequisites. E.g., 'Atomically claim a pending task' lacks guidance on when claim_task vs update_task_status.
No input validation or constraint documentation. 'status' parameter in update_task_status accepts any string; should enumerate valid transitions (pending→claimed→completed/failed). Invites hallucinated values.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 51 | 2026-07-28+ | v2 |
No error handling guidance. If claim_task fails (task already claimed), LLM receives no recovery hint. Should return 'Task already claimed by worker_id=X. Call list_tasks() to find pending tasks.'
list_tasks returns empty array for non-pending statuses (fallback: 'tasks = []'). Incomplete implementation; LLM cannot discover completed/failed tasks. Breaks observability workflows.