CoAnalyst: a LangGraph agent that triages Elastic Security alerts, correlates threat intel, and performs gated counter-reconnaissance with security mitigations
The server provides 4 tools with varying levels of documentation. Tool naming follows verb_noun conventions (chat_mode, custom_query_mode, standby_mode, counter_recon_mode), but the descriptions are substantial and well-structured to guide LLM usage. All tools have parameter descriptions. However, schemas lack critical type information beyond basic string types, no enum constraints are visible, and output schemas are entirely undocumented. Input schemas are present but minimal, they only define the request/target parameter as type 'string' with descriptions, but lack any validation, constraints, format specifications, or structural metadata expected in production-grade tools. The tool descriptions themselves are lengthy (200+ chars) and contain usage triggers and negation statements ("DO NOT use if..."), which is unusual and may confuse LLMs more than guide them. No visible error handling patterns, no pagination support (relevant for database query tools), and no documentation of return structures.
Use this tool for: 1. Analyzing, explaining, or interpreting the logs/data ALREADY retrieved in the conversation. 2. Answering general cybersecurity questions. 3. Greetings or small talk. DO NOT use this if the user specifically asks to perform a NEW search in the database.
Use this tool when the user asks to investigate an EXTERNAL IP address or Domain using tools like NMAP, WHOIS, DIG, CURL. Triggers: 'Scan this IP', 'Who owns this domain?', 'Check DNS records for...', 'Investigate attacker infrastructure'
Use this tool ONLY when the user asks to PERFORM A NEW SEARCH or QUERY in the database. Triggers: 'Find alerts', 'Check this IP', 'Search for...', 'Show logs from...' DO NOT use this if the user is just asking about the logs currently visible in the chat.
Use this tool ONLY when the user explicitly asks to wait, watch, or monitor for NEW incoming alerts.
Input schemas lack type constraints and validation rules. All tools accept only a bare 'string' parameter with no enums, patterns, length limits, or format specifications. This invites hallucinated or invalid input from LLMs and provides no self-documenting constraints.
Output schemas are completely undocumented. There is no specification of what fields are returned, their types, structure, or how downstream tools should consume the results. LLMs cannot plan tool chains or extract relevant data without knowing the response structure.
Tool descriptions use negation statements and complex usage triggers ('DO NOT use if...') rather than clear, concise explanations of what the tool does and when to use it. Descriptions are 150 - 200+ characters, which is at the upper bound of the recommended 10 - 1024 range and may waste tokens. Simplify to: action verb, key use case, and one prerequisite or dependency.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 45 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 47 | - | v1 |
No error handling patterns documented. Tools accept free-form strings from LLMs but provide no guidance on what errors look like, when they occur, or how the LLM should recover (retry, ask user, try alternative tool). This breaks agent resilience.
Query/search tools (custom_query_mode) lack pagination support. No limit, offset, page, or cursor parameters visible. If the tool returns hundreds of alerts, there is no way to bound results or iterate through pages, risking context window exhaustion.
counter_recon_mode parameter named 'target' is ambiguous. Description says 'IP address or Domain' but the parameter name does not disambiguate. Should be 'ip_or_domain' or separate 'ip_address' and 'domain_name' parameters to avoid LLM confusion about what formats are accepted.
standby_mode parameter description says 'Ignored.', this is not an actual description. The parameter should either be removed or its purpose should be documented. If it is genuinely unused, it signals poor API design.