Context
This issue tracks improvements to the SYSTEM_PROMPT constant in components/clp-mcp-server/clp_mcp_server/server/constants.py to provide more comprehensive guidance for LLM query generation.
Background
Discussion in PR #1401: #1401 (comment)
Improvements to address:
-
KQL Syntax specifics: Mention CLP's specific KQL syntax
-
Auto-generated keys: Explain handling of auto-generated keys that are queryable but not returned in responses
-
File-level metadata: Consider if/how to mention file-level metadata queries (pending clp-json support)
-
Timestamp handling:
- Specify timestamp granularity (Unix epoch in milliseconds/nanoseconds)
- Clarify which key to use for timestamps
- Address timezone considerations (see related issue about timezoneless timestamps)
-
Fuzzy match support: Clarify that CLP doesn't support fuzzy matches (e.g., "system error" won't match "system shutdown error")
-
Query validation: Evaluate if the current point about syntactic correctness actually improves query accuracy
Related
Context
This issue tracks improvements to the
SYSTEM_PROMPTconstant incomponents/clp-mcp-server/clp_mcp_server/server/constants.pyto provide more comprehensive guidance for LLM query generation.Background
Discussion in PR #1401: #1401 (comment)
Improvements to address:
KQL Syntax specifics: Mention CLP's specific KQL syntax
Auto-generated keys: Explain handling of auto-generated keys that are queryable but not returned in responses
File-level metadata: Consider if/how to mention file-level metadata queries (pending clp-json support)
Timestamp handling:
Fuzzy match support: Clarify that CLP doesn't support fuzzy matches (e.g., "system error" won't match "system shutdown error")
Query validation: Evaluate if the current point about syntactic correctness actually improves query accuracy
Related