Skip to main content

INSTRUCTIONS

Constant INSTRUCTIONS 

Source
pub const INSTRUCTIONS: &str = "\
Query micromegas observability data (logs, metrics, traces) with SQL. Mandatory rules:
1. Every query must bound its time range with the begin/end arguments (for example begin=1h); never use WHERE time >= ... instead.
2. Every query must have a LIMIT unless it is a small aggregate. Results are cut at a row and byte cap.
3. Call list_views, then describe_view for each view you query: its description is binding (time windows, mandatory filters).
4. Use view_instance() for single-process or single-stream queries. thread_spans and async_events have no global view.
5. Call prepare_query first when a query might scan a lot, then execute_query with the same arguments.
Only read-only SELECT queries are accepted. The micromegas-query and micromegas-notebooks skills are served over the MCP skills extension.";
Expand description

The short rule list returned in the initialize result. Tool descriptions repeat the critical ones because not every client shows server instructions.