A forensic investigation platform for analyzing video streaming anomalies (slate/ad insertion issues) using AI-powered diagnosis with ClickHouse data analysis and vision classification
GhostSlate defines 5 tools with clear, domain-specific descriptions (avg 156 chars). All tools are read-only and well-scoped. However, critical gaps exist: (1) run_query and list_tables have minimal input schemas, run_query accepts only a bare 'query' string with no format/length constraints visible in the schema itself (constraints are enforced in code, not declared); (2) classify_frame and collect_diagnosis_evidence accept empty input objects, making their schemas trivial; (3) no output schemas are documented for any tool, forcing LLMs to infer result structure; (4) parameter descriptions are present but terse (e.g., 'The database name (default: ghostslate)' for list_tables lacks guidance on valid database names or discovery); (5) no error recovery guidance, tools fail silently without actionable next steps for the agent.
Classify the active scenario's server-selected video frame as "slate", "ad", or "content". Accepts no arguments; the model cannot select a file or timestamp. Returns classification, confidence, slate type, detected text, and visual summary.
Execute the server-rendered canonical loss attribution query for the investigation context to snapshot authoritative forensic evidence. Accepts no arguments. Must be called before finalization.
Conclude the investigation and publish the final grounded forensic diagnosis based on collected evidence. Accepts no arguments. Must be called alone in its turn as the final action.
List tables available in a ClickHouse database.
Execute a validated, read-only SQL query against approved GhostSlate ClickHouse tables. The server applies row, byte, memory, thread, and execution-time limits.
No output schemas documented for any tool. LLMs cannot infer result structure (fields, types, pagination). classify_frame returns 'classification, confidence, slate type, detected text, visual summary' but no JSON schema is visible.
run_query input schema lacks format constraints. Code enforces 1 - 20,000 char limit and regex validation, but schema only declares type:string. LLMs cannot see these constraints and may pass invalid queries.
classify_frame and collect_diagnosis_evidence accept empty input ({}). No parameters means LLMs cannot control behavior, these tools are context-dependent but lack documentation of what context they read or how to set it.
Inferred effective spec: 2025-06-18+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 54 | 2025-06-18+ | v2 |
No error recovery guidance. If run_query fails (invalid table, syntax error, timeout), the tool description does not tell the LLM what to do next (e.g., 'Try list_tables() first to see available tables').
finalize_investigation must be called alone in its turn, but this constraint is only documented in the description text, not enforced or signaled via tool annotations or schema. LLMs may batch it with other calls.