Agent access

Datavrn for AI agents

Datavrn is a deterministic financial-statement engine. Your AI assistant drives it; Datavrn computes the statutory numbers — no AI generates or computes your figures, and no classification is ever applied without your explicit approval. An agent can take an entity from trial-balance upload to a finished Schedule III workbook: every suggestion is reviewed by your user, every data change is attributed in the audit log, and ungrouped accounts are always called out, never hidden.

Assistants can read figures in the connection’s enabled data categories — figures come from Datavrn’s deterministic engines and persisted runs; interpretation happens in your assistant.

Getting started, step by step

New to Datavrn? Here is the whole path from an empty account to a finished Schedule III statement. Your assistant can do the numbered steps for you; ask it to call get_setup_status at any point and it will tell you exactly where you are and what is next.

  1. Connect your assistant to Datavrn (OAuth for chat assistants, or an API key for scripts — see the sections below).
  2. Create the entity (the company the statement is for) — ask your assistant to create it, or add it in the web app.
  3. Give Datavrn the trial balance: your assistant makes a one-time upload link and you upload the file in your browser (the file never passes through the assistant).
  4. Confirm the column mapping — your assistant shows how it read the file’s columns; you check and approve them.
  5. Review the grouping suggestions together — Datavrn suggests which statement line each account belongs to; you approve each one. Nothing is applied automatically.
  6. Capture the extras the statement needs — statement settings (rounding, signatories) and any asset or provision movement schedules. Previous-year comparative figures fill in automatically from last year’s Trial Balance read through your current groupings; override a line only when your audited figures differ.
  7. Generate the statement — this runs as a short background job; your assistant tells you when the workbook is ready (a few minutes is normal).
  8. Download the workbook — your assistant gives you a short-lived link to open the Excel file in your browser.
  9. Ask questions of the finished statement — once generated, your assistant can read the figures and notes back to you, and list what is still pending across your entities.

Ask your assistant to call get_setup_status any time to see exactly where you are and the one next step to take.

Connecting a chat assistant (OAuth)

The simplest way in. Chat assistants that support connectors — such as Claude and ChatGPT — connect with OAuth: no key to create or paste.

In your assistant, add Datavrn as a connector and give it https://app.datavrn.com/api/mcp. In Claude that is Settings → Connectors → Add custom connector.

Your assistant sends you to a Datavrn consent screen: sign in, choose which organization the assistant may act in, and pick an access profile — Setup assistant, Support, Analyst, or Full access — that decides what it may see and do. The safe default (Support) shows progress and statuses but no figures; you consciously choose Analyst or Full to let it read statement numbers. An Owner or Admin can narrow a connection any time in Settings → Agent access; widening it needs a fresh approval (reconnect and choose the wider profile).

The assistant then acts as you, at your current role, and every action is recorded in that organization’s audit log under your name. You can disconnect your own app at any time from Settings → Agent access; it loses access immediately.

To confirm it worked, just ask your assistant to “check my Datavrn connection” — it calls verify_connection and reports the organization and access profile it is connected with. That check also turns the connection green in Settings → Agent access.

Statutory figures are the data-access floor. Management reporting figures are a separate, default-off choice. Adding them later requires reconnecting so the connecting member approves the wider data access. Consolidated group figures are not currently published to agent connections while Datavrn completes financial-statement validation.

For developers and automations (API key)

Scripts, agent frameworks, and developer tools that can send a request header authenticate with an org API key instead. (Chat assistants can’t use a key — connect them with OAuth.)

An Owner or Admin creates an API key in Settings → Agent access. Choose the key’s role — Viewer, Contributor, or Manager — its access profile (Setup assistant, Support, Analyst, or Full access — what it may see and do), and optionally restrict it to specific entities. Role is who the key acts as; the profile is what it may see and do.

Choose data access separately: statutory figures are always included, while management reporting figures are optional and default off. Consolidated group figures are not currently published to agent connections while Datavrn completes financial-statement validation. An Owner or Admin can change a key’s data access later in Settings → Agent access.

You can run several agents, not one agent doing every job: create several keys, each named, profiled, and entity-scoped for its purpose (a Setup assistant that never sees figures, an Analyst that reads figures but changes nothing, and so on). Each is metered and audited separately. An Owner or Admin can change any key’s profile later in Settings → Agent access.

Point your MCP-capable tool at https://app.datavrn.com/api/mcp (Streamable HTTP) with the key as the Bearer token. Every tool call authenticates with it; there is no anonymous access to any data. The full tool surface is published below; a connection only ever sees and can call the tools its profile admits.

Reading a statement as data

Once a Schedule III statement has been generated, an assistant can read its figures without downloading the workbook: get_statement_figures returns the balance-sheet and profit-and-loss faces plus separate current-year and previous-year tie checks, bounded accounting-exception counts, and frozen control changes versus the immediately previous version; get_statement_notes returns the note breakdowns; get_tb_rows returns the trial-balance source data.

The figures are snapshot-anchored — they come from the exact version that was generated, so a number quoted in chat matches the workbook. A statement generated before this feature existed reports figures as not yet available; generate it again, then read the latest version.

Assistants can read figures in the connection’s enabled data categories — figures come from Datavrn’s deterministic engines and persisted runs; interpretation happens in your assistant.

Reading management figures

When Management reporting figures are enabled, an Analyst or Full connection can read persisted allocation runs at account or target grain, spreading reconciliation, budgets, and budget-vs-actual variance. Results are source-pinned and paged; amounts are decimal strings, warnings and staleness stay disclosed, and internal or personal fields are not returned.

Consolidated group figures are not currently available through agent connections while Datavrn completes financial-statement validation.

Knowing what is left to do

get_pending_work answers "what’s left across my entities?" in one call: one row per entity you can see, showing whether its trial balance is in, how many accounts are still ungrouped, which statement version exists, and whether it has been finalised.

Tools (47)

The server is self-describing (tools/list); this list is generated from the same contract. Tool names and schemas are versioned and only change additively. This is the full public tool surface. A connection sees only the intersection permitted by its access profile and enabled data categories.

Replace a period’s trial balance — only a profile that can upload can do this. If it uploads a trial balance for a period that already has one, the earlier trial balance for that period is permanently deleted and replaced — whoever uploaded it, from an assistant or from the Datavrn app — and there is no undo. Datavrn never replaces a period unless the assistant explicitly confirms, and it tells the assistant exactly how many records would be deleted. Your assistant is required to show you that count and get your go-ahead first, but Datavrn cannot verify that it did — so ask to see the count before you let it replace a period. Selected write-capable tools can replace or explicitly remove saved Schedule III rows. Before such a change, Datavrn returns the affected type and count together with a short-lived approval token. It carries out only that exact proposed removal after the token is sent back. Nothing is saved or removed in the first response. To review the current rows before approval, open the Schedule III workspace.

Guarantees and limits