MCP server that exposes urfave/cli v3 commands as MCP tools
Two tools ('hello' and 'add') with explicitly visible schemas and descriptions in the source code. Both tools have proper input schemas with typed parameters and descriptions. However, the tool naming lacks action verbs (per pattern:tool naming guidance), descriptions are minimal (20-28 chars, below the 50-200 char ideal for LLM optimization), and there is no output schema documentation. The server automatically derives tool definitions from urfave/cli flags, which is a clever integration pattern but limits explicit control over parameter metadata. No error handling guidance, no confirmation steps for side effects, and tool descriptions do not explain WHEN to use each tool or WHAT it returns.
Calculate the sum of two numbers
say hello
Tool names lack action verbs. 'hello' and 'add' do not start with a verb indicating the action. Should be 'greet' or 'send_greeting' and 'calculate_sum' or 'add_numbers' to match pattern:tool naming guidance where 90% of A+ tools start with an action verb.
Descriptions are too short and lack LLM-optimization guidance. 'say hello' (9 chars) and 'Calculate the sum of two numbers' (32 chars) fall well below the recommended 50-200 character range. They do not explain WHEN to use the tool, WHAT it returns, or any prerequisites. Per pattern:tool-description, descriptions must be complete enough for LLM selection logic.
No output schema documented. Neither tool documents what the response looks like. LLMs cannot infer downstream tool call parameters or extract results without seeing the response structure. Per pattern:tool, output schema is mandatory.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 45 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 29 | - | v1 |
No error handling or recovery guidance. The toolHandler in command.go returns stderr as raw text on tool failure (lines showing 'isError: true, Content: [stderr]') with no guidance for the LLM on what to do next. Per pattern:recovery-guide, errors must tell the LLM actionable next steps.
Parameter descriptions are present but minimal. 'the name to say hello to' (28 chars) and 'the first number to add' (22 chars) lack context on constraints, format, or expected range. Per pattern:tool-description, param descriptions should include format, range, and constraints.
No documentation of parameter constraints or validation. The 'add' tool accepts 'first' and 'second' as numbers with no stated min/max, precision, or range limits. Per pattern:constrained-input, numeric parameters should declare bounds.
Potential command injection risk in toolHandler. While the code attempts to guard against recursion (line: 'if slices.Contains(args, "mcp")'), the general pattern of building command-line arguments from tool parameters and executing them via exec.CommandContext is inherently risky. Per pattern:tool-gateway, all agent-provided input must be sanitized. The current guard is narrow and does not prevent other forms of malicious input.