Single tool with adequate naming and schema but significant gaps in descriptions and error handling. Tool name 'create-how-to-prompt' follows verb_noun pattern correctly. Input schema uses Zod with proper types (string.min(1)) and parameter descriptions are present but generic. No output schema documented. No error recovery guidance. No idempotency hints despite WRITE risk classification. Missing validation for Markdown format or content length constraints.
Create and save a How-To Prompt in Markdown format in Protomind to be used by other developers with AI coding assistants agents tools
Tool description lacks WHEN/WHY context and does not explain state mutation consequences. Description is 180 chars but reads as feature summary, not LLM-optimized guidance. Missing: 'This tool creates a persistent record in Protomind. Use when documenting reusable development patterns. Cannot be undone without manual deletion.'
No output schema documented. Tool returns hardcoded success text but LLM cannot infer response structure. Should document: returns {content: [{type: 'text', text: string}]} with created_id or timestamp for chaining.
No error handling or recovery guidance. If Protomind API fails (network, auth, validation), tool throws raw error. Should catch and return: 'Failed to save How-To. Verify Protomind is running at http://localhost:3001 and you have write permissions.'
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 50 | 2026-07-28+ | v2 |
Parameter 'howToBody' accepts any string but tool expects Markdown. No format constraint or validation. Should add: .regex(/^#+\s/) or document 'Must be valid Markdown with at least one heading' and validate in handler.
Tool marked WRITE risk but no idempotency hint or confirmation pattern. Calling twice with same inputs creates duplicate How-To records. Should either: (1) add idempotentHint annotation, (2) accept optional how_to_id for updates, or (3) document 'Calling twice creates two records; use update-how-to-prompt to modify.'