investigator-mcp-server
v0.1.17MCP server for nano SOC operations — search, triage, investigate, hunt
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search
PRIMARY search tool. Execute an nPL (nano Pipe Language) query — Splunk-compatible piped syntax — against the SIEM log data. Use this for normal investigations because it is permission-safe, source-scope aware, and covers filters, tables, stats, and timecharts. Use `search_sql` only when nPL cannot express the query, such as a cross-table join, a prevalence-state aggregate, or direct `ext` JSON access. RESULT BOUNDARY: `limit` caps returned rows or aggregate groups, not the matching events used to compute an aggregate. The MCP surface refuses requests above 1000 rows and returns an actio…
| Parameter | Type | Description |
|---|---|---|
query * | string | The nPL query to execute. Supports search terms, field filters, and pipe commands. |
start_time * | string | Start of the search window. Relative (e.g. "-24h", "-7d", "-30m") or ISO 8601 timestamp. |
end_time | string | End of the search window. Defaults to "now". Relative or ISO 8601 timestamp. |
limit | integer | Maximum returned events or aggregate groups. Defaults to 100; this does not limit the events aggregated. MCP safety maximum is 1000. |
source_type | string | Filter to a specific log source type (e.g. "windows", "firewall", "dns", "proxy"). |
get_schema
Return the UDM (Unified Data Model) schema for the log store. Call this before writing SQL the first time in a session so you know which columns exist and avoid hallucinating field names. Returns: - `udm_fields`: explicit columns with name, column_name, data_type, category, description. Several hundred fields grouped by category (Auth, Network, Process, File, Enrichment, Prevalence, etc.). When `category` is set, this is filtered; the inventory below stays complete. - `all_categories`: every UDM category and its total field count (always full, even when `category` filter is set — gives…
| Parameter | Type | Description |
|---|---|---|
category | string | Optional. Filter UDM fields to a single category (e.g. "Network", "Process", "Auth", "Enrichment"). Omit to return all fields. |
include_ext | boolean | Whether to include observed ext field names. Defaults to true. |
explain_query
Show the compiled SQL that an nPL query would generate without executing it. Useful for understanding what a piped query translates to, debugging unexpected results, or verifying that timestamp partition pruning and indexed filters are being applied.
| Parameter | Type | Description |
|---|---|---|
query * | string | The nPL query to compile to SQL. |
start_time * | string | Start of the time range. Relative or ISO 8601 timestamp. |
end_time | string | End of the time range. Defaults to "now". Relative or ISO 8601 timestamp. |
get_field_values
Retrieve a limited, ranked list of the top values for a specific field in the log data. This is a value-discovery tool, not a population count or statistical sample. Counts cover only the returned top values; their sum is not the total number of matching events, and percentages are each value's share of the returned top-value counts only. The response reports `matching_event_count: null` deliberately. Use `search` with the same scope and an explicit `| stats count` when the investigation needs the matching population total. Useful for understanding the distribution of a field (e.g. top source…
| Parameter | Type | Description |
|---|---|---|
field * | string | The field name to get top values for (e.g. "src_endpoint.ip", "process.file.name", "actor.user.name", "dst_endpoint.port"). |
start_time * | string | Start of the time range. Relative or ISO 8601 timestamp. |
end_time | string | End of the time range. Defaults to "now". Relative or ISO 8601 timestamp. |
limit | integer | Maximum number of ranked values to return. Defaults to 100; does not turn the result into a sample or population total. |
query | string | Optional nPL query to scope the field values. Defaults to "*" (all events). |
list_saved_searches
List all saved searches. Saved searches are reusable nPL or SQL queries that analysts have bookmarked. Returns the name, query, query mode, and visibility of each saved search.
get_saved_search
Retrieve a specific saved search by its ID. Returns the full saved search details including the query, query mode, time range, and visibility settings.
| Parameter | Type | Description |
|---|---|---|
id * | string | The unique identifier of the saved search. |
save_search
Save an nPL or SQL query as a reusable saved search. Saved searches can be private, public, or shared with a group. Use this to bookmark useful hunting queries for later reuse.
| Parameter | Type | Description |
|---|---|---|
name * | string | A descriptive name for the saved search. |
query * | string | The nPL or SQL query to save. |
query_mode | string | The query language mode: "piped" for nPL or "sql" for raw SQL. Defaults to "piped". |
visibility | string | Who can see this saved search: "private", "public", or "group". |
search_sql
Advanced search tool. Run a ClickHouse SQL SELECT against the SIEM log store. Prefer `search` (nPL) for normal investigations; use raw SQL only for queries nPL cannot express, such as cross-table joins, prevalence-state aggregates, or direct `ext` JSON access. On first use in a session, call `get_schema` to load the column inventory. For canonical query recipes (prevalence lookups, top-N, time bucketing, ASOF identity joins, etc.) read the `nano://sql-guide` resource. PERFORMANCE RULES — follow every time: 1. Use one `WHERE` clause for the timestamp filter and every other predicate. Do n…
| Parameter | Type | Description |
|---|---|---|
sql * | string | The ClickHouse SELECT query. Use one WHERE clause and include a timestamp filter for partition pruning; do not write an explicit PREWHERE. |
end_time | string | End of the time range envelope. Relative, "now", or ISO 8601. Optional — defaults to "now". |
limit | integer | Maximum returned rows. Defaults to 100; MCP safety maximum is 1000. |
start_time | string | Start of the time range envelope. Relative ("-24h"), "now", or ISO 8601. Optional — defaults to 24h before end_time. |
list_alerts
List alerts from the SIEM with optional filters. Returns alert summaries including severity, status, rule name, and timestamps. Use this to review the current alert queue or find alerts matching specific criteria.
| Parameter | Type | Description |
|---|---|---|
assigned_to | string | Filter alerts assigned to a specific analyst user ID. |
limit | number | Maximum number of alerts to return (default 50). |
offset | number | Number of alerts to skip for pagination. |
rule_id | string | Filter alerts generated by a specific detection rule ID. |
severity | string | Filter by alert severity level. |
status | string | Filter by alert status. |
get_alert
Get full details for a single alert, including matched events, associated detection rule information, and AI triage hints. Use this to deeply inspect an alert during investigation.
| Parameter | Type | Description |
|---|---|---|
id * | string | The unique alert ID to retrieve. |
get_alert_counts
Get a summary breakdown of alert counts by severity and status. Useful for understanding the current alert landscape and prioritizing triage work.
list_cases
List cases with optional filters for status, severity, assignee, search text, and tags. Returns paginated case list with alert/entity counts.
| Parameter | Type | Description |
|---|---|---|
assigned_to | string | Filter by assigned user ID |
limit | number | Maximum number of cases to return |
offset | number | Offset for pagination |
search | string | Free-text search across case title and description |
severity | array | Filter by severity level(s) |
status | array | Filter by case status(es) |
tags | array | Filter by tag(s) |
get_case
Get full case detail including linked alerts, extracted entities, related cases, and investigation stats.
| Parameter | Type | Description |
|---|---|---|
id * | string | Case ID |
review_case
Load full investigation context for a case in a single call. Returns the case details, case wall history, and all linked notebooks with their entries. Use this as the FIRST tool call when an analyst wants to review, continue, or investigate an existing case — it loads all prior findings so you can pick up where the investigation left off.
| Parameter | Type | Description |
|---|---|---|
id * | string | Case ID or case number |
get_case_stats
Get case workload overview: counts by status and severity, average resolution time.
create_case
Create a new investigation case. Cases group related alerts and track investigation progress.
| Parameter | Type | Description |
|---|---|---|
severity * | string | Case severity level |
title * | string | Case title describing the investigation |
assigned_to | string | User ID to assign the case to |
description | string | Detailed description of the case |
priority | number | Priority (1 = highest) |
tags | array | Tags for categorization |
update_case
Update case metadata such as title, description, severity, or tags.
| Parameter | Type | Description |
|---|---|---|
id * | string | Case ID to update |
description | string | New case description |
severity | string | New severity level |
tags | array | New tags (replaces existing) |
title | string | New case title |
change_case_status
Update case status with optional disposition. Use disposition when resolving or closing a case to record the outcome.
| Parameter | Type | Description |
|---|---|---|
id * | string | Case ID |
status * | string | New case status |
disposition | string | Case disposition (typically set when resolving/closing) |
assign_case
Assign a case to a user for investigation.
| Parameter | Type | Description |
|---|---|---|
id * | string | Case ID |
user_id * | string | User ID to assign the case to |
add_alert_to_case
Link an alert to a case. Alerts provide the detection evidence for a case investigation.
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | Alert ID to link |
case_id * | string | Case ID to add the alert to |
is_primary | boolean | Whether this is the primary/triggering alert for the case |
add_case_wall_entry
Post a SHORT status update (1-3 plain sentences) to the case wall — the chronological activity log. The wall is not where investigation output goes: do NOT post detailed findings, markdown tables, timelines, or long analysis here. Those belong in the case notebook. To move accumulated investigation notes onto a case ("merge/attach/save my notes to case X"), use merge_notebook_into_case instead of this tool.
| Parameter | Type | Description |
|---|---|---|
case_id * | string | Case ID |
content * | string | Entry content (markdown supported) |
entry_type * | string | Type of wall entry |
is_internal | boolean | If true, entry is only visible to internal team (not shared externally) |
merge_notebook_into_case
Move an investigation notebook onto a case: every entry in the source notebook is copied into the case's own notebook, and the source is archived as `merged`. This is the tool for "merge/attach/save these notes into case X" — the notes land in the case notebook where investigation output belongs, NOT on the case wall (see add_case_wall_entry). If the case has no notebook yet, the source notebook BECOMES the case notebook instead, which keeps its entries in place but also makes it visible to everyone who can see the case — say so when reporting the result, because a private notebook stops b…
| Parameter | Type | Description |
|---|---|---|
case_id * | string | ID of the case to merge the notes into |
source_notebook_id * | string | ID of the notebook to merge (e.g. the current session notebook). Must not itself be a case notebook. |
merge_cases
Merge duplicate or related cases into a single target case. Source case alerts, entities, and wall entries are moved to the target.
| Parameter | Type | Description |
|---|---|---|
source_case_ids * | array | Case IDs to merge from (these cases will be closed as merged) |
target_case_id * | string | Case ID to merge into (the surviving case) |
list_notebooks
List investigation notebooks with optional filters. Returns notebooks with owner info and entry counts.
| Parameter | Type | Description |
|---|---|---|
case_id | string | Filter notebooks linked to a specific case |
limit | number | Maximum number of notebooks to return |
offset | number | Number of notebooks to skip for pagination |
status | string | Filter by notebook status |
get_notebook
Get a single notebook by ID, including metadata, owner info, and entry count.
| Parameter | Type | Description |
|---|---|---|
id * | string | Notebook ID |
get_notebook_entries
Read all entries in a notebook. Returns chronological list of notes, searches, AI suggestions, IOC markers, timeline markers, and other entry types.
| Parameter | Type | Description |
|---|---|---|
id * | string | Notebook ID |
find_notebooks_by_reference
Find notebooks that reference a specific entity such as an alert, detection rule, saved search, or case. Useful for discovering related investigations.
| Parameter | Type | Description |
|---|---|---|
reference_id * | string | ID of the referenced entity |
reference_type * | string | Type of the referenced entity |
create_notebook
Create a new investigation notebook. Notebooks track the investigative process including searches, findings, and analyst notes.
| Parameter | Type | Description |
|---|---|---|
title * | string | Title of the notebook |
visibility | string | Visibility level. Defaults to private if not specified. |
add_notebook_entry
Add an entry to a notebook. Entries capture investigation steps such as manual notes, executed searches, AI suggestions, IOC markers, and timeline events.
| Parameter | Type | Description |
|---|---|---|
content * | object | Entry content. Structure varies by entry_type (e.g. { text: "..." } for manual_note, { query: "...", results_summary: "..." } for search_executed) |
entry_type * | string | Type of notebook entry |
notebook_id * | string | ID of the notebook to add the entry to |
source_url | string | Optional URL linking back to the source of this entry (e.g. a search results page) |
add_notebook_reference
Link an entity or artifact to a notebook for cross-referencing. Creates a bidirectional link between the notebook and an alert, detection, saved search, or case.
| Parameter | Type | Description |
|---|---|---|
notebook_id * | string | ID of the notebook |
reference_id * | string | ID of the entity being referenced |
reference_type * | string | Type of entity being referenced |
reference_name | string | Optional human-readable name for the reference (e.g. rule name, alert title) |
update_notebook
Update notebook metadata such as title, status, or summary. Use this to close notebooks, pause investigations, or update the investigation summary.
| Parameter | Type | Description |
|---|---|---|
id * | string | Notebook ID |
status | string | New status for the notebook |
summary | string | Investigation summary or conclusion |
title | string | New title for the notebook |
get_dashboard_schema
READ THIS BEFORE AUTHORING A DASHBOARD. Returns the dashboard/panel authoring contract: the visualization types that actually work, the layout grid rules, the panel-query commands that are hard-rejected, how $variables substitute, and a complete worked example. The server stores `panels` and `layout` as opaque JSON and validates NOTHING on write, so a guessed panel shape saves happily and then breaks at every render. Do not guess it.
validate_dashboard
Check a dashboard you are about to save against every rule the renderer and backend enforce — panel ids matching layout items, grid bounds, overlaps, blocked commands, undeclared $variables, SQL panels with no time filter. Runs locally: no API call, no cost. Returns { valid, errors[], warnings[] }. Errors WILL break the dashboard. Fix them and re-validate before calling create_dashboard or update_dashboard.
| Parameter | Type | Description |
|---|---|---|
dashboard * | object | The full dashboard object: { name, description?, visibility?, layout, panels[] }. |
dashboard_panel_query
Run ONE panel's query and return its rows — the way to PROVE a panel works before you save it. A dashboard whose panels were never run is a dashboard of empty boxes. Use the same query, query_mode and time range the panel will use. If the query references $variables, pass them in `variables` and let the SERVER substitute them — hand-substituting does not reproduce the platform's semantics (an empty value removes its whole clause; a bare $var becomes *; $tokens inside quoted strings are never touched), so a hand-resolved query can return rows here and render differently in the app. Result…
| Parameter | Type | Description |
|---|---|---|
query * | string | The panel query, exactly as the panel will hold it. |
query_mode * | string | 'piped' for nPL, 'sql' for ClickHouse SQL. |
start_time * | string | Start of the window. Relative ("-24h", "-7d") or ISO 8601. |
bypass_cache | boolean | Skip the server-side result cache and recompute live. |
end_time | string | End of the window. Relative, "now", or ISO 8601. Defaults to now. |
panel | object | The panel this query belongs to: { id?, title?, visualizationType? }. ALWAYS pass this when you are building a dashboard. The nano desktop app watches your tool calls and draws each panel the moment y… |
variables | object | Values for any $variables the query references, e.g. { "host": "web-01" }. Substituted server-side, with the same semantics the dashboard uses. |
list_dashboards
List dashboards. Use this before creating one — the dashboard the user wants may already exist, and editing it beats adding a near-duplicate.
| Parameter | Type | Description |
|---|---|---|
filter | string | 'my' (owned by the caller) or 'all' (everything visible to them). |
get_dashboard
Fetch one dashboard in full, including its `panels` and `layout` JSON. This is what you edit: modify the panels/layout you get back and send the whole thing to update_dashboard.
| Parameter | Type | Description |
|---|---|---|
id * | string | The dashboard id (typeid, `dashboard_…`). |
create_dashboard
Save a NEW dashboard. Requires `dashboards:create`. Call validate_dashboard first, and dashboard_panel_query on each panel. Nothing on the server checks panel shape, so this endpoint will happily persist a dashboard that renders as a grid of broken boxes.
| Parameter | Type | Description |
|---|---|---|
dashboard * | object | The full dashboard: { name, description?, visibility?, layout, panels[], refresh_interval? }. See get_dashboard_schema. |
update_dashboard
Update an EXISTING dashboard. Requires `dashboards:edit`. PUT replaces `panels` and `layout` wholesale — there is no per-panel endpoint. To add a panel: get_dashboard, append to both arrays, send the whole thing back. Pass `expected_updated_at` (the `updated_at` you read) so a concurrent human edit returns 409 instead of being silently overwritten. Refusing to clobber someone is worth one retry.
| Parameter | Type | Description |
|---|---|---|
dashboard * | object | The fields to change: { name?, description?, layout?, panels?, refresh_interval? }. panels/layout are full replacements. |
id * | string | The dashboard id. |
expected_updated_at | string | The dashboard's `updated_at` as you last read it. Sending it turns a concurrent edit into a 409 rather than a silent overwrite. |
list_detections
List all detection rules from nano. Returns summary view: id, name, severity, mode, enabled status, match count. Use get_detection for full rule details including query and ai_triage_hints.
| Parameter | Type | Description |
|---|---|---|
enabled | boolean | Filter by enabled/disabled status |
mode | string | Filter by rule mode (staging → live → alerting lifecycle) |
severity | string | Filter by severity level |
get_detection
Get full detection rule details including the nPL query, MITRE ATT&CK mapping, ai_triage_hints (ignore_when/suspicious_when guidance), schedule, and match statistics. Essential for understanding what triggered an alert.
| Parameter | Type | Description |
|---|---|---|
id * | string | Detection rule ID (UUID) |
get_detection_matches
Get recent matches for a specific detection rule. Shows what the rule has been catching, including matched events. Useful for assessing rule quality and noise level.
| Parameter | Type | Description |
|---|---|---|
id * | string | Detection rule ID (UUID) |
get_prevalence
Check how common an artifact is across the environment. Returns host count, total occurrences, first/last seen, and whether it is considered rare. Works for file hashes, domains, and IP addresses. Critical for determining if something is suspicious — an artifact seen on 1 of 4000 hosts is far more interesting than one seen on 3500.
| Parameter | Type | Description |
|---|---|---|
type * | string | Artifact type to check prevalence for |
value * | string | The artifact value (hash, domain) |
get_rare_artifacts
Find rare artifacts in the environment — things seen on fewer than the rarity threshold number of hosts. Useful for hunting: rare artifacts are more likely to be suspicious. Returns artifacts sorted by host count (rarest first).
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum results to return (default: 50) |
offset | number | Offset for pagination |
type | string | Filter by artifact type |
window | string | Time window (e.g., "24h", "7d", "30d") |
get_new_artifacts
Find artifacts seen for the first time recently. New artifacts in an environment warrant attention — they may indicate new software, lateral movement, or compromise. Returns artifacts sorted by first_seen (newest first).
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum results to return (default: 50) |
offset | number | Offset for pagination |
since | string | Show artifacts first seen after this time (ISO 8601 or relative like "-24h") |
type | string | Filter by artifact type |
get_risky_entities
Get the top entities by risk score — who or what is most suspicious right now. Returns entities ranked by accumulated risk from detection rule matches. Use this to prioritize investigation: high-risk entities deserve attention first.
| Parameter | Type | Description |
|---|---|---|
entity_type | string | Filter by entity type (e.g., "ip", "user", "host") |
limit | number | Maximum entities to return (default: 20) |
min_score | number | Minimum risk score threshold |
window | string | Time window for risk calculation (default: 24h) |
get_risk_overview
Risk landscape summary: how many entities exceed each risk level (critical/high/medium/low), total findings, and average risk score. Provides both 24-hour and 7-day views. Good for shift briefings and trend assessment.
get_entity_risk_timeline
Get risk score over time for a specific entity. Shows how risk has escalated or decreased, useful for understanding whether a situation is getting worse. Helps distinguish ongoing attacks from one-time events.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity value (IP, username, hostname, etc.) |
entity_type | string | Entity type (e.g., "ip", "user", "host") |
get_entity_risk_activity
Daily finding counts per entity over time — the risk "heatmap". Shows WHEN an entity accrued risk (a steady drip vs a sudden burst), which helps tell an ongoing campaign from a one-off spike. Pass the entities you care about; returns a per-day count series for each.
| Parameter | Type | Description |
|---|---|---|
entities * | array | Entities to fetch activity for. |
reset_entity_risk
Reset ONE entity's risk score to baseline after it has been investigated — e.g. a confirmed false positive or sanctioned red-team / IT activity. DESTRUCTIVE: it clears the accumulated score (underlying alerts and cases are untouched) and is audit-logged with your reason. Only reset an entity you have actually reviewed; never reset merely to "clean up" the leaderboard. Requires the risk:clear permission — the caller's key may not have it.
| Parameter | Type | Description |
|---|---|---|
entity * | string | Entity value to reset (IP, username, hostname, …) |
reason * | string | Why the reset is justified (audited). Be specific — this is the record. |
entity_type | string | Entity type (e.g., "user", "ip", "host") |
get_entity_context
Get rich context for any entity (IP, user, host, domain, hash). Performs a composite enrichment: searches recent activity, checks risk score, looks up alerts and cases involving this entity. This is the investigation pivot tool — call it when you encounter an entity and need to decide "is this interesting?"
| Parameter | Type | Description |
|---|---|---|
entity_type * | string | Type of entity to investigate |
value * | string | Entity value (IP address, username, hostname, domain, or hash) |
lookup_ip
GeoIP + ASN enrichment for an IP address. Returns country, continent, ASN number, AS name, and AS domain. Useful for determining if an IP is from an expected geography or a suspicious location.
| Parameter | Type | Description |
|---|---|---|
ip * | string | IP address to look up |
get_mitre_technique
Get MITRE ATT&CK data including all techniques and tactics. Returns the full ATT&CK framework data with technique details, descriptions, and mappings. Use this to understand what adversary behaviors look like and how they map to detection rules.
| Parameter | Type | Description |
|---|---|---|
id | string | MITRE technique ID (e.g., "T1071", "T1059.001") — optional, returns all data if not specified |
get_mitre_coverage
Get detection coverage mapped to the MITRE ATT&CK framework. Shows which techniques have detection rules, total vs covered technique counts, and coverage percentage. Identifies gaps in detection coverage.
get_source_types
Get available log source types in the SIEM. Essential for building correct queries — knowing what source types exist (e.g., "windows_security", "sysmon", "firewall_paloalto") determines which fields and events are available. Call this before building queries for unfamiliar data types.
get_org_context
Get organizational context: company name, industry, compliance frameworks, internal IP ranges, critical assets, and business hours. This context helps tailor investigations — e.g., activity outside business hours may be more suspicious, internal IP ranges help distinguish internal vs external traffic.
health_check
Check SIEM health status including ClickHouse and PostgreSQL connectivity. Use this to verify the system is operational before running searches, or to diagnose why queries may be failing.
get_audit_trail
Query the SIEM audit trail. Shows all security-relevant actions including searches executed, alerts triaged, cases created/updated, and detection rule changes. Filter by user, action type, resource type, time range, and success/failure. Also tracks Claude's own actions through the MCP server.
| Parameter | Type | Description |
|---|---|---|
action | string | Filter by action type (e.g., "search:execute", "alert:close", "case:create") |
end_time | string | End time filter (ISO 8601) |
limit | number | Maximum entries to return (default: 50) |
resource_type | string | Filter by resource type (e.g., "alert", "case", "detection") |
start_time | string | Start time filter (ISO 8601) |
user_id | string | Filter by user ID |
list_log_sources
List all log-source parsers. Returns a summary (id, name, source_type, deployed/validated/enabled, kind). Optionally filter. Use get_log_source for the full parser_vrl and metadata.
| Parameter | Type | Description |
|---|---|---|
deployed | boolean | Filter by deployed status. |
enabled | boolean | Filter by enabled status. |
kind | string | Filter by parser kind. |
source_type | string | Filter to one source_type (case-insensitive). |
get_log_source
Get one log source in full — including parser_vrl, source_config, match criteria, validated/deployed flags, and timestamps. Use before update_log_source so you edit against the current VRL.
| Parameter | Type | Description |
|---|---|---|
id * | string | Log source id (typeid, e.g. "logsource_..."). |
validate_vrl
Compile-check VRL without saving. Returns { valid, errors, diagnostics } where diagnostics carry line/col + a code (e.g. E651, E203). ALWAYS run this until valid before saving. Read the nanosiem://reference/vrl-parsers resource first to avoid the common compiler errors.
| Parameter | Type | Description |
|---|---|---|
vrl_code * | string | The complete VRL parser source. |
test_parse_sample
Run VRL against ONE sample log line and return the parsed output { success, output, extracted_field_count, error }. Inspect `output.udm.*` to confirm fields mapped correctly. Iterate validate_vrl + test_parse_sample until the UDM mapping is right, THEN save.
| Parameter | Type | Description |
|---|---|---|
sample_log * | string | A single raw log line to parse (goes in .message). |
vrl_code * | string | The VRL parser source. |
extension_vrl | string | Optional parser-extension VRL chained after vrl_code. |
test_parse_live
Test VRL against real recent events for an already-ingested source_type (pulled from ClickHouse), comparing the new parse against the currently deployed one. Use this when refining a parser for a source_type that is already flowing. Capped at 20 events.
| Parameter | Type | Description |
|---|---|---|
source_type * | string | Source type whose live events to pull. |
vrl_code * | string | The new/edited VRL to test. |
current_vrl | string | Currently deployed VRL, for side-by-side comparison. |
limit | number | Events to test (default 10, max 20). |
create_log_source
Save a new parser as a DRAFT (validated server-side, NOT deployed — call deploy_log_source after). Required: `name`, `source_type`, `parser_vrl`. For an HTTP/routed feed (the common case), set `source_type: "routed"` and `match_values` to the source_type value(s) your sender tags events with — the central router dispatches to this parser by those values. Omit `source_config` (defaults to {}). A routed feed ALSO needs a routing rule on the ingress + a redeploy of it — see create_routing_rule / deploy_source_config.
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-readable parser name. |
parser_vrl * | string | The complete, validated VRL parser source. |
source_type * | string | Either the literal source_type this parser claims (e.g. "apache_http_server"), OR the sentinel "routed" for an HTTP/routed feed whose events the central router dispatches by `match_values`. |
category | string | |
description | string | |
match_field | string | Advanced: the event field the router matches on. Defaults to source_type; leave unset for the normal routed flow. |
match_pattern | string | Advanced: a regex the router matches against match_field, instead of exact match_values. |
match_values | array | The source_type value(s) this parser claims for routing — the central router delivers events tagged with any of these here. For an HTTP feed this is what your sender puts in the `X-Source-Type` head… |
namespace | string | Identity-resolution namespace. Defaults to "default". |
product | string | |
source_config | object | Transport-specific config. Omit for routed/HTTP (defaults to {}). |
timezone | string | IANA timezone for offset-less timestamps. Defaults to "UTC". |
vendor | string |
update_log_source
Update an existing parser. Only the fields you pass change; everything else is left alone. This writes the WORKING COPY only — it does not go live. To make the change live call publish_log_source (NOT deploy_log_source, which redeploys the previously published version and would silently ship the old VRL). Fetch get_log_source first to edit against current state.
| Parameter | Type | Description |
|---|---|---|
id * | string | Log source id (typeid). |
category | string | |
description | string | |
enabled | boolean | |
match_field | string | Advanced: event field the router matches on. Defaults to source_type. |
match_pattern | string | Advanced: a regex the router matches against match_field instead of match_values. |
match_values | array | The source_type value(s) this parser claims for routing (see create_log_source). Replaces the existing set. |
name | string | |
namespace | string | |
parser_vrl | string | |
product | string | |
source_type | string | |
timezone | string | |
vendor | string |
publish_log_source
Make a parser live: promotes the saved working copy to a new active version, then deploys it to Vector. THIS IS THE TOOL TO USE AFTER ANY parser_vrl CHANGE — deploy_log_source redeploys the previously published version and would silently ship the old VRL. Validates the working copy first and fails without creating a version if it does not compile. Still best-effort at the Vector reload: wait ~1 minute, then call get_log_source_health to confirm events are actually flowing before telling the user it is live.
| Parameter | Type | Description |
|---|---|---|
id * | string | Log source id (typeid). |
get_log_source_draft_status
Whether a parser's working copy has unpublished changes, plus the active version number and the VRL currently published. Use it to tell 'my edit is live' from 'my edit is saved but a deploy would ship the old VRL'. has_draft_changes: true means publish_log_source is still needed.
| Parameter | Type | Description |
|---|---|---|
id * | string | Log source id (typeid). |
deploy_log_source
Redeploy a parser's ALREADY-PUBLISHED version to Vector (writes config + triggers reload). This does NOT pick up unpublished edits — if you changed parser_vrl, use publish_log_source instead. Use deploy to re-push an unchanged parser, e.g. after a routing change or to retry a failed reload. IMPORTANT: best-effort — it can report success even if Vector did not reload. After deploying, wait ~1 minute then call get_log_source_health to confirm events are actually flowing before telling the user it is live.
| Parameter | Type | Description |
|---|---|---|
id * | string | Log source id (typeid). |
undeploy_log_source
Take a deployed parser offline (removes it from the running Vector config).
| Parameter | Type | Description |
|---|---|---|
id * | string | Log source id (typeid). |
get_log_source_health
Health metrics for a parser: total/24h/last-hour event counts, last_event_at, freshness, parse_errors_24h, and a health_status (healthy | stale | no_data | disabled | error). The honest way to confirm a deploy actually worked.
| Parameter | Type | Description |
|---|---|---|
id * | string | Log source id (typeid). |
get_log_source_deployments
Deployment history for a parser (deploy/undeploy actions, status, error_message). Use to diagnose a failed or silent deploy.
| Parameter | Type | Description |
|---|---|---|
id * | string | Log source id (typeid). |
list_source_config_types
List the available ingress transport drivers (HTTP, Kafka, AWS S3, GCP Pub/Sub, Splunk HEC, Vector) with their match_field presets and whether they need credentials. Use to understand how events reach a parser before adding routing rules.
list_source_configs
List configured ingress transports (the connections events arrive on). Each carries routing rules that map events to a parser source_type.
| Parameter | Type | Description |
|---|---|---|
config_type | string | Filter by driver (http, kafka, aws_s3, gcp_pubsub, splunk_hec, vector). |
enabled | boolean |
create_routing_rule
Add a routing rule to a source configuration so matching events activate a parser. The rule maps a match_field/match_type/match_value to a target_source_type (which must equal a parser's source_type). Tip: run check_rule_reachability first.
| Parameter | Type | Description |
|---|---|---|
match_field * | string | Field to match on (e.g. "source_type", "topic", "sourcetype"). See list_source_config_types for presets. |
match_type * | string | |
source_config_id * | string | Source configuration id (typeid). |
target_source_type * | string | Parser source_type to route matching events to. |
match_value | string | Value to match (omit for match_type "default"). |
priority | number | Lower = evaluated first. Optional. |
check_rule_reachability
Verify a candidate routing rule can actually deliver events to a parser before you create it: checks the source config is enabled + deployed, a parser exists for target_source_type, and (for Kafka) that a broker is reachable. Returns warnings explaining any gap.
| Parameter | Type | Description |
|---|---|---|
match_field * | string | |
match_type * | string | |
match_value * | string | |
source_config_id * | string | Source configuration id (typeid). |
target_source_type * | string |
deploy_source_config
Redeploy an ingress transport so a routing rule just added to it takes effect. REQUIRED after create_routing_rule for the rule to route live traffic. Best-effort like deploy_log_source — confirm with get_log_source_health afterwards.
| Parameter | Type | Description |
|---|---|---|
id * | string | Source configuration id (typeid). |
undeploy_source_config
Take an ingress transport offline (removes it + its routing rules from the running Vector config).
| Parameter | Type | Description |
|---|---|---|
id * | string | Source configuration id (typeid). |
list_parser_repositories
List connected parser repositories (upstream libraries of prebuilt parsers, e.g. nano-rs/parsers). Returns sync status and parser_count per repo.
sync_parser_repository
Pull the latest parsers from an upstream repository into the local cache (async — returns immediately). Run before list_repository_parsers if the cache is stale.
| Parameter | Type | Description |
|---|---|---|
repository_id * | string | Parser repository id (typeid). |
list_repository_parsers
Browse the prebuilt parsers available in a repository. Returns a summary per parser (path, name, category, vendor/product, whether already imported). Import one with import_parser.
| Parameter | Type | Description |
|---|---|---|
repository_id * | string | Parser repository id (typeid). |
category | string | Filter by category. |
search | string | Filter by name/description substring. |
import_parser
Import a prebuilt parser from a repository as a DRAFT log source (not deployed). "linked" (default) tracks upstream updates; "forked" detaches a private copy. After import, deploy_log_source to activate it.
| Parameter | Type | Description |
|---|---|---|
path * | string | File path of the parser within the repo (from list_repository_parsers). |
repository_id * | string | Parser repository id (typeid). |
import_type | string | Defaults to "linked". |
ingestion_method | string | |
source_type | string | Override the source_type the parser claims (e.g. "apache"). Optional. |
onboarding_requirements
What a transport needs to be onboarded: the connection_config fields to collect (and which are required), whether a stored credential is needed, and the routing match_field convention. Call this FIRST when a user wants to onboard a feed, so you ask exactly the right questions for their transport. Omit config_type to list all transports.
| Parameter | Type | Description |
|---|---|---|
config_type | string | Transport to describe (e.g. "gcp_pubsub"). Omit for all. |
import_credential_from_file
Read a credential file off the LOCAL disk (e.g. a GCP service-account JSON key the user points you at, like ~/Documents/key.json) and store it as an encrypted credential — WITHOUT the secret ever passing through this conversation. The file must sit inside the user's home directory or the working directory, and must parse as the declared provider's shape (gcp_pubsub → a service_account JSON with a private_key; aws_s3 → JSON with access_key_id + secret_access_key). Returns only a credential_id to reference from create_source_config. Requires credentials:create (admin).
| Parameter | Type | Description |
|---|---|---|
path * | string | Local filesystem path to the credential file (a leading ~ expands to home). Must resolve inside the user's home directory or the working directory. |
provider * | string | Which transport the credential is for. gcp_pubsub = a service-account JSON key; aws_s3 = a JSON file with access_key_id + secret_access_key. |
name | string | A name for the stored credential (defaults from the provider + file name). |
create_credential
Store a cloud credential from values the user gives you in chat (NOT from a file — use import_credential_from_file for a GCP key on disk). Use for AWS keys or Kafka SASL typed directly. The secret is encrypted server-side; only metadata is returned. Requires credentials:create (admin).
| Parameter | Type | Description |
|---|---|---|
credentials * | object | Provider secret. aws_s3 → {access_key_id, secret_access_key, session_token?, assume_role_arn?}; gcp_pubsub → {credentials_json}; kafka → {sasl_mechanism?, sasl_username?, sasl_password?, tls_ena… |
name * | string | A name for the stored credential. |
provider * | string | Credential provider. |
description | string | |
region | string | AWS region, for aws_s3. |
create_source_config
Create an ingress transport (source configuration) — the connection a pull source (Kafka / S3 / Pub-Sub) or HEC arrives on. Pass connection_config per onboarding_requirements, a credential_id (from import_credential_from_file / create_credential) for credentialed transports, and optionally routing_rules to map incoming events to a parser source_type in the same call. NOT deployed — call deploy_source_config after. HTTP/routed needs no source config; just create + deploy the parser.
| Parameter | Type | Description |
|---|---|---|
config_type * | string | Transport driver. |
connection_config * | object | Transport-specific settings (see onboarding_requirements). {} for splunk_hec. |
name * | string | A name for the transport. |
credential_id | string | Stored credential id, for kafka / aws_s3 / gcp_pubsub. |
default_source_type | string | Fallback source_type for pull-source events matching no routing rule. |
routing_rules | array | Optional routing rules to create with the transport. Each maps matching events to a parser source_type. |
hunt_build_census
STEP 1 of recon. Build the telemetry census: one row per source type, with volume, field population, reporter counts, history depth and health. The server computes this. It is deterministic — the same estate gives the same numbers — and it is NOT yours to re-derive from searches. The Profile page and the Hunting rail badge are both tallied from the stored census, so a hand-rolled count makes two screens disagree. Takes no arguments: the window and the probed fields are fixed server-side, precisely so two runs are comparable. Returns `{observed_at, window_hours, census[], degraded, degra…
hunt_huntable_surface
STEP 2 of recon. Build the huntable surface: every ATT&CK technique bucketed as covered / gap / blind / unmapped, keyed to TELEMETRY rather than to rules. The question it answers is "could we even look", which is distinct from "do we have a rule": - `covered` — telemetry is live and a rule is already on it. - `gap` — telemetry is live and nothing is watching. THIS is what a hunt is for, and these are the only techniques `hunt_propose_drafts` should draw from. - `blind` — no live source maps to it. Sourcing work, not a hunt. A hunt here can never run. - `unmapped` — nano has no…
hunt_save_profile
STEP 3 of recon. Store the profile. SEND ONLY WHAT YOU WROTE: the `fingerprint`, and `actor_weighting` if you have evidence for one. Do NOT send the census or the huntable surface back. You did not author them, the server recomputes both at save time from the same reads that produced them, and a profile computed in one pass is more consistent than one stitched from two calls minutes apart. Copying them back costs you the context you need to actually reason — that is not a style note, it is the failure this call was rebuilt to end. THE FINGERPRINT IS THE JUDGEMENT, and it is the only part o…
| Parameter | Type | Description |
|---|---|---|
fingerprint * | object | Your reading of the estate. Sentences, not scores. |
actor_weighting | array | Optional. Threat actors whose techniques land in THIS estate's gaps. Omit it rather than guessing — an unevidenced actor list is worse than none. |
degraded | boolean | True if the census or the surface came back degraded — this profile understates reality. |
degraded_detail | string | What degraded, in one line. Required whenever `degraded` is true. |
hunt_propose_drafts
STEP 4 of recon. Turn hunt gaps into DRAFT hunts. NOTHING YOU PROPOSE HERE WILL EVER SCHEDULE ITSELF. Every draft lands disabled with no cron; the insert writes `schedule_cron = NULL, enabled = FALSE` as literals, so there is no field to set and no way to ask. Put the cadence you have in mind in `suggested_cadence` as PROSE ("weekly", "daily during business hours") — a human reads it, decides, and enables the hunt themselves. A cron expression there is rejected. PROPOSE ONLY FOR GAPS THE ESTATE CAN ACTUALLY HUNT. Draw from techniques the surface marked `gap` — telemetry live, nothing wat…
| Parameter | Type | Description |
|---|---|---|
drafts * | array | The proposals. At most 25. |