MCP server interface to libphext-rs with SQ-style operations for 11-dimensional phext documents
phext-mcp demonstrates a domain-specialized toolkit with comprehensive schema coverage and clear naming conventions. All 21 tools have explicit JSON Schema definitions with required fields and descriptions. However, several medium-priority gaps reduce quality: (1) parameter descriptions lack format constraints and validation guidance (e.g., coordinate format '1.1.1/1.1.1/1.1.1' is shown in tool_select but not enforced in schema or param descriptions), (2) output schemas are undocumented, the source shows only input schemas, no CallToolResult structure details, (3) error handling is not visible in the code, no recovery guidance, error classification, or actionable error messages returned to the agent, (4) tool descriptions are functional but brief (average ~65 chars), below the baseline 194-char production average, missing context for WHEN to use each tool instead of similar ones. The verb_noun naming (phext_load, phext_create, phext_select) is excellent, and the toolkit is well-organized into logical groups (document management, CRUD, bulk operations, query/navigation, utilities). No security issues detected (no secrets exposed, read-only operations properly marked). Bulk operation tools (phext_bulk_select, phext_bulk_insert, etc.) demonstrate good composition pattern awareness. However, absence of output schema documentation and error handling guidance prevents a higher score.
Delete content at multiple coordinates at once.
Insert content to multiple coordinates at once.
Fetch content from multiple coordinates at once.
Update content at multiple coordinates at once.
Get information about a coordinate (depth, siblings, parent, children).
Create a new phext in memory.
DELETE: Remove content at a coordinate.
Output schemas undocumented. Source shows input schemas only; no CallToolResult structure or return field documentation visible. LLMs cannot predict response structure for chaining or downstream parameter mapping.
Parameter descriptions lack validation constraints. The 'coordinate' parameter format (shown in tool_select description as '1.1.1/1.1.1/1.1.1') is not enforced in schema or repeated in parameter descriptions. LLMs cannot validate input format before sending.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 58 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 26 | 2024-11-05+ | v1 |
Get the delta (difference) between two phexts or versions.
Get raw content of a phext.
INSERT: Append content to a coordinate. Creates the coordinate if it doesn't exist.
List all loaded phexts.
Load a phext file from disk into memory for navigation. Use 'name' to identify it later.
Navigate from a coordinate in a specified direction by a number of steps.
Save a phext to disk.
Search for content in a phext by text query.
SELECT: Fetch content at a coordinate.
Set the default phext for operations.
Get status of a loaded phext including scroll count, byte size, and checksum.
Get the table of contents (textmap) of a phext.
Unload a phext from memory (saves if dirty).
UPDATE: Replace content at a coordinate. Overwrites existing content entirely.
No visible error handling strategy. Source code does not show CallToolResult error paths, recovery guidance, or error classification (retryable vs. user-fixable vs. fatal). Agents cannot determine next steps on failure.
Tool descriptions are below production baseline. Average length ~65 characters vs. 194-char baseline. Missing context for WHEN to use each tool instead of similar ones. E.g., 'phext_get' (55 chars) vs. 'phext_select' (75 chars), LLMs cannot distinguish when to call each.
Bulk operation tools lack per-item success/failure reporting. If phext_bulk_insert fails on coordinate 5 of 10, the response should indicate which succeeded and which failed, not a blanket error.
Destructive operations (phext_delete, phext_bulk_delete, phext_unload with dirty save) lack confirmation/dry-run pattern. Agents can irreversibly destroy data without a safety gate.