audit

audit is a command for Claude Code from sdebruyn/fabric-dw-mcp-cli. It costs 0 tokens per session (1,691 once invoked), scanned A, original, MIT.

A set of commands for enabling, configuring, inspecting, and disabling SQL auditing on Microsoft Fabric Data Warehouses and SQL Analytics Endpoints. Auditing records selected database activity for later review.

In plain words
What is it for?
Use it to enable or disable auditing, set retention, and add audit action groups without replacing existing groups.
Why use it?
It lets you control which audit action groups are enabled and how long audit logs are retained.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/sdebruyn/fabric-dw-mcp-cli/audit
Clone the repo
git clone --depth 1 https://github.com/sdebruyn/fabric-dw-mcp-cli

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/sdebruyn/fabric-dw-mcp-cli/audit.svg)](https://agentmods.dev/commands/sdebruyn/fabric-dw-mcp-cli/audit)
Your own site
<a href="https://agentmods.dev/commands/sdebruyn/fabric-dw-mcp-cli/audit"><img src="https://agentmods.dev/badge/commands/sdebruyn/fabric-dw-mcp-cli/audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,691 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01691
Opus 5 $0.00000 $0.00846
Sonnet 5 $0.00000 $0.00338
Haiku 4.5 $0.00000 $0.00169

Measured 6d ago against content hash d222e53f4c3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/audit.md · 264 lines

How it starts

The opening of the file, as written. The whole thing — 264 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Audit

Manage SQL audit settings for Microsoft Fabric Data Warehouses and SQL Analytics Endpoints.

Targets: Data Warehouse / SQL Analytics Endpoint

CLI

audit add-group

Targets: Data Warehouse / SQL Analytics Endpoint

Add a single audit action group without overwriting the others. Idempotent - if the group is already present the command succeeds without modifying the configuration. Auditing must already be enabled.

Synopsis

fdw [-w WORKSPACE] audit add-group [WAREHOUSE] GROUP

Example

fdw -w MyWorkspace audit add-group SalesWH BATCH_COMPLETED_GROUP

audit disable

Targets: Data Warehouse / SQL Analytics Endpoint

Disable SQL auditing on a warehouse or SQL Analytics Endpoint.

Synopsis

fdw [-w WORKSPACE] audit disable [WAREHOUSE]

Example

fdw -w MyWorkspace audit disable SalesWH

audit enable

Targets: Data Warehouse / SQL Analytics Endpoint

Enable SQL auditing on a warehouse or SQL Analytics Endpoint.

Synopsis

fdw [-w WORKSPACE] audit enable [OPTIONS] [WAREHOUSE]
Option Description Default
--retention-days INTEGER Audit log retention in days (>= 1). Mutually exclusive with --unlimited. -
--unlimited Set unlimited audit log retention (service value 0). Mutually exclusive with --retention-days. off

Omitting both --retention-days and --unlimited defaults to unlimited retention. Passing 0 for --retention-days is rejected - use --unlimited for no-limit retention.

Example

# Retain logs for 90 days
fdw -w MyWorkspace audit enable --retention-days 90 SalesWH

# Unlimited retention
fdw -w MyWorkspace audit enable --unlimited SalesWH

audit get

Targets: Data Warehouse / SQL Analytics Endpoint

Get the current audit settings for a warehouse or SQL Analytics Endpoint.

Synopsis

fdw [-w WORKSPACE] audit get [WAREHOUSE]

Example

fdw -w MyWorkspace audit get SalesWH

Read the full file on GitHub · 264 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 264 lines · 0 tokens per session scan A d222e53f4c3f

Subscribe to this mod's changes

audit is a command published in the GitHub repository sdebruyn/fabric-dw-mcp-cli (10 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,691 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.