Agent permissions
What an agent may read and change is decided by TKTail at every call, by choices only the user makes in TKTail. A prompt, a configuration file, this documentation or the AI Agent Harness grants nothing: an agent that has all of them still gets nothing until the user allows it in TKTail - and loses it the moment the user turns it off.
What decides access
| Layer | Set by | What it decides |
|---|---|---|
| A running TKTail window | the user starts TKTail | Without one, the MCP server answers on its own: status, the formats and samples the agent sends - no sources. |
| Allow AI access (MCP) | the user: Settings > AI Access (MCP), or Tools > Allow AI Access (MCP) | Every tool that reads the window’s sources. Off by default; turned off, the next call is refused. |
| The transport | the user’s client configuration; HTTP also Accept AI clients over HTTP | stdio: every edition, the user’s own Windows account. HTTP: Trial and Pro, off by default, a token on every request, this computer only unless the user chose the network. |
| The scope | the user: the tabs open in TKTail; the AI access rules (File Explorer > AI Access, Tools > AI Access Rules…) | The Safe Workspace - what is open - and the files and Windows Event Logs the AI access rules allow (default deny, an exclusion always wins; the Security log only by a rule that names it), for every edition. Never a path the agent invents, .., or a link out of what is allowed - and never whether a refused file exists (outside_investigation_access). |
| Permissions for changes | the user: four settings under What AI clients may change | Saving format profiles; saving and deleting Saved Searches and Metric Sets; managing alerts; saving evidence packages and pinning searches. Each off by default and only together with AI access. |
| AI Data Protection | always on; the user adds rules in Tools > AI Data Protection… | What an answer may show: secrets - passwords, tokens, keys, fields named as secret, the user’s own rules - are masked in everything sent to an agent. The agent sees that protection is active, never what it looks for, and cannot change it. |
| Forensic Mode | the operator: TKTail.exe --forensic, with --output-root for Evidence and reports | What lasts: what an agent saves lasts for the session only; a call that needs a persistent write the session forbids - an evidence package in a memory-only session, a copy outside the output root - is refused (forensic_policy_denied) and nothing is written. tktail_status says the session is forensic; MCP over HTTP opens only when the operator turns it on in the session. |
| The edition | the license | Never what an agent may read: the AI access rules, AI Data Protection and the reports are in every edition. Trial and Pro add Metrics, a log’s history or an archive’s entries searched as one source, conditional monitoring and HTTP (Pricing). A license never widens the rules, a permission or a Forensic restriction. |
The user sees what an agent did: each call with its decision and scope in Tools > AI Investigation Activity (never the agent’s prompts), its searches in Search Results (marked AI) and Jobs, its changes in Manage Alerts, Saved Searches and the Metric Sets, and one line per answer in Output > Application - never the content (What TKTail records).
Read-only and changing tools
Every tool reads, except those that change data - each of them needs its own permission and is annotated
readOnlyHint: false, so a client asks the user before calling it. Every tool needs AI access; the table lists what
some need beyond it, generated from the MCP tool reference of this release.
| Tool | Changes data | Beyond AI access it needs | Note |
|---|---|---|---|
tktail_status | answers without a running window for what it is given | ||
tktail_list_instances | answers without a running window for what it is given | ||
tktail_list_sources | answers without a running window for what it is given | ||
tktail_get_current_context | answers without a running window for what it is given | ||
tktail_open_source | every edition (AI access to the files you allow (AI Access Rules)) | opens the file - or, with “channel”, the Windows Event Log channel an Event Log rule allows - as a tab in the window (a file paused, a channel not following LIVE) | |
tktail_get_records_around | indexTimes: true starts a background time index of the source | ||
tktail_query_event_log | a channel that is not open in TKTail (an Event Log rule of the user allows it): every edition | reads events of one Windows Event Log channel in a bounded window (the user’s Event Log rules decide; the Security log only by a rule that names it) - nothing is written | |
tktail_search | a folder scope the AI access rules allow: every edition | starts an AI search session, shown in Search Results and Jobs (at most 5 kept) | |
tktail_cancel_search | stops one of the client’s own searches (the user’s searches answer not_allowed) | ||
tktail_list_saved_searches | answers without a running window for what it is given | ||
tktail_run_saved_search | starts a new AI search session from a copy of the Saved Search | ||
tktail_save_search | yes | Allow AI to save searches and Metric Sets; paths the AI access rules allow: every edition | |
tktail_delete_saved_search | yes | Allow AI to save searches and Metric Sets | |
tktail_validate_alert | a metric alert or metric evidence: Trial or Pro; an activation other than always, or onFire: Trial or Pro | ||
tktail_save_alert | yes | Allow AI to manage alerts; a metric alert or metric evidence: Trial or Pro; an activation other than always, or onFire: Trial or Pro | |
tktail_set_alert_enabled | yes | Allow AI to manage alerts | |
tktail_delete_alert | yes | Allow AI to manage alerts | |
tktail_list_activations | for targets to run conditionally (without it the answer says they are dormant): Trial or Pro | ||
tktail_pin_search | yes | Allow AI to save evidence and pin searches | pins or unpins a search: a pinned search is never closed to make room and is kept across a restart (a snapshot of its references in the data folder); an AI client cannot unpin the user’s pin |
tktail_save_evidence | yes | Allow AI to save evidence and pin searches; correlatedMetricSets: Trial or Pro; a destination folder the AI access rules allow as a whole: every edition | writes a redacted evidence package (a ZIP) into the Evidence Store (the data folder’s Evidence folder), within its size limits; with destination also a copy in a folder the AI access rules allow |
tktail_delete_evidence | yes | Allow AI to save evidence and pin searches | records a deletion REQUEST in the Evidence Store’s catalog and tells the user; nothing is deleted until the user confirms it in TKTail |
tktail_hash_files | paths (a file that is not open in TKTail): every edition | reads each whole file (one file at a time, in the background); the request is listed in Jobs - nothing is written | |
tktail_list_metrics | Trial or Pro (Performance counters (Metrics)) | ||
tktail_get_metric_current | Trial or Pro (Performance counters (Metrics)) | ||
tktail_get_metric_history | Trial or Pro (Performance counters (Metrics)) | ||
tktail_get_metric_summary | Trial or Pro (Performance counters (Metrics)) | ||
tktail_sample_process | Trial or Pro (Performance counters (Metrics)) | collects Process Diagnostics of one process for 2-8 s, then releases it - nothing in the process is changed | |
tktail_start_metric_monitoring | Trial or Pro (Performance counters (Metrics)); always - the monitoring runs as an AI client’s activation lease: Trial or Pro | collects one Metric Set every 5-30 s for at most 60 minutes as a temporary monitor the user sees (Jobs, Tools > Conditional Monitoring) and may stop; it ends by itself - nothing in the user’s configuration changes | |
tktail_stop_metric_monitoring | Trial or Pro (Performance counters (Metrics)) | ends the AI client’s own metric monitoring before its time - its samples stay in the metric history; a user’s monitor is never stopped | |
tktail_list_metric_sets | Trial or Pro (Performance counters (Metrics)) | ||
tktail_get_metric_set | Trial or Pro (Performance counters (Metrics)) | ||
tktail_save_metric_set | yes | Allow AI to save searches and Metric Sets; Trial or Pro (Performance counters (Metrics)) | |
tktail_delete_metric_set | yes | Allow AI to save searches and Metric Sets | |
tktail_list_formats | answers without a running window for what it is given | ||
tktail_get_format | answers without a running window for what it is given | ||
tktail_detect_format | answers without a running window for what it is given | ||
tktail_preview_format | answers without a running window for what it is given | ||
tktail_new_format_draft | answers without a running window for what it is given | ||
tktail_validate_format | answers without a running window for what it is given | ||
tktail_save_format | yes | Allow AI to save custom formats | |
tktail_list_investigation_roots | to see the AI access rules (without it the answer says Extended Investigation is not available): every edition | ||
tktail_discover_files | every edition (AI access to the files you allow (AI Access Rules)) | ||
tktail_get_log_history | every edition (AI access to the files you allow (AI Access Rules)) | ||
tktail_list_archive_entries | every edition (AI access to the files you allow (AI Access Rules)) | ||
tktail_list_knowledge | answers without a running window for what it is given | ||
tktail_get_knowledge | answers without a running window for what it is given | ||
tktail_get_investigation | reads the caller’s own AI investigation activity (this client session’s calls as TKTail recorded them) - never another client’s; nothing is changed | ||
tktail_start_investigation | ends the caller’s current AI investigation (startedNew) and begins a new one in TKTail’s AI activity record - nothing in the user’s data or configuration changes |
Every other tool (15 of 63) reads the window’s sources with AI access alone: tktail_get_source_sample, tktail_get_record, tktail_get_search, tktail_get_search_results, tktail_aggregate, tktail_get_saved_search, tktail_list_alerts, tktail_get_alert, tktail_list_alert_occurrences, tktail_get_alert_occurrence, tktail_get_occurrence_evidence, tktail_list_evidence, tktail_get_evidence, tktail_verify_evidence, tktail_list_jobs.
Refusals
A refusal is a tool result with isError: true and structuredContent.error {category, message}; the message says
what the user can do. Tell the user - do not retry the same call, and never work around it.
| Category | Meaning |
|---|---|
invalid_arguments | an argument is missing, of the wrong type or unknown |
access_off | the user has not allowed AI access (mcp.allowWindow) |
capability_unavailable | the license does not include the capability (Metrics, a log’s history or an archive searched as one source, conditional monitoring, HTTP), or reading files from disk is off (safe mode) |
unavailable | no running TKTail window, not the Primary, or it is closing |
busy | the window did not answer in time, or a bound was reached - retry later (error.details: retryable, retryAfterMs when TKTail knows when) |
source_not_found | no open source with this sourceId |
stale_source | the reference belongs to an older state of the source |
not_found | no such search, saved search, metric set, format, event or metric |
no_context | nothing is selected in the window |
outside_investigation_access | no AI access rule of the user allows the path or the Windows Event Log channel, or an exclusion (Deny) covers it - never says whether it exists or which rule decided; error.details.operatorAction says where the user would allow it, in TKTail |
scope_not_allowed | not a scope here: a path that is not open in TKTail while reading files from disk is off (safe mode), a file named as a folder or the reverse, an unusable rule |
unsupported | the source kind cannot answer this (e.g. a Metrics View as a record source) |
not_allowed | the user’s consent for this change is off (error.details: requiredPermission - the setting - and operatorAction - where the user turns it on), or the object is the user’s own |
conflict | the stored version or content changed - read it again |
time_not_indexed | the source has no time index yet (indexTimes starts one) |
time_indexing | the time index is being built |
no_record_times | the source’s records have no timestamps |
resource_budget_denied | a bound of an AI client’s request (files, bytes, concurrent samplings or monitorings, a Heavy collection - error.details: bound, limit) - ask for less or later, or the user does it in TKTail |
forensic_policy_denied | Forensic Mode: the answer would need a persistent write the session’s policy forbids (an evidence package in a memory-only session, a copy outside the output root) - nothing was written; error.details: persistenceMode, operatorAction; never the output root’s path |
response_too_large | the answer exceeds the response budget - ask for fewer items |
knowledge_corrupt | a built-in knowledge topic failed its SHA-256 check (TKTail.exe is damaged - reinstall it); it is never returned |
internal | an unexpected failure |
Protocol errors (a malformed request, an unknown method or tool, an unsupported protocol revision) are JSON-RPC errors instead - their codes are in the developer reference (docs/MCP.md).
What no permission allows
- Running commands, programs, scripts or a terminal; reading the registry, services or settings; changing settings.
- Reading, listing or writing files outside the sources open in TKTail, the files the AI access rules allow and TKTail’s own stores (format profiles, Saved Searches, Metric Sets, alerts).
- Allowing, excluding, enabling or removing an AI access rule - only the user does that (Allowing folders and files for AI).
- Deleting, acknowledging or exporting incidents; changing a built-in format, a built-in Metric Set or a
.tktailfile. - Collecting performance counters beyond the two bounded collections its tools describe (Trial / Pro): one process for
2-8 seconds (
tktail_sample_process) and one Metric Set for at most 60 minutes as a temporary monitor the user sees in Jobs and Conditional Monitoring and may stop (tktail_start_metric_monitoring) - never a Heavy collection, and an agent never starts, stops or approves the user’s own monitoring. - Overwriting the user’s changes: a change names the version it read and is refused (
conflict) if the object changed.