RestCSV server has 16 tools with basic schemas and descriptions. Strengths: all tools have Zod schemas with type definitions and most have descriptions. Critical weaknesses: (1) Descriptions are generic and often too short (10-50 chars), lacking actionable context for LLM tool selection. Examples: 'List all actions' (15 chars), 'List all CSV files' (18 chars), 'Show details of a specific action' (33 chars). (2) Parameter descriptions lack detail about format, constraints, and when to use them. E.g., 'meta' parameter in store_csv_row is described as 'Typically key/value pairs, but can also be nested json', no validation rules, examples, or structure guidance. (3) No error handling or recovery guidance in any tool description. (4) No output schema documentation, callers don't know what fields to expect or how to chain tools. (5) Parameter naming inconsistencies: some use UUIDs (e.g., 'csv' param expects UUID but is not named 'csv_id'), others are ambiguous ('meta' could mean metadata, metafields, or metadata row). (6) No evidence of output structure constraints or pagination for list tools. (7) All error handling uses generic try-catch returning 'Error: <message>' with no recovery guidance per pattern:recovery-guide. Tools are functional but under-optimized for agent reasoning.
Tools (16)
bulk_store_csv_rowwriteauthsource verified60/100
Bulk store multiple rows in a CSV
create_actionwriteauthsource verified63/100
Create an action with a prompt that applies to specified CSV or CsvRow objects
Descriptions too short and lack actionable context. 12 of 16 tools have descriptions under 40 characters. Descriptions like 'List all actions' and 'Show details of a specific action' give LLMs no context on WHEN to use them vs similar tools, what they return, or dependencies.
No documented output schemas. Tools return JSON responses but callers cannot see what fields are in the response, what types they are, or which IDs are needed for chaining. This violates pattern:tool and forces LLMs to infer structure or fail mid-chain.
Expand all tool descriptions to 80 - 200 characters. Answer: (1) What does the tool do? (2) When should the LLM call it instead of a similar tool? (3) What does it return? Example: 'list_actions' → 'List all saved actions that transform data. Call this first to see available transformations before executing one. Returns action ID, name, prompt, and scope.'
Document output schemas for every tool. In code comments or a separate schema file, define what fields each response contains, their types, and which IDs are available for chaining. Example: 'create_action returns {id: string (UUID), name: string, prompt: string, applies_to: UUID[], created_at: ISO8601, status: enum(pending|active|error)}'.
Rename UUID parameters consistently: 'action' → 'action_id', 'csv' → 'csv_id', 'row' → 'row_id'. This matches the chat data model (users say 'delete the action' but internally we need the ID) and disambiguates parameter intent per mxe:natural-identifiers.
Replace generic 'meta' parameter in store_csv_row and update_csv_row with more specific names: 'row_data' or 'fields' (z.record(z.string(), z.any()).describe('Object with column names as keys and cell values. E.g., {name: "John", age: 30, email: "[email protected]"}'). Include a realistic example inline.
Add pagination to list_actions, list_csvs, list_csv_rows. Accept optional 'limit' (default 20, max 100) and 'offset' (default 0) parameters. Return {items: [...], total: number, offset: number, limit: number, has_more: boolean}. Document in tool description: 'Returns up to 20 actions. Use offset to fetch additional results.'
Parameter 'meta' in store_csv_row and update_csv_row has vague description: 'Typically key/value pairs, but can also be nested json.' No format, validation rules, or structure examples. Ambiguous parameter types force LLMs to guess valid input shape, causing silent failures.
No error recovery guidance. All tools catch errors and return 'Error: <message>' with no indication of whether the error is retryable, user-fixable, or fatal. Per pattern:recovery-guide, errors must tell LLMs what to do next (e.g., 'CSV not found. Call list_csvs() to see available CSVs').
No pagination support on list tools. list_actions, list_csvs, and list_csv_rows return raw JSON with no limit, offset, total_count, or next_cursor. Per pattern:paginated-result, returning thousands of items blows context windows. List tools should accept limit/offset and cap default results at 20-50.
Parameter naming ambiguity and inconsistency. UUID params are not consistently named: 'action' expects a UUID but is not named 'action_id'; same for 'csv', 'row'. Per naming rules, parameters containing IDs should be suffixed with '_id'. Also, 'meta' is vague, is it metadata, metafields, or row metadata? Use clearer names like 'row_data' or 'fields'.
No input validation or constraint documentation. Parameters like 'applies_to' (array of UUIDs) have no documented min/max length, required minimum count, or format validation. Parameter 'file' in store_csv has no guidance on path format, file size limit, or required extensions. Per review:param-validation-rules, constraints must be explicit.
store_csv description vague on inputs. It says 'Store a CSV file' but the tool accepts either a file path OR contents string. No clear guidance on which parameter is required, what happens if both are provided, or file size limits. Schema shows both are required but description doesn't clarify the mutually-conditional logic.
No schema for 'file' parameter in store_csv. It's typed as z.string() with no format constraint (path, URI, local file, remote URL?). Description says 'The CSV file to store' which is ambiguous, is this an existing file path or a name for a new file?
store_csv
Add error recovery guidance in every error catch block. Instead of 'Error: <message>', return structured error with category. Example: 'Action not found. Available actions: [list from list_actions]. Call list_actions() to see all valid action IDs.' Map error codes to recovery patterns (retryable vs user-fixable).
Document the 'file' parameter in store_csv more clearly: is it a local file path (string that must exist on server), or a filename for new file (string that can be any valid filename)? Add constraint: 'Local file path (must be readable by server) or filename string (2-255 chars, alphanumeric + - _). If contents param is provided, file is treated as destination filename.'
Add mutual-exclusivity documentation for store_csv: 'Either provide file (existing path) OR contents (CSV text); both cannot be omitted, but providing both is an error. If file exists on server, contents is ignored. Otherwise, contents must be valid CSV.'
For create_action and execute_action, document the 'applies_to' and optional arrays more clearly. Example for applies_to: 'Array of CSV or CsvRow UUIDs. At least 1 required. Max 100. All IDs must be valid, or the entire action creation fails.' Example for execute_action: 'If both csvs and rows are provided, action applies to specified rows first, then specified CSVs. If both omitted, action applies to originally configured scope (applies_to field).'
Add confirmation/dry-run pattern for destructive operations (delete_action, delete_csv, remove_csv_row). E.g., add optional 'confirm=true' parameter to delete tools with description: 'Omit or set to false for a dry-run that returns what would be deleted without executing. Set to true to confirm deletion.' Per pattern:confirmation-request, agents should not blindly delete without confirmation.
Document which tools are idempotent (safe to retry). E.g., 'show_csv is idempotent; can be safely retried.' vs 'create_action is not idempotent; calling twice creates two separate actions. Use execute_action for repeated execution of the same action logic.' Per pattern:idempotent-operation.
Add input validation in tool handlers and return clear validation errors. Currently, invalid UUIDs silently fail at the API layer. Return: 'Invalid UUID: action parameter must be a valid RFC 4122 UUID. Got: "abc123".' This allows LLMs to self-correct without retry loops.