AI-augmented security research tools for network reconnaissance with input sanitization and prompt injection prevention
Single tool 'scan_ports' has a well-structured input schema with proper JSON Schema types and descriptions. Tool name is action-verb-based (scan_*), which is good. Description is 194 chars and explains the security context clearly. However, output schema is not documented in the visible code, only a PortResult struct is defined internally without being exposed to the MCP schema. Parameter descriptions are present and detailed (IP validation, port limits, timeout ranges). The tool includes security guardrails (loopback/multicast rejection, port count limits, timeout clamping) but lacks explicit error recovery guidance in the description. No tool annotations (readOnlyHint, destructiveHint, idempotentHint) are present.
Probe TCP ports on a specified IP address to determine which are open. ONLY use on targets you have explicit authorization to test. Accepts an IPv4 or IPv6 address and a list of port numbers. Returns open/closed status and service hints.
Output schema not documented. PortResult struct is defined but not exposed as part of the tool's documented return type. LLMs cannot plan downstream operations without knowing what fields to expect.
No tool annotations present. scan_ports should declare readOnlyHint=true (it only probes, does not modify state) to help agents reason about idempotency and retry safety.
Error handling lacks recovery guidance. Errors like 'invalid IP address' or 'loopback addresses not permitted' do not suggest next steps (e.g., 'Try a different target IP' or 'Use search_targets() to find authorized IPs').
Description includes security warnings but no explicit statement that this tool is READ_ONLY and safe to retry. Agents need explicit idempotency signals.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 58 | <=2025-11-25 | v2 |