A skill/tool for managing Next.js server actions with optimistic state updates and validation
Single tool with severe quality gaps. The 'run_action' tool has a brief, non-prescriptive description (74 chars) that lacks context for when/why an LLM should call it. Parameter descriptions are minimal ('The action payload to validate' and 'List of required field names') and fail to explain constraints, formats, or expected structure. No output schema is documented, the response structure is inferred from code only. No error handling guidance is provided. The tool's purpose ('Validates a Next.js server action payload') is narrow and domain-specific, but the definition quality does not meet production baselines. The server provides no prompts, resources, logging, sampling, roots, cancellation, progress, error reporting, or tool annotations, none of the current MCP spec features are implemented.
Validates a Next.js server action payload against required fields and returns optimistic state update
Tool description is too brief and lacks discovery context. At 74 characters, it states WHAT the tool does but not WHEN to use it, what prerequisites exist, or how it differs from similar tools. LLMs cannot determine when to select this tool in a multi-tool environment.
Parameters 'action_payload' and 'required_fields' lack actionable descriptions. 'The action payload to validate' does not specify expected structure, example fields, or constraints. 'List of required field names' does not explain field name format or validation rules. LLMs cannot infer valid input without detailed parameter descriptions.
No output schema is documented in source. Return structure (is_valid, optimistic_state_update) is inferred from implementation only. LLMs cannot plan downstream tool calls or extract fields without explicit schema documentation. Output schema must be declared in tool registration.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 27 | 2026-07-28+ | v2 |
No error handling or recovery guidance. The tool returns {is_valid: false, optimistic_state_update: {}} on validation failure, but provides no explanation of why validation failed, which fields were missing, or what the LLM should do next. Error responses must include actionable guidance.
Parameter type definitions are present (dict, list[str]) but lack constraints. No validation rules for action_payload structure, required_fields length, or field name format. Unbounded inputs invite malformed payloads; constraints must be specified in parameter descriptions.
Tool name 'run_action' is generic and does not clearly describe the action performed. Names like 'validate_next_js_action' or 'validate_server_action_payload' would be more discoverable. 'run' is vague, does it execute, validate, or transform the payload?