schedule-iii
com.datavrn/schedule-iii
Serveur MCP OK 71 outils
Deterministic Schedule III statements for Indian companies: trial balance in, Excel workbook out.
Fiche technique
- Auteur
- datavrn.com (espace de noms du registre)
- Dépôt
- —
- Site
- app.datavrn.com/agents
- Version
- 1.0.0
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://app.datavrn.com/api/mcp Streamable HTTP
- Outils
- 71
- Catégories
- Productivité et documents
- Comparatifs
- Serveurs MCP pour Excel et tableurs
- Dernière mise à jour
- 6 août 2026
- Publication
- 6 août 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/com.datavrn/schedule-iii)<a href="https://latlas.dev/mcp/com.datavrn/schedule-iii"><img src="https://latlas.dev/badge/fiche/com.datavrn/schedule-iii.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://app.datavrn.com/api/mcp
- Dernier résultat
- OK 28 nov. 2026, 10:00
- Temps de réponse
- 1 568 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- mcp-typescript server on vercel 0.1.0
- Outils
- 71
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 10:00 | OK | 1 568 ms | 71 |
Outils exposés (71, réponse à tools/list, 28 nov. 2026)
list_clients
List entities
List the entities (companies) this credential can work with. Call this first to resolve the client_id every other tool needs. Returns each entity id and name.
Aucun paramètre.
create_client
Create entity
Create a new entity (company) in the organization. Requires a Manager-role key. Use only when the user explicitly asks to set up a new entity; show them the name you will create first.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | |
| business_model_code | string | null | non |
upload_trial_balance
Upload trial balance
Stage a Trial Balance spreadsheet (xlsx or csv, max 4 MB) for an entity by INLINING its bytes as base64. This path is ONLY for programmatic callers (a script, Claude Code, an automation) that already have the raw file on disk. If a HUMAN has the file — e.g. they attached it to this chat — do NOT use this tool and do NOT base64-encode the file: call create_upload_link instead and give them the link to upload it in their browser. File size does not change this: even a small attached file goes through create_upload_link — inlining a human-supplied file is unreliable and its bytes routinely truncate. Even for a file you hold on disk, prefer create_upload_link once the file is larger than about 10 KB: base64 through a model context mutates a token often enough that the damage lands as a PLAUSIBLE trial balance, not as an obvious error. VERIFY THE HASH BEFORE YOU CONFIRM ANYTHING: this tool returns received_file_hash, the sha256 of the bytes the server actually received. Compute the sha256 of the file on your disk and compare the two. If they differ, the bytes changed in transit — do NOT call confirm_column_mapping on this session; re-send the file with create_upload_link instead. A mismatched file can still parse cleanly and still show sensible columns, so the hash is the only reliable check. Returns the upload session with detected columns and mapping SUGGESTIONS — nothing is ingested yet. Next: verify received_file_hash, then review the suggested column mapping with your user,…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| file_name | string | oui | The file's name, e.g. 'tb-2026-03.xlsx'. |
| file_base64 | string | oui | The file bytes, base64-encoded. |
| format | string | non | Leave unset — the assistant handles Trial Balances only; any other format is refused (use the Datavrn web app). |
| source | string | non | Set 'tally_file' when the file is a Tally xlsx export; omit otherwise. |
get_upload
Get upload status
Read an upload session: status, detected header row and columns, the confirmed mapping (if any), and the stored validation outcome. Use to check what a staged upload still needs.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| upload_id | string | oui | The upload session id returned by upload_trial_balance. |
set_header_row
Set header row
Correct the detected header row of a staged upload (1-based). Only needed when get_upload/upload_trial_balance shows the wrong row was detected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| upload_id | string | oui | The upload session id returned by upload_trial_balance. |
| header_row | integer | oui |
confirm_column_mapping
Confirm column mapping
Confirm the column→field mapping for a staged upload and run validation. Returns the full validation result (row counts, warnings, blocking issues). Mapping suggestions are never auto-applied — pass exactly the mapping your user approved. Review any warnings with your user before ingesting.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| upload_id | string | oui | The upload session id returned by upload_trial_balance. |
| mapping | object | oui | |
| options | object | non | |
| save_as | string | non |
ingest_upload
Ingest upload into the books
Commit a validated upload into the entity’s books. This is a TWO-CALL approval: if the upload has any warnings, or would permanently delete existing trial-balance rows for a period it covers, the first call writes NOTHING and refuses with every warning, the exact record counts, and a short-lived removal_token. Show your user every warning and both counts, get their explicit go-ahead, then resend the SAME call adding removal_token and removal_count exactly as returned. acknowledge_warnings is IGNORED on this connection — the token is the only acknowledgment, so sending it changes nothing. A clean, additive ingest needs no token and succeeds on the first call. Returns the ingestion outcome including any notices.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| upload_id | string | oui | The upload session id returned by upload_trial_balance. |
| monthly_history_authority | object | non | |
| confirm_identity_correction | boolean | non | |
| acknowledge_warnings | boolean | non | |
| acknowledged_state_digest | string | non | Browser/REST only, and IGNORED on the agent connection exactly as acknowledge_warnings is: the destroy_state_digest returned by the confirm-mapping step, resent unchanged so the server can prove the acknowledgment was given against the data that is still there. On this connection the removal_token… |
| confirm_merges | array<object> | non | |
| removal_token | string | non | Only include the short-lived token returned by the removal preview for this exact upload. |
| removal_count | integer | non | The exact removal count returned by the removal preview. |
list_periods
List reporting periods
List the reporting periods a Schedule III statement can be prepared for (periods with a live Trial Balance). Returns period ids for get_schedule3_workspace, save_py_values, and generate_schedule_iii.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
get_schedule3_workspace
Get Schedule III workspace
THE state tool: grouping progress, every required capture answer, generated/finalised versions, finalisation blockers, and bounded per-version control summaries. Report generation never marks capture complete. Exception output is rule/severity/count only — no account names or amounts. Call this to know what is left before finalising.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | The statement template id (e.g. 'schedule3_v1' Division I; see list_snapshots/workspace). |
| period_id | string | oui | The reporting period id — from list_periods. |
list_grouping_suggestions
List grouping suggestions
List ungrouped accounts with DETERMINISTIC grouping suggestions (curated rules + name/group-path matching — no AI is involved; Datavrn never applies a suggestion itself). Paginated. Each row carries a reason and a confidence tier: present them to your user GROUPED BY CONFIDENCE, and call out low-confidence and balance-bearing rows for individual attention — a single blanket approval is not a review of the low-confidence tail. Confirm only what your user approves via confirm_groupings. Returns a summary (counts by confidence tier) plus one page of suggestion rows — fetch tier by tier with the confidence filter instead of everything at once; pass include='confirmed' to see already-confirmed groupings.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | The statement template id (e.g. 'schedule3_v1' Division I; see list_snapshots/workspace). |
| period_id | string | oui | The reporting period id — from list_periods. |
| limit | integer | non | Page size (default 50, max 200). |
| offset | integer | non | Rows to skip (default 0). |
| include | enum: "suggestions" | "confirmed" | "both" | non | Which rows to page: 'suggestions' (default), 'confirmed' (already-grouped accounts), or 'both'. |
| confidence | enum: "high" | "medium" | "low" | "none" | non | Keep only suggestion rows in this confidence tier ('none' = accounts with no deterministic suggestion). Filters rows only — the summary counts stay over the whole population. |
| has_balance | boolean | non | Keep only suggestion rows whose account carries a live balance (true) or not (false). |
confirm_groupings
Confirm account groupings
Persist USER-approved account→line groupings. Omitted accounts stay unchanged. Only explicit leaf_code:null clears a saved grouping. When clearing a saved grouping, use the current grouping_version from list_grouping_suggestions. An actual clear first returns an approval request; nothing changes then. Resend the unchanged request with the approval details to proceed. Clearing an already-unclassified account is an idempotent no-op. Every row must be explicit — there is deliberately no "apply all suggestions" option.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| decisions | array<object> | oui | |
| grouping_version | integer | non | |
| removal_token | string | non | |
| removal_count | integer | non |
save_adjustments
Save adjustment entry
Save one balanced adjustment journal entry (debits = credits) as an atomic whole entry. Creating a new entry proceeds immediately. Replacing an existing entry first returns an approval request; nothing changes then. Review the existing entry in the Schedule III workspace, then resend the unchanged request with the approval details to proceed. Amounts are strings in rupees.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| entry_no | integer | oui | |
| lines | array<object> | oui | |
| removal_token | string | non | |
| removal_count | integer | non |
save_py_values
Save prior-year comparatives
Override the prior-year comparative for one or more statement lines with an audited figure. The prior-year column fills itself automatically from the previous year's Trial Balance read through the current groupings, so use this only when the audited financial statements differ from that figure (for example appropriations booked outside the ledger), or when there is no previous-year Trial Balance to derive from — ask your user for the audited figures in those cases.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| values | array<object> | oui |
save_asset_movements
Save asset movements
Save fixed-asset movements (additions, deletions, depreciation charge, depreciation on deletions) per gross-block line for the PPE schedule.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| movements | array<object> | oui |
save_provision_movements
Save provision movements
Upsert provision movements (additions, amounts utilised) per provision line. Omitted saved lines stay unchanged. To remove selected saved lines, pass remove_leaf_codes; to remove the entire saved set, pass clear_all (never both). An actual removal first returns an approval request; nothing changes then. Review current movements in the Schedule III workspace, then resend the unchanged request with the approval details to proceed.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| movements | array<object> | oui | |
| remove_leaf_codes | array<any> | non | |
| clear_all | boolean | non | |
| removal_token | string | non | |
| removal_count | integer | non |
save_reserves_movements
Save reserves movements
Upsert reserves/equity movements (transfers in/out, dividends, other changes) per reserves line. Omitted saved lines stay unchanged. To remove selected saved lines, pass remove_leaf_codes; to remove the entire saved set, pass clear_all (never both). An actual removal first returns an approval request; nothing changes then. Review current movements in the Schedule III workspace, then resend the unchanged request with the approval details to proceed.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| movements | array<object> | oui | |
| remove_leaf_codes | array<any> | non | |
| clear_all | boolean | non | |
| removal_token | string | non | |
| removal_count | integer | non |
save_share_capital
Save share capital
Save the share-capital reconciliation for the period: the opening share count, the shares issued and bought back during the year, and the amount issued and the amount bought back.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| opening_shares | string | null | oui | |
| shares_issued | null | oui | |
| shares_bought_back | null | oui | |
| amount_issued | string | oui | |
| amount_bought_back | oui |
save_statement_settings
Save statement settings
Save statement settings (rounding unit, signatory details, company information used on the statement face).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| entity_name_override | string | null | oui | |
| cin | string | null | oui | |
| registered_office | string | null | oui | |
| unit_label | string | oui | |
| unit_divisor | enum: 1 | 1000 | 100000 | 10000000 | oui | |
| weighted_equity_shares | string | null | oui | |
| weighted_potential_equity_shares | null | oui | Weighted average potential equity shares (dilutive — options, convertibles). ADDITIONAL shares from options/convertibles only — not the total diluted share count. Enter 0 if the company has none. Do not repeat the basic share count. |
| weighted_equity_shares_py | null | oui | |
| weighted_potential_equity_shares_py | null | oui | Weighted average potential equity shares — previous year (dilutive). ADDITIONAL shares from options/convertibles only — not the total diluted share count. Enter 0 if the company has none. Do not repeat the basic share count. |
| equity_face_value | string | null | oui | |
| font_name | enum: "Calibri" | "Arial" | "Times New Roman" | non | |
| entity_class | string | null | non | |
| include_cfs | boolean | null | non | |
| suppress_nil_lines | boolean | non | |
| rounding_off | boolean | non | Whole-unit value rounding. When true (the default), every figure is rounded to the presentation unit and each CA-read total (profit, total assets, equity and liabilities) equals the rounded exact figure. A computed "Rounding off" line under Other expenses is only the profit adjustment; remaining Ba… |
save_disclosures
Save disclosures
Save the notes/disclosures sections the user provides for the statement. Some of these sections IDENTIFY PEOPLE BY NAME — shareholders, promoters and related parties — so send only what your user has given you, exactly as they gave it. SECTIONS YOU DO NOT SEND ARE LEFT ALONE. Send only the sections you are changing; every other section keeps exactly what is saved. Within a section you DO send, the rows you send REPLACE every row saved for that section — there is no row-level merge, so always send that section complete. To CLEAR a section, send it explicitly with its own empty value: [] for corporateInfo, contingent, shareholders5pct, promoters, relatedParties and msmeAmounts; {} for ratioReasons; null for auditorPayments, csr, proposedDividend and the DSCR amounts. The three ageing sections take [] or null. Clearing removes saved content, so Datavrn saves nothing and returns an approval request naming the sections and how many rows each holds. Show your user exactly what would be cleared; only if they mean to, resend the identical call adding removal_token and removal_count from that response. The approval is single-use and lapses after five minutes — if it lapses, call again for a fresh one. Saving here re-opens the disclosure review — after your last change, confirm the disclosure review again with confirm_capture_review before generating. ratioReasons is keyed by the ratio IDENTIFIER, never its display label: current_ratio | debt_equity | dscr | roe | inv_turnover | tr_tu…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| payload | object | oui | |
| removal_token | string | non | |
| removal_count | integer | non |
declare_capture_na
Record nothing to report, or not applicable
Record that a capture section had NOTHING to report this period, DOES NOT APPLY to this entity, or that this is the entity’s FIRST YEAR (previous-year figures only). These are three different statements and are not interchangeable: "nothing this period" means the section applies but had no activity; "does not apply" means it never applies to this entity at all. This is your user’s professional assertion, recorded as authorised by them — ask which one is true, and never guess. NOT every reason is available for every section — call get_schedule3_workspace and read allowed_reason_codes on the section before you ask your user, so you never put a choice to them that Datavrn will refuse. The restrictions: Settings takes NO answer here at all (it is only answered by saving the settings); share capital and partner capital take only "nothing this period", because those sections are shown only for statement formats they apply to, so "does not apply" can never be true; and "first year" belongs only to previous-year figures. To record a REVIEW being complete (previous-year figures, disclosures) use confirm_capture_review instead; this tool cannot make that assertion. A section can only hold one active answer. If the section’s current answer is still standing, this call refuses — revoke it with revoke_capture_declaration first. If the current answer was already WITHDRAWN by later changes (Datavrn shows the section as unanswered), this call supersedes it: the old answer is marked withdraw…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| capture_kind | enum: "adjustments" | "prior_year_values" | "asset_movements" | "provision_movements" | "reserves_movements" | "share_capital" | "partner_capital" | "settings" … | oui | |
| reason_code | enum: "first_year" | "no_activity" | "not_applicable" | oui | |
| note | string | non | |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
confirm_capture_review
Confirm a section has been reviewed
Record your user’s confirmation that they have REVIEWED a whole section and it is complete — the entire previous-year comparative column, or the entire disclosure set. A review confirmation is your user’s professional assertion, recorded as authorised by them. Before calling this, show them what you are confirming — the whole comparative, or the whole disclosure set — and get their explicit go-ahead. Never confirm a review that has not happened. Saving figures or text does NOT complete these two sections and never has; only this confirmation does. The confirmation is pinned to the exact set that was reviewed, so ANY later save to that section withdraws it — if a confirmation appears not to stick, the next step is to re-review and confirm again, never to retry. Confirming again after such a change supersedes the earlier confirmation: it is marked withdrawn (it stays on the record) and the response names what was withdrawn. Re-confirming also invalidates any finalise approval you already hold. Only two sections take a review confirmation: the previous-year comparative and the disclosure set. Every other section is answered by saving its rows, or by declare_capture_na. Datavrn notifies the member you name that this was recorded in their name. Generate a fresh version after your last capture change — finalisation checks the version’s frozen capture state, not today’s.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| capture_kind | enum: "adjustments" | "prior_year_values" | "asset_movements" | "provision_movements" | "reserves_movements" | "share_capital" | "partner_capital" | "settings" … | oui | |
| reason_code | enum: "comparative_reviewed_complete" | "disclosures_reviewed_complete" | oui | |
| note | string | non | |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
revoke_capture_declaration
Withdraw a recorded capture answer
Withdraw a recorded capture answer or review confirmation. What happens next depends on what answers the section: withdrawing a “nothing to record”/“does not apply” answer or a review confirmation makes Statement readiness show the section as UNANSWERED again; withdrawing a leftover earlier note from a section that is answered by its saved rows removes the record and the section STAYS answered. A version you have already generated is NOT affected — if you do not want that version finalised, answer the section again and generate a fresh version. Nothing is deleted: the withdrawn answer stays on the record with who recorded it and who withdrew it, and recording a new answer afterwards creates a new entry rather than overwriting the old one. One thing on this connection is affected immediately: if you already called get_finalise_readiness and hold an approval for that version, withdrawing an answer invalidates it, and the next finalise_statement will refuse and ask you to review the current state again.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| capture_kind | enum: "adjustments" | "prior_year_values" | "asset_movements" | "provision_movements" | "reserves_movements" | "share_capital" | "partner_capital" | "settings" … | oui | |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
copy_capture_declarations
Copy last period’s capture answers
Copy the previous period’s "nothing this period" and "does not apply" answers into this period, for sections that have no answer yet. It NEVER copies a review confirmation — a review is about this period’s content and cannot be inherited. Last period’s answer is not evidence about this period: list what it would copy to your user, section by section, and get their go-ahead before calling it. Answers already recorded for this period are left alone. Generate a fresh version after your last capture change — finalisation checks the version’s frozen capture state, not today’s.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
save_partner_capital
Save partner or owner capital schedule
Save the partner or owner capital schedule for an LLP or other non-corporate entity — Note 3a (capital account) or Note 3b (current account), one section per call. Send the COMPLETE schedule for the section you name: anyone you leave out is removed, and a renamed partner reads as one removal plus one addition. If your request would remove anyone, would change the figures of a partner who stays — including their profit-sharing ratio — or would repeat a person’s name that is not already repeated on file, this returns an approval request first and changes NOTHING; tell your user exactly what would change and get their go-ahead before resending with the approval. Two rows with the same person name are both kept: Datavrn never merges them, because two partners may genuinely share a name. A repeated name is therefore saved as a separate row each time it appears, and every one of those rows adds to that person’s balance on the note, so check with your user that there really are that many people before you send a schedule that repeats a name. Adding a partner with a new, different name needs no approval. share_pct is the profit-sharing ratio stated in the LLP or partnership agreement at the reporting date. A ratio that changed part-way through the year cannot be represented here, and a partner who joined or left mid-year cannot be dated — record the position at the reporting date and tell your user the note cannot explain a mid-year change. These figures come from the agreement; Dat…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| account_kind | enum: "capital" | "current" | oui | |
| rows | array<object> | oui | |
| removal_token | string | non | |
| removal_count | integer | non | |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
get_partner_capital
Read partner or owner capital schedule
Read the partner or owner capital schedule currently on file — Note 3a and Note 3b. THIS RETURNS PEOPLE’S NAMES, along with each person’s profit-sharing ratio and amounts. Call it before save_partner_capital so you can show your user what is on file and what your change would do — that save replaces the whole section, so a schedule you cannot see is a schedule you cannot safely replace. It also returns the total of the capital-account profit-sharing ratios, because Datavrn warns about a total that is not 100% only when at least two rows carry a ratio.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | The statement template id (e.g. 'schedule3_v1' Division I; see list_snapshots/workspace). |
| period_id | string | oui | The reporting period id — from list_periods. |
| account_kind | enum: "capital" | "current" | non | Limit to one section: 'capital' is Note 3a, 'current' is Note 3b. Omit for both. |
| limit | integer | non | Page size (default 50, max 200). |
| offset | integer | non | Rows to skip (default 0). |
save_accounting_policies
Save significant accounting policies
Save the Significant Accounting Policies text (Note 2) your user has chosen, one policy per title. SEND THE COMPLETE SET EVERY TIME: this replaces all of Note 2, so any title you leave out of this call is removed — including one someone answered in the Datavrn app. Call list_statement_policy_choices first and send back every title. If your call would drop a saved policy, Datavrn saves nothing and returns an approval request naming how many would be dropped — show your user, and send the approval back only if they mean to drop them. A complete resend drops nothing and saves straight away. Use the exact policy headings this statement format carries; a heading Datavrn does not recognise is refused and nothing is saved. Resolving a bracketed template choice such as "[FIFO / weighted average]" is an ACCOUNTING POLICY DECISION SPECIFIC TO THIS ENTITY: get your user’s explicit choice, and never pick one because it is the common answer. If a policy was set this year and differs from last year’s answer, that is a CHANGE IN ACCOUNTING POLICY requiring disclosure under AS-5 / Ind AS 8 — tell your user before you save it. Check list_statement_policy_choices first: a row that differs from last year while its captured flag is false is NOT a change — last year’s wording has simply not been carried forward, and unless you send it again this note prints Datavrn’s generic template wording in its place. Saving here re-opens the disclosure review — after your last change, confirm the disclosure…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| policies | object | non | |
| removal_token | string | non | |
| removal_count | integer | non | |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
save_regulatory_affirmations
Save regulatory affirmations
Save the CARO / Other Regulatory Information affirmations your user has confirmed, one per title. SEND THE COMPLETE SET EVERY TIME: this replaces the whole Other Regulatory Information note, so any title you leave out of this call is removed — including one someone answered in the Datavrn app. Call list_statement_policy_choices first and send back every title. If your call would drop a saved affirmation, Datavrn saves nothing and returns an approval request naming how many would be dropped — show your user, and send the approval back only if they mean to drop them. A complete resend drops nothing and saves straight away. Use the exact affirmation headings this statement format carries; a heading Datavrn does not recognise is refused and nothing is saved. Some statement formats — the ICAI formats for LLPs and non-corporate entities — carry no Other Regulatory Information note at all, and this tool refuses for them. Each affirmation is a REGULATORY REPRESENTATION made in the entity’s name — for example whether any proceedings for benami property are pending, or whether the entity has been declared a wilful defaulter. Put each one to your user individually and record their answer. Never affirm one because it is the usual answer, never infer one from a template default, and never confirm a batch of them in one go. If an affirmation differs from last year’s answer, tell your user — call list_statement_policy_choices to see what was answered last year. Saving here re-opens the dis…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | |
| period_id | string | oui | |
| affirmations | object | non | |
| removal_token | string | non | |
| removal_count | integer | non | |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
list_statement_policy_choices
Review policy and affirmation choices
List every Significant Accounting Policy and Other Regulatory Information affirmation for this statement, with the text that will print, whether a template choice is still unresolved, and what was answered LAST YEAR. This is what makes two rules actionable rather than decorative: never resolve a bracketed choice for your user, and always tell them when an answer differs from last year. CHECK THE ROW’S captured FLAG BEFORE YOU CALL ANYTHING A POLICY CHANGE. differs_from_prior is true in two different situations and only one of them is a change: with captured true the wording was set this year and genuinely differs, which IS a change in accounting policy requiring disclosure under AS-5 / Ind AS 8; with captured false nothing has changed — last year was answered, this year has not been, and the text shown is Datavrn’s generic template wording, which is what will PRINT unless last year’s wording is entered again. Warn your user about that second case explicitly: it silently replaces a policy they wrote. The summary gives you both numbers separately — changed_total (real AS-5 changes) and not_carried_forward_total (answered last year, not yet this year); differs_from_prior_total is simply the two added together. An unresolved choice blocks finalisation, so work through them with your user before generating the version you intend to finalise. "Last year" means the SAME MONTH ONE YEAR EARLIER — the same comparative period the statement itself reports — not the period immediately be…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | The statement template id (e.g. 'schedule3_v1' Division I; see list_snapshots/workspace). |
| period_id | string | oui | The reporting period id — from list_periods. |
| limit | integer | non | Page size (default 50, max 200). |
| offset | integer | non | Rows to skip (default 0). |
get_finalise_readiness
Check finalisation state and get approval
Read the full finalisation state of one statement version, and get the approval finalise_statement needs. Call it ONCE immediately before finalising — it re-reads the stored workbook, so do not poll it. SHOW YOUR USER EVERY ROW THIS RETURNS — the gates that must be green, each warning they would be accepting and why, how many input cells are still empty, any control that could not be evaluated, and capture_live_diverged_message when it is present — before you finalise. Do not summarise the warnings away. capture_live_diverged_message means a capture answer changed after this version was generated: the version can still be sealed as it stands, and generating a fresh one is the alternative. Read it out and let your user choose. A control that "could not be evaluated" is not a pass: it is a check Datavrn did not run, and your user is entitled to know what was not checked before they seal the version. The approval is single-use, expires in 15 minutes, and is tied to this exact version, this connection and the member you name — if anything about the statement changes in between, finalise_statement will refuse and you start again from here. If your connection is not permitted to finalise, you still get the whole state; there is simply no approval to hand back.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| snapshot_id | string | oui | The statement version id — from list_snapshots or get_schedule3_workspace. |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
finalise_statement
Seal the permanent client copy of a version
Seal a statement version as Datavrn’s permanent client copy, recorded as authorised by the member you name. THIS IS NOT APPROVAL OR ADOPTION OF THE FINANCIAL STATEMENTS AND IT IS NOT A SIGNATURE. It does not discharge section 134(1) for a company or section 34(3) for an LLP. THERE IS NO UNDO. A change afterwards means generating a new version and finalising that one; the version you seal here stays sealed. Call get_finalise_readiness first, show your user every gate and every warning it returns, get their explicit go-ahead, and only then send the confirm_token it gave you together with the acknowledgements. Never acknowledge a warning your user has not seen, and never write the acceptance reason yourself — it is their professional judgment in their own words. Datavrn will refuse if anything about the statement changed after you read the state, and nothing will be finalised. If the response comes back with reused set to true, a finalisation of this same version was already under way: nothing new was done and your approval was not used. Do not call finalise_statement again — the status field says where that finalisation is (queued, running, or paused, which means it hit a temporary problem and Datavrn will retry it on its own). Poll get_job with the job_id and tell your user what it says.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| snapshot_id | string | oui | |
| acknowledgments | object | oui | |
| confirm_token | string | oui | |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
get_comparative_source_state
Check the previous-year comparative source
Check whether this statement’s previous-year comparative can be sealed, and get the approval assert_previous_year_no_activity needs. Datavrn refuses to finalise a statement whose previous-year figures come from a trial balance drawn AFTER the year-end closing entries: that derives a previous-year Profit and Loss of all zeroes which foots perfectly and is not last year’s results. When post_closing_detected is true, READ THE WHOLE finding TO YOUR USER — what the state is and all three ways out — and let them choose. Never choose for them. Two of the three remedies are things only they can do (upload the pre-closing trial balance, or enter last year’s signed figures as previous-year values, then generate a fresh version). The third is an assertion that the previous year genuinely had NO ACTIVITY, which is a statement about their client’s accounts, in their words, recorded in their name — a dormant company is the case it exists for. The approval is single-use, expires in 15 minutes, and is tied to this statement, this connection and the member you name; if the previous-year figures change in between, the assertion will be refused and you start again from here. If nothing is wrong there is no approval to hand back, because there is nothing to assert.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | The statement template id (e.g. 'schedule3_v1' Division I; see list_snapshots/workspace). |
| period_id | string | oui | The reporting period id — from list_periods. |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
assert_previous_year_no_activity
Record that the previous year genuinely had no activity
Record your user’s assertion that the previous year genuinely had no activity, so this statement’s all-nil previous-year Profit and Loss is a fact rather than a closing-entry artefact. This clears Datavrn’s refusal to finalise it. THIS IS A PROFESSIONAL ASSERTION ABOUT A CLIENT’S ACCOUNTS, RECORDED IN THE NAMED MEMBER’S NAME AND KEPT WITH THE STATEMENT. Only send it when your user has told you, in their own words, that the previous year had no activity — a dormant entity is the case it is for. NEVER write the reason yourself and never paraphrase it into something firmer: send what they said. If they are unsure, or if the previous year DID trade and the trial balance was simply taken after closing, do not call this — the other two remedies in get_comparative_source_state are the correct ones. Call get_comparative_source_state first, read out the finding, get their explicit go-ahead, and send the confirm_token it returned. Datavrn refuses if the previous-year figures changed after you read the state, and nothing is recorded. It can be withdrawn in Datavrn if it was recorded in error; withdrawing restores the refusal.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | The statement template id (e.g. 'schedule3_v1' Division I; see list_snapshots/workspace). |
| period_id | string | oui | The reporting period id — from list_periods. |
| reason | string | oui | Your user’s own words: why the previous year had no activity. Recorded with the statement and shown to whoever reviews it. |
| confirm_token | string | oui | The approval from get_comparative_source_state. Call it first and present its finding to your user. |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
generate_schedule_iii
Generate Schedule III statements
Queue the Schedule III workbook build (returns a job_id to poll with get_job — the build runs as a background job). Supply a fresh request_id UUID for a new request; retain that UUID and unchanged arguments when retrying after an uncertain response. Changing an acknowledgment or other argument requires a new UUID. REFUSES when ungrouped accounts exist unless acknowledged: before acknowledging, present the ungrouped accounts to your user and obtain their explicit go-ahead; record it in acknowledge_reason and pass the exact count in acknowledge_count — an acknowledgement WITHOUT its count is always re-demanded. For a multi-month P&L window, acknowledge_multi_month_pnl is required only when the refusal reports period-activity or basis-not-captured inputs; show your user the exact reported risky-month count and confirm only the P&L figures for that subset. Declared cumulative inputs have already been normalized and must not be described as period movements. If the refusal reports invalid cumulative normalization, do not acknowledge it away: correct and re-upload the affected input. Never acknowledge anything the user has not seen. Once queued, the build usually completes in a few minutes — tell your user their statements are being prepared and poll get_job periodically; do not present the wait as a problem.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| request_id | string | non | |
| template_id | string | oui | |
| period_id | string | oui | |
| acknowledge_unclassified | boolean | non | |
| acknowledge_count | integer | non | |
| acknowledge_reason | string | non | |
| acknowledge_multi_month_pnl | boolean | non | |
| acknowledge_month_count | integer | non |
get_job
Get job status
Poll a background job by id until status is succeeded or failed. A failed job carries its user-safe error reason — show it to your user. Jobs run on a background worker that claims queued work on a schedule, so a job sitting at "queued" (0 attempts) for the first few minutes is NORMAL, not a fault — keep polling every ~30–60s and reassure the user it is being prepared; do NOT report this as an error or a Datavrn bug. Only if it is still "queued" well past a few minutes should you tell the user it is taking longer than usual.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| job_id | string | oui | The job id returned by generate_schedule_iii. |
list_snapshots
List statement versions
List the frozen Schedule III workbook versions for an entity (newest first), including each version’s period, template, and unclassified count at build time.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | non | Filter to one template. |
get_workbook_download
Download workbook
Mint a short-lived signed URL for a frozen workbook version (the Excel file). Give the URL to your user to open in a browser — it needs no login and expires in about 10 minutes. The bytes are immutable and integrity-hashed.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| snapshot_id | string | oui | The snapshot id from list_snapshots. |
create_upload_link
Create upload link
Mint a single-use, login-free upload link so a file reaches Datavrn WITHOUT passing through your context, where it cannot truncate or corrupt. Use this whenever a human has the file (a trial balance export, etc.) — and also whenever YOU hold the file and it is larger than about 10 KB. This is the RELIABLE path at that size: inlined base64 mutates often enough that the damage arrives as a plausible-looking trial balance rather than an obvious error, while the link delivers the bytes byte-perfect. Two ways to deliver the file: a HUMAN opens upload_url in their browser and chooses the file; a PROGRAMMATIC caller that already holds the file on disk POSTs it to the SEPARATE upload_post_url as a multipart form with a single `file` field (upload_url is the human page and will not accept a POST). The POST reply carries received_file_hash — compare it to your local sha256 before confirming the mapping. The link stages the file for ONE entity and expires in about 15 minutes; nothing is ingested until the column mapping is confirmed.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| file_name | string | oui | The file the user is expected to upload, e.g. 'tb-2026-03.xlsx' (shown on the upload page). |
| format | string | non | Leave unset — the assistant handles Trial Balances only; any other format is refused (use the Datavrn web app). |
| source | string | non | Set 'tally_file' when the file is a Tally xlsx export; omit otherwise. |
get_upload_link_status
Get upload link status
Check an upload link's state: pending (the user has not uploaded yet), uploaded (returns the upload_id — continue with get_upload), or expired (mint a fresh link with create_upload_link). Poll after the user says they uploaded the file.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| link_id | string | oui | The link id returned by create_upload_link. |
get_statement_figures
Read statement figures
Read a generated Schedule III statement's figures: the balance-sheet and profit-and-loss faces, current-year and previous-year balance-sheet tie verdicts separately (a null verdict means UNKNOWN, never a pass: either no comparative was captured, or the version predates per-column balance recording), the unclassified count, and the notes listed by number. Also returns bounded exception counts by rule/severity and the frozen control changes versus the immediately previous recorded version; it never recomputes either from live books. Figures come from a generated version (the latest unless you pass a specific version) and match the workbook exactly. If the version was generated before figure reads existed it returns available:false with reason "figures_not_available" and only the legacy flat tie verdict; tell the user to generate the statement again, read the latest version, then retry. For a note's line-by-line breakdown, use its note_index entry with get_statement_notes. Amounts are decimal strings in rupees. ONE EXCEPTION: the profit-and-loss face ends with the statutory earnings-per-share rows, marked kind:"eps". Their figures are ₹ PER SHARE, not rupees of profit — report them as EPS and never add them into a face total. They are null until the weighted average share counts are saved in statement settings. Figures are Datavrn's deterministic engine output; interpretation is your assistant's.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | The statement template id (e.g. 'schedule3_v1' Division I; see list_snapshots/workspace). |
| period_id | string | oui | The reporting period id — from list_periods. |
| version | integer | non | A specific statement version; omit for the latest. |
get_statement_notes
Read statement notes
Read the line-by-line breakdown of a generated statement's notes — every line's current and prior-year amount, and the note total. Pass note_numbers (from get_statement_figures' note_index) to fetch specific notes, or omit for all. Use this to answer "what's in Other Expenses?" or "what makes up trade receivables?". Each line has a kind: 'component' (an additive line), 'subtotal' (a presentational group subtotal — do NOT add it into the total, or you double-count), or 'header'. Fixed-asset / intangible notes carry a `block` per class with gross_block, accumulated depreciation, and net (the additions/deletions movement schedule itself lives in the workbook). If the full set is too large it returns too_large:true with a note_index — fetch note_numbers in small batches. A single very large note (e.g. a PPE schedule or an ageing note) is returned in explicitly-flagged line pages: each page carries the authoritative note total, lines_page, lines_total, and has_more_lines — keep fetching lines_page until has_more_lines is false; never treat one page's lines as the whole note. Amounts are decimal strings in rupees. Figures are Datavrn's deterministic engine output; interpretation is your assistant's.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| template_id | string | oui | The statement template id (e.g. 'schedule3_v1' Division I; see list_snapshots/workspace). |
| period_id | string | oui | The reporting period id — from list_periods. |
| version | integer | non | A specific statement version; omit for the latest. |
| note_numbers | array<string | number> | non | Specific note numbers to fetch (from note_index); omit for all notes. |
| lines_page | integer | non | For a single very large note returned in line pages: the 1-based line page to fetch (fetch exactly one note; keep going until has_more_lines is false). |
get_tb_rows
Read trial-balance source data
Read the SOURCE DATA behind a statement: the trial-balance rows (account name, debit, credit) as landed for a period, BEFORE grouping — the pre-statement numbers, not statement figures. PREFER FILTERS over fetching everything: name_patterns (e.g. ['cash','bank','od']), side ('debit'/'credit' by net balance), and min_abs_balance return a small exact subset with its own debit/credit totals — e.g. wrong-side cash accounts = name_patterns ['cash','bank'] + side 'credit'. Paginated (page 1-based; page_size default 50, max 500). These are the CURRENT live rows: statement figures are frozen at a generated version, so if the trial balance was re-uploaded after a version was generated, these rows may not tie to that version (the response `note` says so). Amounts are decimal strings in rupees. Figures are Datavrn's deterministic engine output; interpretation is your assistant's.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| period_id | string | oui | The reporting period id — from list_periods. |
| name_patterns | array<string> | non | Up to 10 case-insensitive substrings; an account matches if its name contains ANY of them (e.g. ['gst','tds']). |
| side | enum: "debit" | "credit" | non | Keep only accounts whose net balance falls on this side (debit = debits exceed credits). Accounts netting to zero match neither. |
| min_abs_balance | string | non | Keep only accounts whose balance (the larger of its debit/credit) is at least this many rupees — a decimal string like '100000'. |
| page | integer | non | 1-based page number (default 1). |
| page_size | integer | non | Rows per page (default 50, max 500 — prefer filters over big pages). |
close_incomplete_mis_capture
Close incomplete generation
Close one incomplete MIS generation only after your user explicitly chooses to close that run. This permanently marks an eligible incomplete generation as failed while preserving its history. The original failure cause remains unknown. Use the same original initiating account and exact original delegated credential, with current Generate and entity access. The server refuses if capture committed, the run is busy, authority changed, or a safe closeout cannot be proved. A successful response contains only the run status and committed closeout receipt. If the outcome is unconfirmed, refresh and verify this same run before generating again. Only after confirmed closeout may the user separately choose ordinary Generate; this tool never starts another generation. Recorded as authorised by the member resolved for this connection.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| run_id | string | oui | The exact incomplete MIS run id the user chose to close. |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
get_pending_work
List pending work across entities
Answer "what's left to do?" across every entity you can see — one row per entity, with what is blocking its Schedule III statement: whether the trial balance is in, how many accounts are still ungrouped, the latest generated version, and whether it has been finalised. Pass period_label to pick a period, or omit to default to the period most of your entities have a trial balance for (not necessarily the newest — one entity uploading a future period early will not flip the board). Rows include deep links that open the Datavrn web app (a login is needed there). It also answers a second question nothing else here does: restorable_replacements lists automatic connector syncs that REPLACED an entity's data and can still be undone, soonest-closing first, each with the date its 30-day undo window shuts — after that the replaced data cannot be put back, and no message ever announces that clock running out, so raise these with your user rather than waiting to be asked (use list_replacements and preview_replacement_restore on the ids given; restorable_replacements_omitted says how many more were not listed).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| period_label | string | non | Reporting period label, e.g. '2026-03'; omit to default to the period most of your entities have a trial balance for. |
list_allocation_runs
List allocation runs
MANAGEMENT data class. Discover the latest generated persisted allocation run for each requested period and its separate cost-centre and profit-centre reconciliations; do not add them together. This does not generate or recompute allocation. Money is decimal-string rupees. Choose one allocation_dimension in a detail read. Results are ordered period, version, then run id, and the signed page_token is pinned to the complete filtered source: if it reports source_changed, restart at page 1. Latest generated does not establish source freshness; known_stale and not_assessed are both warnings, never a claim that the source is fresh. Raw stale reasons and warning context are not returned.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| period | string | non | Optional management month in YYYY-MM. |
| page_size | integer | non | Rows per source-pinned page (default 20, max 50). |
| page_token | string | non | Signed continuation from the prior page; restart without it if source_changed. |
get_allocation_account_figures
Read allocation account figures
MANAGEMENT data class. Read one explicit cost or profit partition of the current persisted allocation run at account grain. Cost-centre and profit-centre reconciliations are independent views of the same P&L activity; do not add them. Books figure plus spreading adjustment equals MIS figure, all as decimal-string rupees. Filter account names or minimum absolute MIS amount before paging. The signed page_token is source-pinned, so restart at page 1 if source_changed. known_stale and not_assessed disclose run state; neither means fresh.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| period | string | oui | Management month in YYYY-MM. |
| allocation_dimension | enum: "cost" | "profit" | oui | Required partition: cost for cost-centre or step-down questions; profit for profit-centre questions. Do not add the two views. |
| account_name_patterns | array<string> | non | Up to 10 case-insensitive account-name substrings; any match is retained. |
| min_abs_mis | string | non | Minimum absolute MIS figure in rupees as a decimal string, e.g. '100000'. |
| page_size | integer | non | Rows per source-pinned page (default 50, max 200). |
| page_token | string | non | Signed continuation from the prior page; restart without it if source_changed. |
get_allocation_target_figures
Read allocation target figures
MANAGEMENT data class. Read one explicit cost or profit partition of the current persisted allocation run at account × target × source × mode grain, with decimal-string allocated amounts. Cost-centre and profit-centre reconciliations are independent views of the same P&L activity; do not add them. Final post-step-down cost uses the complete selected cost population: non-step-down plus signed step-down. Filter allocation_sources=['step_down'] only to inspect transfers and confirm their run net is zero. Accounted equals assigned plus Unallocated; Unallocated is not additional. For profit centres, choose profit. Use filters before paging; the signed page_token is source-pinned, so restart at page 1 if source_changed. Target labels use the current governed centre timeline evaluated at the run period (target_labels_frozen: false); persisted allocation amounts stay unchanged. A controlled in-period centre correction changes a displayed label and invalidates the page token; restart at page 1 without regenerating allocation. Review run staleness and methodology, and regenerate when either changed. An integrity failure means regenerate, retry, then contact support if it recurs. No owners, descriptions, source transactions, or recomputation are returned.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| period | string | oui | Management month in YYYY-MM. |
| allocation_dimension | enum: "cost" | "profit" | oui | Required partition: cost for cost-centre or step-down questions; profit for profit-centre questions. Do not add the two views. |
| account_name_patterns | array<string> | non | Up to 10 case-insensitive account-name substrings; any match is retained. |
| target_types | array<enum: "cost_centre" | "sub_cost_centre" | "profit_centre" | "sub_profit_centre" | "unallocated"> | non | Restrict to allocation target types. |
| allocation_sources | array<enum: "account_mapping" | "source_dimension" | "unallocated" | "step_down"> | non | Restrict to allocation sources. |
| min_abs_amount | string | non | Minimum absolute allocated amount in rupees as a decimal string, e.g. '100000'. |
| page_size | integer | non | Rows per source-pinned page (default 50, max 200). |
| page_token | string | non | Signed continuation from the prior page; restart without it if source_changed. |
get_spreading_reconciliation
Read spreading reconciliation
MANAGEMENT data class. Read the persisted books-to-MIS spreading reconciliation, not a new allocation run. Accounts view gives account-grain books plus adjustments equals MIS; adjustments view requires one account and pages its rule adjustments. Money is decimal-string rupees. Whole-run summary figures never change with account filters. The signed page_token is source-pinned, so restart at page 1 if source_changed. Raw warning context is withheld; known_stale and not_assessed are disclosure states, not freshness claims.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| period | string | oui | Management month in YYYY-MM. |
| view | enum: "accounts" | "adjustments" | non | accounts (default) or adjustments; adjustments requires account_id. |
| account_id | string | non | Required for adjustments view; an account in this entity and run. |
| account_name_patterns | array<string> | non | Up to 10 case-insensitive account-name substrings; any match is retained. |
| page_size | integer | non | Rows per source-pinned page: accounts default 25/max 100; adjustments default 50/max 200. |
| page_token | string | non | Signed continuation from the prior page; restart without it if source_changed. |
list_budgets
List budgets
MANAGEMENT data class. Discover the existing ACTIVE budget for each requested Entity and fiscal year, including earlier fiscal years. Newer independent drafts and archived versions are not readable. If there is no ACTIVE budget, the native list is empty; never substitute a draft or archived row. Budget ids and versions are source citations without identity fields. Locked FX rate and all money-valued fields are decimal strings. Filter fiscal-year start before paging. The signed page_token is pinned to the complete ACTIVE source; if source_changed, discard partial results and restart discovery at page 1 without the old token. This lists budget headers only, not cells, approval identities, or a recalculated budget.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| fiscal_year_start | string | non | Optional fiscal-year first-of-month date, e.g. 2026-04-01. |
| page_size | integer | non | Rows per source-pinned page (default 20, max 50). |
| page_token | string | non | Signed continuation from the prior page; restart without it if source_changed. |
get_budget
Read budget
MANAGEMENT data class. Read the exact existing ACTIVE budget_id returned by list_budgets for the requested Entity and fiscal year, including earlier fiscal years: identity-free header, its pinned P&L tree, and filtered/paginated cells with entered-versus-inferred truth. A draft or archived id is not readable and is never replaced inside a read. Amounts and locked FX rate are decimal strings. Filter months, lines, centres, or inference before paging. The signed page_token binds this exact id and source; if source_changed after a replacement, discard partial results, rediscover ACTIVE with list_budgets and start the new exact id at page 1 without the old token. Never combine budget versions or select a substitute mid-walk. Cells across different P&L lines are not one meaningful grand total, so no cross-line grand total is exposed. No people, ownership, editability, or approval identities are returned.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| budget_id | string | oui | Budget id from list_budgets. |
| month | string | non | Optional budget month in YYYY-MM. |
| line_codes | array<string> | non | Up to 25 P&L line codes. |
| cost_centre_ids | array<string> | non | Up to 25 cost-centre ids. |
| inference | enum: "all" | "entered" | "inferred" | non | Cell inference state (default all). |
| page_size | integer | non | Cells per source-pinned page (default 100, max 200). |
| page_token | string | non | Signed continuation from the prior page; restart without it if source_changed. |
get_variance_report
Read variance report
MANAGEMENT data class. Read the existing budget-or-prior variance report for a month; it never recalculates it. Amounts are decimal strings; a null actual or variance means unavailable, never zero. Rows view has whole-report unfiltered rollups and no cross-side grand total; filters affect only rows and filtered grain counts. Explanations view withholds internal notes and may redact structured PII. Filter lines or centres before paging; the signed page_token is source-pinned, so restart at page 1 if source_changed.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| period | string | oui | Management month in YYYY-MM. |
| basis | enum: "budget" | "prior" | non | Comparator basis (default budget). |
| view | enum: "rows" | "explanations" | non | Report rows (default) or safe explanations. |
| line_codes | array<string> | non | Up to 25 P&L line codes. |
| cost_centre_ids | array<string> | non | Up to 25 cost-centre ids. |
| page_size | integer | non | Rows per source-pinned page (default 50, max 100). |
| page_token | string | non | Signed continuation from the prior page; restart without it if source_changed. |
get_consolidated_statements
Read sealed consolidated statements
CONSOLIDATED data class. Read one sealed group profit-and-loss, balance-sheet, or cash-flow face for an exact periodicity and period. The response exposes presentation currency and exactly one decimal-string amount per line: section-natural for P&L/BS, signed cash movement for CFS. Amounts are persisted on the sealed run; P&L/BS labels are current display metadata and the signed page_token is source-fingerprinted across the complete safe face, so a changed value or label requires restarting at page 1. A stale sealed run is disclosed on every page and is never called current. Member names, components, eliminations, journal references and lineage are not returned. QUALIFICATIONS. A response may carry `owned_share_capital_caveat` (at seal, share capital owned by the group could not be eliminated, so those amounts remained inside consolidated share capital as the engine computed it; the DISPLAYED line may differ in either direction where a manual journal also moved it, so never characterise the direction from this field alone) and always carries `domestic_cash_flow_caveat`. These qualify specific statement lines. When a caveat is present, any figure it qualifies MUST be presented together with its qualification — never the number alone. `owned_share_capital_caveat` is null when the run was read and carries no such qualification, and `{status: "unavailable"}` when the run’s qualification record could not be read at all, which is not the same as clean: say so rather than presentin…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| group | string | oui | An active group UUID or its exact case-insensitive display name. |
| periodicity | enum: "monthly" | "quarterly" | "annual" | oui | Period grammar: monthly YYYY-MM, quarterly FYyyyy-Qn, annual FYyyyy. |
| period | string | oui | The period matching periodicity. |
| statement | enum: "pnl" | "balance_sheet" | "cash_flow" | non | Statement face (default pnl). |
| page_size | integer | non | Rows per source-pinned page (default 50, max 100). |
| page_token | string | non | Signed continuation from the prior page; restart without it if source_changed. |
list_entity_mis_runs
List saved Entity MIS runs
SAVED MIS data class; requires fresh saved-MIS consent. Discover the canonical current Entity MIS for any requested reporting period, including earlier periods, using a live offset catalogue. Superseded versions are not accessible. Available sealed working, submitted and approved output is readable; approval is not required, and retrieval never approves a run. Disclose the actual approval status. Pending/running/failed/cancelled work has no saved numerical output. Use the returned physical run_id for catalogue and number reads; the returned version is a source citation, not a selector. This does not generate MIS. Group access and other report families are still being added.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| period_start | string | non | Optional period start, YYYY-MM-DD. |
| period_end | string | non | Optional period end, YYYY-MM-DD. |
| periodicity | enum: "monthly" | "quarterly" | "annual" | non | |
| page_size | integer | non | |
| offset | integer | non | Live catalogue offset; results can change between calls. |
get_entity_mis_catalogue
Inspect saved Entity MIS numerical coverage
Inspect canonical current Entity MIS numerical coverage for the run_id returned by current-run discovery for the requested reporting period. Superseded versions are not accessible. The returned version is a source citation, not a selector. If source_changed is returned, rediscover the current run and restart at page 1. Reviewed codecs cover ordinary Entity financial statement populations returned by this catalogue, cumulative_variance_tracking year-to-date profit after tax and services_lockup detail populations contract_lockup_v5 and customer_lockup_v5 plus its services_lockup visual population and the additional reviewed native V5 detail and visual populations returned by this catalogue. The catalogue also admits four reviewed legacy business detail populations: inventory_aging/v4_aging_bucket, cohort_retention/v3_cohort_cell, churn_reasons/v3_churn_reason and at_risk_customers/v5_at_risk_raw_summary; recovery/editor and opaque-reference workflows are excluded. The current catalogue additionally admits shared statement candidates across twelve report families, including Services, Schools and statutory summaries, conditional on actual current saved availability. Statutory facts identify authenticated saved-row occurrences, not V2 identities or distinct economic totals; never deduplicate or aggregate equal-looking rows. Excluded rows without typed amounts/counts retain state and a context gap, never values parsed from prose. Native comparisons within a current report are curr…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| run_id | string | oui | Current Entity run UUID returned by list_entity_mis_runs; never a Group id. |
get_entity_mis_numbers
Read saved Entity MIS numbers
Read native current Entity MIS numbers, states, units, periods and source references without recomputation, for any requested reporting period including earlier periods. Available sealed output does not require approval; disclose its actual approval status. Currently serves ordinary Entity financial statement populations returned by the catalogue, cumulative_variance_tracking year-to-date profit after tax and the reviewed services_lockup detail populations contract_lockup_v5 and customer_lockup_v5 plus visual population services_lockup and the additional reviewed native V5 detail and visual populations in the current catalogue. Also reads the four reviewed legacy business detail populations inventory_aging/v4_aging_bucket, cohort_retention/v3_cohort_cell, churn_reasons/v3_churn_reason and at_risk_customers/v5_at_risk_raw_summary. These facts retain period:null/not_declared; dates and months are context only. Cohort ratios remain fractions, native and presentation money retain their distinct currencies, and fx_rate_per_1e4 is an unchanged scaled integer, never a second conversion. Repeated aging population operands are non-additive across buckets. At-risk rules and evidence are saved source results, never rescore them. Preserve unavailable or incomplete qualification and withheld names/source text; only positively qualified fixed labels pass. Shared statement candidates in the current catalogue additionally preserve native operational and employee_pay_deferred figures, School…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| run_id | string | oui | Current Entity run UUID returned by list_entity_mis_runs. |
| report_id | string | oui | Exact report identifier returned by the catalogue. |
| population_kind | enum: "statement" | "detail" | "visual" | "scalar" | non | Named population kind from the catalogue; defaults to statement. |
| population_key | string | non | Exact named population key from the catalogue; defaults to report_id for statement reads. |
| page_size | integer | non | |
| page_token | string | non | Signed immutable-source continuation from the previous page. |
list_cost_centres
List cost centres
List the cost centres for an entity. Use this before proposing account mappings so you can group the proposal by target name and distinguish operating from support centres. This is status-only: it returns names, short codes, kinds and each centre’s parent_cost_centre_id, never rupee amounts and never an owner’s name. Read parent_cost_centre_id (null at the top level) to show the user the hierarchy that create_cost_centre wrote, so a wrong parent can be seen and corrected. is_active false means the centre is DEACTIVATED: it is not an available target, never propose a mapping onto one, and never count it when you tell the user how many targets exist. Check the returned codes before choosing a code for create_cost_centre — a code must be unique among live centres. Tell the user what the existing structure means before suggesting a change.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| page | integer | non | 1-based page number (default 1). |
| page_size | integer | non | Rows per page (default 100, max 200). |
create_cost_centre
Create a cost centre
Create one cost centre for an entity after showing the user the exact name, kind, parent, effective date, and reason. This is one explicit centre at a time; there is no apply-all shortcut. After creating it, call list_cost_centres again and explain which mapping suggestions can now use it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| name | string | oui | The cost-centre name to create. |
| centre_kind | enum: "operating" | "support" | non | Operating or shared-support centre; defaults to operating. |
| parent_cost_centre_id | string | null | non | Optional existing parent cost-centre id. |
| description | string | null | non | Optional plain-language description. |
| code | string | null | non | Optional short code. |
| effective_from | string | non | Date from which this centre applies; defaults to the start of the entity data. |
| reason | string | oui | Why the user asked for this centre. |
list_profit_centres
List profit centres
List the profit centres for an entity. Use this to explain available targets before a user confirms any explicit mapping. This is status-only: it returns names and hierarchy, never rupee amounts.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| page | integer | non | 1-based page number (default 1). |
| page_size | integer | non | Rows per page (default 100, max 200). |
create_profit_centre
Create a profit centre
Create one profit centre for an entity after showing the user the exact name, optional parent, and description. This is one explicit centre at a time; there is no apply-all shortcut. Re-list the centres after creation so the user can see the new target before any mapping confirmation.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| name | string | oui | The profit-centre name to create. |
| parent_profit_centre_id | string | null | non | Optional existing parent profit-centre id. |
| description | string | null | non | Optional plain-language description. |
list_account_mappings
Review account mappings
Review account-to-centre mapping status and deterministic suggestions for an entity. Each account carries TWO independent policies: mapping (the cost-centre policy) and profit_mapping (the profit-centre policy). Neither replaces the other. This is status-only: it returns account names, types, target names, confidence, reasons, and balance-bearing booleans, but never debit, credit, balance, or any rupee amount. Always present the rows grouped by confidence tier and target, state exact counts, flag every medium/low-confidence row, and show the completion counts: unmapped_total and unmapped_with_balance are the COST dimension (summary.scope says so), and profit_unmapped_total and profit_unmapped_with_balance are the profit dimension. Never add the two dimensions together, and never call an entity fully mapped on the cost counts alone. Do not call any count pending. Suggestions exist for the cost dimension only: suggestion_groups never describes profit work, and each row’s centre_suggestion carries dimension "cost" — never present it as an answer to a profit-centre question. A row carrying mapping_targets_inactive is confirmed onto a cost centre that has since been DEACTIVATED, and a row carrying profit_mapping_targets_inactive is the same fact on the profit dimension: those target ids are absent from the centres and profit_centres lists because they are no longer valid targets. Report summary.mappings_with_inactive_target (which counts an account with a dead target on EITHER di…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| page | integer | non | 1-based page number (default 1). |
| page_size | integer | non | Rows per page (default 100, max 200). |
| unmapped_only | boolean | non | Return only accounts that still need a COST-centre policy. It does not filter on the profit dimension — use profit_unmapped_only for that. |
| profit_unmapped_only | boolean | non | Return only accounts that still need a PROFIT-centre policy — the rows behind profit_unmapped_total. Combine with unmapped_only to get accounts that need both. |
| balance_bearing_only | boolean | non | Return only accounts that carry a balance, without returning the balance itself. |
| name_patterns | array<string> | non | Return accounts whose code or name contains at least one of these case-insensitive patterns. |
confirm_centre_mappings
Confirm cost-centre mappings
Persist only the explicit account-to-centre decisions the user approved. Before calling, show the proposal grouped by confidence tier and target with exact counts, call out every medium/low-confidence row, and get a clear approval for the enumerated items. Omitted accounts stay unchanged; there is no apply-all, auto-confirm, or use-suggestions flag. Each item writes ONE dimension, chosen by target_type: "cost_centre" writes the cost-centre policy and "profit_centre" writes the profit-centre policy. The two are independent — writing one never replaces the other — and the same account may appear once per dimension in a single call. A centre policy can only be set on a profit-and-loss account: an account Datavrn resolves to a balance-sheet type, or has not classified yet, is refused by name and nothing is saved. After the write, report confirmed, unmapped_total and unmapped_with_balance (the cost dimension), and profit_unmapped_total and profit_unmapped_with_balance (the profit dimension) so the user knows exactly what remains. When profit_centres_total is 0 the profit dimension is not in use and no account needs a profit-centre policy — never report the entity as profit-mapped. Read profit_mapped_total beside it: 0 means no account holds one, and above 0 means the dimension has been closed while that many accounts still carry a saved policy pointing at a deactivated centre. The counts describe the policies in force on counts_as_of. A write can be saved and still not be in forc…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| effective_from | string | oui | The effective date shown to the user. |
| items | array<object> | oui | Every account decision explicitly approved by the user; never a blanket flag. |
| removal_token | string | non | Only include the short-lived token returned by the removal preview for this exact proposal. |
| removal_count | integer | non | The exact removal count returned by the removal preview. |
list_reporting_lines
Review reporting-line mappings
Review reporting-line classification status and deterministic suggestions for an entity and reporting period. This is status-only: it returns names, line labels, confidence, reasons, and balance-bearing booleans, but never debit, credit, balance, or any rupee amount. Present suggestions grouped by confidence tier and target, with exact counts and both unmapped_total and unmapped_with_balance; do not call either count pending.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| period_id | string | oui | The reporting period id from list_periods. |
| page | integer | non | 1-based page number (default 1). |
| page_size | integer | non | Rows per page (default 100, max 200). |
| unmapped_only | boolean | non | Return only accounts without a confirmed reporting line. |
| name_patterns | array<string> | non | Return accounts whose code or name contains at least one of these case-insensitive patterns. |
confirm_reporting_lines
Confirm reporting-line mappings
Persist only the explicit reporting-line decisions the user approved. Before calling, show the proposal grouped by confidence tier and target with exact counts, flag every medium/low-confidence row, and get clear approval for the enumerated decisions. Omitted accounts stay unchanged. Sending leaf_code:null permanently removes that account saved reporting line; send it only when the user explicitly asked to clear that row. There is no apply-all or auto-confirm flag. The response tells you how many were confirmed, cleared, and whether the balance-bearing set is fully mapped; never claim completion without checking those fields.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| decisions | array<object> | oui | |
| removal_token | string | non | Only include the short-lived token returned by the removal preview for this exact proposal. |
| removal_count | integer | non | The exact removal count returned by the removal preview. |
get_setup_status
Show setup status and the next step
Answer "how do I get started?", "what do I do next?", or help a user who seems lost setting up. Returns where they are in the journey from an empty organization to a finished Schedule III statement, and the ONE next step to take. Call it WITHOUT client_id first (the organization view): it lists the entities this credential can see, or — if there are none — the step to create the first one. Then call it again WITH one entity’s client_id for that entity’s full step-by-step path (upload trial balance → confirm groupings → capture figures → generate → download). Each step has a status (done / next / todo / blocked / web_only) and either the exact tool to call or a web-app link. NARRATE ONE STEP AT A TIME — walk the user through the single `next` step; do not dump the whole list unprompted. Steps marked web_only are done in the Datavrn web app and need a login — never claim you can do them yourself. This tool reports STATUS only (counts, names, what is done) — it never returns a figure or balance; read those with get_statement_figures once a statement is generated.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | non | An entity id (from list_clients or the organization view) for that entity’s full path; omit for the organization-level overview and, on an empty org, the create-entity step. |
list_replacements
List what automatic syncs replaced
List what a connected data source’s AUTOMATIC syncs have REPLACED for one entity — each one showing what was overwritten, how many records, and whether it can still be undone. Call this when a user says figures for a past period look wrong or changed on their own, and after any surprise in a period a connector covers. Datavrn keeps the replaced data for 30 days from the moment it was replaced: within that window state is "restorable" and preview_replacement_restore/restore_replacement can put it back; after it, state is "lapsed" — the record of what happened is kept and is still listed here, but it can no longer be undone from this connection, so tell the user to contact Datavrn support if they need that data recovered. "restored" means it has already been put back. Only syncs that ran UNATTENDED are listed: a replacement someone on the team previewed and confirmed themselves is not offered for undo, by design. window_closes_at is the date the undo window shuts. If connection_attributed is false, Datavrn can no longer prove which connection made that replacement — say so rather than naming this one. To find these without a connection id, call get_pending_work: it lists every still-undoable replacement across the entities you can see, with the entity and connection to use here.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| connection_id | string | oui | The connected data source’s id — from get_pending_work’s restorable_replacements rows, or from the entity’s data-sources page in the web app. |
preview_replacement_restore
Preview undoing an automatic sync
Show EXACTLY what undoing one automatic sync would do, counted at this moment, and get the approval restore_replacement needs. destroy_count is how many records undoing it would DESTROY — everything currently held for that period, whoever or whatever put it there, including data a colleague uploaded since. restore_count is how many records would be put back. READ BOTH NUMBERS TO YOUR USER IN THEIR OWN TERMS AND GET THEIR EXPLICIT GO-AHEAD BEFORE CALLING restore_replacement. Undoing a sync is itself a destructive act. If blocked_reason comes back non-null, the period is locked by a finalised statement or a sealed run: read that reason out, do not call restore_replacement, and no approval is issued. The approval is single-use, expires in 15 minutes, and is tied to this entity, this sync, this connection, the member you name AND the exact destroy_count returned here. Send that same number back as expected_destroy_count — never a number you adjusted. If the period’s data changes in between, the approval is spent and you start again from here.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| connection_id | string | oui | The connected data source’s id — from list_replacements or get_pending_work. |
| event_id | string | oui | The replacement’s id — the `id` field of a list_replacements row. |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
restore_replacement
Undo an automatic sync
Undo one automatic sync: destroy what is currently held for that period and put back the records the sync replaced, recorded as authorised by the member you name. THIS DESTROYS DATA. Everything currently held in that period goes — including anything uploaded or synced since — and is replaced by what was there before. Datavrn keeps a record of what this destroys, but it is NOT offered back on this surface; recovering from an undo is a support operation. Call preview_replacement_restore first, read both of its numbers to your user, get their explicit go-ahead, and send back the confirm_token it gave you with the EXACT destroy_count it returned as expected_destroy_count. Datavrn refuses and changes nothing if: the period’s data moved after you were shown those numbers, the period is locked by a finalised statement or a sealed run, someone already undid this sync, the 30-day window has closed, or the replacement was one a person previewed and confirmed themselves. On success it reports how many records were destroyed, how many were put back, and — under soft_reference_relink — how many links to the restored documents could not be re-established; tell your user that residual number rather than presenting the undo as complete.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| connection_id | string | oui | The connected data source’s id — the same one you previewed with. |
| event_id | string | oui | The replacement’s id — the same one you previewed. |
| expected_destroy_count | integer | oui | The destroy_count preview_replacement_restore returned and you showed your user. Send it back unchanged — a different number is refused, because the approval covers the act your user actually saw. |
| confirm_token | string | oui | The approval from preview_replacement_restore. Call it first and present both of its numbers to your user. |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
list_chart_rebaselines
Uploads not yet counted as identity evidence
List the uploads Datavrn is NOT counting as evidence of which entity a file belongs to. This happens when an entity’s chart of accounts grew or changed faster than Datavrn can vouch for from what it already holds — typically an acquisition, a migration, or a year-end restructure. NOTHING WAS REJECTED, BLOCKED OR CHANGED: the figures in those uploads are landed and live. What has not advanced is the evidence Datavrn compares FUTURE uploads against, so wrong-entity detection for this entity is working from a smaller picture than the entity’s real chart. Each row reports how many distinctive ledger names Datavrn already held (trusted_considered), how many the upload carries (incoming_considered), how many are on both sides (matched), and the two coverage ratios. Show your user those numbers in their own terms. `shortfall` names WHICH direction fell short, and it is the part to say out loud, because the three cases are different situations to an accountant: "incoming" means most of the file is ledger names Datavrn does not already treat as evidence — the chart in the file is much larger than what Datavrn holds; "trusted" means much of what Datavrn holds is missing from the file; "both" means the two charts barely overlap either way. It is null when there was nothing to compare against at all, which the row reports as reason "empty_trust_recovery". This call only lists. To confirm one of these uploads, call preview_chart_rebaseline for that upload — it re-reads the figures and is…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
preview_chart_rebaseline
Show one upload’s figures and get the approval
Show ONE upload’s figures as they stand right now, and get the approval confirm_complete_chart needs. Call this after list_chart_rebaselines, for the one upload your user is considering. It reports the same counts the list does — how many distinctive ledger names Datavrn already treats as evidence (trusted_considered), how many this upload adds (incoming_considered), how many are on both sides (matched), the two coverage ratios, and which direction fell short (shortfall) — re-read at this moment rather than when you listed. Read them to your user in their own terms and ask them plainly whether that upload is the entity’s whole book now. NEVER decide this from the numbers yourself — a large jump, a round number or a long gap is a reason to ASK, never a reason to conclude. Only the person who knows the client’s books can answer it. The approval is single-use, expires in 15 minutes, and is tied to this entity, this upload, the member you name, and the exact figures returned here. If the entity’s uploads change in between — including a later clean file that resolves this on its own — the approval is spent and you start again from this call. Datavrn refuses and changes nothing if this upload is not awaiting a complete-chart confirmation: it was never held out of the evidence, someone already confirmed it, or it is one Datavrn asked about directly — for that last one, answering that question is what settles it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| source_snapshot_id | string | oui | The upload’s id — the `snapshot_id` field of a list_chart_rebaselines row. |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
confirm_complete_chart
Confirm an upload is the entity’s whole chart
Record your user’s explicit confirmation that one upload is an entity’s COMPLETE CURRENT chart of accounts, so Datavrn starts treating it as evidence when checking whether future files belong to that entity. Recorded as authorised by the member you name. THIS IS A PROFESSIONAL JUDGMENT, NOT A CALCULATION. Datavrn will never make it from the numbers, and neither should you: call preview_chart_rebaseline for that upload first, read its counts to your user, and ask them plainly whether that upload is the entity’s whole book now. Confirming a file that is NOT the entity’s chart teaches Datavrn the wrong chart and weakens wrong-entity detection for that entity from then on. Send back the state_digest and confirm_token from the SAME preview_chart_rebaseline response, unchanged. Datavrn refuses and changes nothing if: the entity’s uploads moved after you were shown those figures, someone already confirmed this upload, the upload no longer needs confirming, or it is one Datavrn asked about directly — for those, answering that question is what settles it. Nothing about the landed figures changes: this affects only which uploads count as evidence of identity.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_id | string | oui | The entity (client) id — from list_clients. |
| source_snapshot_id | string | oui | The upload’s id — the `snapshot_id` field of a list_chart_rebaselines row. |
| state_digest | string | oui | The state_digest from the same preview_chart_rebaseline response, unchanged. It pins the figures your user was shown; a different one is refused. |
| confirm_token | string | oui | The approval from preview_chart_rebaseline. Call it first and present its counts to your user. |
| on_behalf_of | string | non | The email address your user signs in to Datavrn with. This records who authorised the change alongside the connection that made it. REQUIRED on an API-key connection — ask your user for it, do not guess. On an OAuth connection leave it out: the change is recorded as authorised by the member who con… |
verify_connection
Verify connection
Confirm the Datavrn connection is working and report what it can do. Call this first — or whenever the user asks whether Datavrn is connected — to get back the organization, the access profile (what this connection may see and do), and the next step. Running it successfully also marks the connection healthy in the user’s Datavrn settings.
Aucun paramètre.
get_help
Get the agent guide
Get the Datavrn agent guide: how connecting works (OAuth and API key), what an assistant can do, how reading a statement as data works, and the guarantees and limits — plus the current list of tools. Call this to answer a user's questions about how Datavrn works from canonical documentation instead of guessing.
Aucun paramètre.
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://app.datavrn.com/api/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http schedule-iii https://app.datavrn.com/api/mcpCustomize > Connectors > + Add > Add custom connector ; Name : schedule-iii ; URL : https://app.datavrn.com/api/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : schedule-iii ; Server URL : https://app.datavrn.com/api/mcp ; Create as a plugin{
"mcpServers": {
"schedule-iii": {
"url": "https://app.datavrn.com/api/mcp"
}
}
}{
"mcpServers": {
"schedule-iii": {
"type": "http",
"url": "https://app.datavrn.com/api/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"schedule-iii": {
"url": "https://app.datavrn.com/api/mcp"
}
}
}{
"mcpServers": {
"schedule-iii": {
"httpUrl": "https://app.datavrn.com/api/mcp"
}
}
}[mcp_servers.schedule-iii]
url = "https://app.datavrn.com/api/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
schedule-iii · L’Atlas · Test du
[schedule-iii — L’Atlas](https://latlas.dev/mcp/com.datavrn/schedule-iii)Source : Registre officiel MCP · relevé le 30 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.