Skip to content

Improve CLP MCP Server system prompt to cover KQL-specific guidance #1432

@coderabbitai

Description

@coderabbitai

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:

  1. KQL Syntax specifics: Mention CLP's specific KQL syntax

  2. Auto-generated keys: Explain handling of auto-generated keys that are queryable but not returned in responses

  3. File-level metadata: Consider if/how to mention file-level metadata queries (pending clp-json support)

  4. 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)
  5. Fuzzy match support: Clarify that CLP doesn't support fuzzy matches (e.g., "system error" won't match "system shutdown error")

  6. Query validation: Evaluate if the current point about syntactic correctness actually improves query accuracy

Related

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions