investigator-mcp-server

v0.1.17
@nano-rs/investigator-mcp-server Checked 3 days ago Published 23 days ago

MCP 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.

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…

ParameterTypeDescription
categorystringOptional. Filter UDM fields to a single category (e.g. "Network", "Process", "Auth", "Enrichment"). Omit to return all fields.
include_extbooleanWhether 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.

ParameterTypeDescription
query *stringThe nPL query to compile to SQL.
start_time *stringStart of the time range. Relative or ISO 8601 timestamp.
end_timestringEnd 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…

ParameterTypeDescription
field *stringThe field name to get top values for (e.g. "src_endpoint.ip", "process.file.name", "actor.user.name", "dst_endpoint.port").
start_time *stringStart of the time range. Relative or ISO 8601 timestamp.
end_timestringEnd of the time range. Defaults to "now". Relative or ISO 8601 timestamp.
limitintegerMaximum number of ranked values to return. Defaults to 100; does not turn the result into a sample or population total.
querystringOptional 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.

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…

ParameterTypeDescription
sql *stringThe ClickHouse SELECT query. Use one WHERE clause and include a timestamp filter for partition pruning; do not write an explicit PREWHERE.
end_timestringEnd of the time range envelope. Relative, "now", or ISO 8601. Optional — defaults to "now".
limitintegerMaximum returned rows. Defaults to 100; MCP safety maximum is 1000.
start_timestringStart 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.

ParameterTypeDescription
assigned_tostringFilter alerts assigned to a specific analyst user ID.
limitnumberMaximum number of alerts to return (default 50).
offsetnumberNumber of alerts to skip for pagination.
rule_idstringFilter alerts generated by a specific detection rule ID.
severitystringFilter by alert severity level.
statusstringFilter 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.

ParameterTypeDescription
id *stringThe 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.

ParameterTypeDescription
assigned_tostringFilter by assigned user ID
limitnumberMaximum number of cases to return
offsetnumberOffset for pagination
searchstringFree-text search across case title and description
severityarrayFilter by severity level(s)
statusarrayFilter by case status(es)
tagsarrayFilter by tag(s)

get_case

Get full case detail including linked alerts, extracted entities, related cases, and investigation stats.

ParameterTypeDescription
id *stringCase 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.

ParameterTypeDescription
id *stringCase 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.

ParameterTypeDescription
severity *stringCase severity level
title *stringCase title describing the investigation
assigned_tostringUser ID to assign the case to
descriptionstringDetailed description of the case
prioritynumberPriority (1 = highest)
tagsarrayTags for categorization

update_case

Update case metadata such as title, description, severity, or tags.

ParameterTypeDescription
id *stringCase ID to update
descriptionstringNew case description
severitystringNew severity level
tagsarrayNew tags (replaces existing)
titlestringNew case title

change_case_status

Update case status with optional disposition. Use disposition when resolving or closing a case to record the outcome.

ParameterTypeDescription
id *stringCase ID
status *stringNew case status
dispositionstringCase disposition (typically set when resolving/closing)

assign_case

Assign a case to a user for investigation.

ParameterTypeDescription
id *stringCase ID
user_id *stringUser 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.

ParameterTypeDescription
alert_id *stringAlert ID to link
case_id *stringCase ID to add the alert to
is_primarybooleanWhether 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.

ParameterTypeDescription
case_id *stringCase ID
content *stringEntry content (markdown supported)
entry_type *stringType of wall entry
is_internalbooleanIf 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…

ParameterTypeDescription
case_id *stringID of the case to merge the notes into
source_notebook_id *stringID 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.

ParameterTypeDescription
source_case_ids *arrayCase IDs to merge from (these cases will be closed as merged)
target_case_id *stringCase ID to merge into (the surviving case)

list_notebooks

List investigation notebooks with optional filters. Returns notebooks with owner info and entry counts.

ParameterTypeDescription
case_idstringFilter notebooks linked to a specific case
limitnumberMaximum number of notebooks to return
offsetnumberNumber of notebooks to skip for pagination
statusstringFilter by notebook status

get_notebook

Get a single notebook by ID, including metadata, owner info, and entry count.

ParameterTypeDescription
id *stringNotebook 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.

ParameterTypeDescription
id *stringNotebook 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.

ParameterTypeDescription
reference_id *stringID of the referenced entity
reference_type *stringType of the referenced entity

create_notebook

Create a new investigation notebook. Notebooks track the investigative process including searches, findings, and analyst notes.

ParameterTypeDescription
title *stringTitle of the notebook
visibilitystringVisibility 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.

ParameterTypeDescription
content *objectEntry content. Structure varies by entry_type (e.g. { text: "..." } for manual_note, { query: "...", results_summary: "..." } for search_executed)
entry_type *stringType of notebook entry
notebook_id *stringID of the notebook to add the entry to
source_urlstringOptional 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.

ParameterTypeDescription
notebook_id *stringID of the notebook
reference_id *stringID of the entity being referenced
reference_type *stringType of entity being referenced
reference_namestringOptional 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.

ParameterTypeDescription
id *stringNotebook ID
statusstringNew status for the notebook
summarystringInvestigation summary or conclusion
titlestringNew title for the notebook

share_notebook

Change the sharing settings of a notebook. Control who can view the notebook by setting visibility and optionally specifying group access.

ParameterTypeDescription
id *stringNotebook ID
visibility *stringNew visibility level for the notebook
group_idsarrayGroup IDs to share with when visibility is "shared"

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.

ParameterTypeDescription
dashboard *objectThe 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…

ParameterTypeDescription
query *stringThe panel query, exactly as the panel will hold it.
query_mode *string'piped' for nPL, 'sql' for ClickHouse SQL.
start_time *stringStart of the window. Relative ("-24h", "-7d") or ISO 8601.
bypass_cachebooleanSkip the server-side result cache and recompute live.
end_timestringEnd of the window. Relative, "now", or ISO 8601. Defaults to now.
panelobjectThe 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…
variablesobjectValues 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.

ParameterTypeDescription
filterstring'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.

ParameterTypeDescription
id *stringThe 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.

ParameterTypeDescription
dashboard *objectThe 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.

ParameterTypeDescription
dashboard *objectThe fields to change: { name?, description?, layout?, panels?, refresh_interval? }. panels/layout are full replacements.
id *stringThe dashboard id.
expected_updated_atstringThe 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.

ParameterTypeDescription
enabledbooleanFilter by enabled/disabled status
modestringFilter by rule mode (staging → live → alerting lifecycle)
severitystringFilter 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.

ParameterTypeDescription
id *stringDetection 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.

ParameterTypeDescription
id *stringDetection 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.

ParameterTypeDescription
type *stringArtifact type to check prevalence for
value *stringThe 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).

ParameterTypeDescription
limitnumberMaximum results to return (default: 50)
offsetnumberOffset for pagination
typestringFilter by artifact type
windowstringTime 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).

ParameterTypeDescription
limitnumberMaximum results to return (default: 50)
offsetnumberOffset for pagination
sincestringShow artifacts first seen after this time (ISO 8601 or relative like "-24h")
typestringFilter 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.

ParameterTypeDescription
entity_typestringFilter by entity type (e.g., "ip", "user", "host")
limitnumberMaximum entities to return (default: 20)
min_scorenumberMinimum risk score threshold
windowstringTime 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.

ParameterTypeDescription
entity *stringEntity value (IP, username, hostname, etc.)
entity_typestringEntity 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.

ParameterTypeDescription
entities *arrayEntities 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.

ParameterTypeDescription
entity *stringEntity value to reset (IP, username, hostname, …)
reason *stringWhy the reset is justified (audited). Be specific — this is the record.
entity_typestringEntity 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?"

ParameterTypeDescription
entity_type *stringType of entity to investigate
value *stringEntity 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.

ParameterTypeDescription
ip *stringIP 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.

ParameterTypeDescription
idstringMITRE 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.

ParameterTypeDescription
actionstringFilter by action type (e.g., "search:execute", "alert:close", "case:create")
end_timestringEnd time filter (ISO 8601)
limitnumberMaximum entries to return (default: 50)
resource_typestringFilter by resource type (e.g., "alert", "case", "detection")
start_timestringStart time filter (ISO 8601)
user_idstringFilter 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.

ParameterTypeDescription
deployedbooleanFilter by deployed status.
enabledbooleanFilter by enabled status.
kindstringFilter by parser kind.
source_typestringFilter 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.

ParameterTypeDescription
id *stringLog 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.

ParameterTypeDescription
vrl_code *stringThe 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.

ParameterTypeDescription
sample_log *stringA single raw log line to parse (goes in .message).
vrl_code *stringThe VRL parser source.
extension_vrlstringOptional 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.

ParameterTypeDescription
source_type *stringSource type whose live events to pull.
vrl_code *stringThe new/edited VRL to test.
current_vrlstringCurrently deployed VRL, for side-by-side comparison.
limitnumberEvents 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.

ParameterTypeDescription
name *stringHuman-readable parser name.
parser_vrl *stringThe complete, validated VRL parser source.
source_type *stringEither 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`.
categorystring
descriptionstring
match_fieldstringAdvanced: the event field the router matches on. Defaults to source_type; leave unset for the normal routed flow.
match_patternstringAdvanced: a regex the router matches against match_field, instead of exact match_values.
match_valuesarrayThe 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…
namespacestringIdentity-resolution namespace. Defaults to "default".
productstring
source_configobjectTransport-specific config. Omit for routed/HTTP (defaults to {}).
timezonestringIANA timezone for offset-less timestamps. Defaults to "UTC".
vendorstring

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.

ParameterTypeDescription
id *stringLog source id (typeid).
categorystring
descriptionstring
enabledboolean
match_fieldstringAdvanced: event field the router matches on. Defaults to source_type.
match_patternstringAdvanced: a regex the router matches against match_field instead of match_values.
match_valuesarrayThe source_type value(s) this parser claims for routing (see create_log_source). Replaces the existing set.
namestring
namespacestring
parser_vrlstring
productstring
source_typestring
timezonestring
vendorstring

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.

ParameterTypeDescription
id *stringLog 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.

ParameterTypeDescription
id *stringLog 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.

ParameterTypeDescription
id *stringLog source id (typeid).

undeploy_log_source

Take a deployed parser offline (removes it from the running Vector config).

ParameterTypeDescription
id *stringLog 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.

ParameterTypeDescription
id *stringLog 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.

ParameterTypeDescription
id *stringLog 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.

ParameterTypeDescription
config_typestringFilter by driver (http, kafka, aws_s3, gcp_pubsub, splunk_hec, vector).
enabledboolean

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.

ParameterTypeDescription
match_field *stringField to match on (e.g. "source_type", "topic", "sourcetype"). See list_source_config_types for presets.
match_type *string
source_config_id *stringSource configuration id (typeid).
target_source_type *stringParser source_type to route matching events to.
match_valuestringValue to match (omit for match_type "default").
prioritynumberLower = 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.

ParameterTypeDescription
match_field *string
match_type *string
match_value *string
source_config_id *stringSource 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.

ParameterTypeDescription
id *stringSource configuration id (typeid).

undeploy_source_config

Take an ingress transport offline (removes it + its routing rules from the running Vector config).

ParameterTypeDescription
id *stringSource 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.

ParameterTypeDescription
repository_id *stringParser 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.

ParameterTypeDescription
repository_id *stringParser repository id (typeid).
categorystringFilter by category.
searchstringFilter 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.

ParameterTypeDescription
path *stringFile path of the parser within the repo (from list_repository_parsers).
repository_id *stringParser repository id (typeid).
import_typestringDefaults to "linked".
ingestion_methodstring
source_typestringOverride 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.

ParameterTypeDescription
config_typestringTransport 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).

ParameterTypeDescription
path *stringLocal filesystem path to the credential file (a leading ~ expands to home). Must resolve inside the user's home directory or the working directory.
provider *stringWhich transport the credential is for. gcp_pubsub = a service-account JSON key; aws_s3 = a JSON file with access_key_id + secret_access_key.
namestringA 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).

ParameterTypeDescription
credentials *objectProvider 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 *stringA name for the stored credential.
provider *stringCredential provider.
descriptionstring
regionstringAWS 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.

ParameterTypeDescription
config_type *stringTransport driver.
connection_config *objectTransport-specific settings (see onboarding_requirements). {} for splunk_hec.
name *stringA name for the transport.
credential_idstringStored credential id, for kafka / aws_s3 / gcp_pubsub.
default_source_typestringFallback source_type for pull-source events matching no routing rule.
routing_rulesarrayOptional 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…

ParameterTypeDescription
fingerprint *objectYour reading of the estate. Sentences, not scores.
actor_weightingarrayOptional. Threat actors whose techniques land in THIS estate's gaps. Omit it rather than guessing — an unevidenced actor list is worse than none.
degradedbooleanTrue if the census or the surface came back degraded — this profile understates reality.
degraded_detailstringWhat 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…

ParameterTypeDescription
drafts *arrayThe proposals. At most 25.