Single tool with minimal documentation. Tool name 'run_go_code' lacks clear verb-noun convention and is overly generic ('run' is discouraged per patterns). Description is adequate but extremely brief (66 chars) and lacks critical context about side effects, prerequisites, or when to use it. Input schema exists but is minimal, only 'code' parameter with a generic string type and no constraints. No output schema documented. Missing parameter constraints (1MB limit mentioned in code but not in schema description). No error handling guidance for LLMs. HARD SCORING RULE: description at 66 chars is acceptable but lacks depth; schema has type but lacks constraints and output documentation.
Executes or analyzes Go code and returns the result
Tool name 'run_go_code' uses generic 'run' verb, which is discouraged. Patterns recommend specific verbs like 'execute_', 'test_', or 'analyze_'. Current name does not distinguish this from hypothetical tools like 'compile_go_code' or 'analyze_go_code'.
Input parameter 'code' has NO description in the schema. Parameter description is missing entirely, LLMs cannot infer whether this should be a complete Go program, a code snippet, a function, or something else.
No output schema documented. Tool description states 'returns the result' but does not specify the structure, format, or fields returned. LLMs cannot plan downstream actions without knowing output shape.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 8 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 39 | - | v1 |
Input parameter 'code' lacks constraints in schema description. Code size limit (1MB) is enforced in implementation but NOT documented in parameter description. LLMs cannot know this constraint and may attempt to pass oversized code.
Error handling does not guide LLM recovery. Errors are returned as plain strings ('Error: Code too long...', 'Build Error:', 'Runtime Error:'). Per pattern:recovery-guide, errors should suggest what to do next: 'Code exceeds 1MB limit, reduce code size or split into multiple files.' Current errors are not actionable for LLM retry/recovery logic.
Tool marked as IRREVERSIBLE (executes code) but description does NOT state this. Per pattern:command-tool, 'If the tool modifies state (creates, updates, deletes, sends), the description must say so.' Executing arbitrary Go code is clearly irreversible, LLMs need this warning to reason about consequences.
No dry-run or confirmation mechanism for irreversible operations. Per pattern:confirmation-request, 'Irreversible operations should support a dry-run or confirmation step.' Arbitrary code execution could cause side effects, a syntax check or sandbox confirmation would be safer.
No security or permission gating documented. Tool executes arbitrary Go code without restrictions. Per pattern:permission-gate and pattern:tool-gateway, code should be validated/sandboxed and access should be gated. Current implementation trusts all input.