API & MCP

Operating-cost statements

Read operating-cost statements, rebuild a correction, approve and finalise the PDF. Every write starts as a dry run. Approval is not delivery. prepare_nk_versand only prepares dispatch and never sends anything.

Example responses are fictional. They show a possible shape, not a real portfolio.

list_nk_statements

Available

Lists operating-cost statements. kind is original, correction or import. status is draft, review, final, sent or void. The filter approved is an alias of final.

Parameters

tenant_slug string | null · Default null
Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.
property_id string | null · Default null
Optional property filter.
unit_id string | null · Default null
Optional unit filter.
period_year integer | null · Default null
Optional. Year of the statement period.
kind string | null · Default null
Optional: original, correction or import.
status string | null · Default null
Optional: draft, review, final, sent, void. approved means final.
limit integer · Default 50
Maximum number of rows.
offset integer · Default 0
Number of rows to skip.
Example call
{
  "tool": "list_nk_statements",
  "arguments": {
    "property_id": "prop_123",
    "period_year": 2025,
    "kind": "correction"
  }
}
Example response · shape is illustrative
{
  "items": [
    {
      "id": "nkst_801",
      "unit_id": "unit_201",
      "period_year": 2025,
      "kind": "correction",
      "status": "review",
      "status_label_de": "Entwurf (in Prüfung)",
      "balance": 85
    }
  ],
  "limit": 50,
  "offset": 0
}

Sample data

get_nk_statement

Available

Reads one statement with header and lines. A balance above 0 is an additional payment, below 0 a credit.

Parameters

statement_id string · Required
Statement id.
tenant_slug string | null · Default null
Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.
Example call
{
  "tool": "get_nk_statement",
  "arguments": {
    "statement_id": "nkst_801"
  }
}
Example response · shape is illustrative
{
  "id": "nkst_801",
  "unit_id": "unit_201",
  "period_year": 2025,
  "kind": "correction",
  "status": "review",
  "prior_balance": 40,
  "balance": 85,
  "correction_delta": 45,
  "lines": [
    {
      "label": "Grundsteuer",
      "amount": 480,
      "allocation_key": "area"
    }
  ]
}

Sample data

rebuild_nk_correction

Available

Rebuilds a correction. correction_delta is balance minus prior_balance. Identify it by statement_id, or by unit_id plus period_year. dry_run defaults to true. A write happens only when dry_run is false, status is review and the role is member. final, sent and void stay unchanged. Nothing is sent.

Writing requires the member role. The dry-run comparison does not change the stored statement.

Parameters

statement_id string | null · Default null
Correction id. Or pass unit_id and period_year.
unit_id string | null · Default null
Unit id, together with period_year.
period_year integer | null · Default null
Statement year, together with unit_id.
dry_run boolean · Default true
Defaults to true. When true, nothing is written.
tenant_slug string | null · Default null
Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.
Example call
{
  "tool": "rebuild_nk_correction",
  "arguments": {
    "statement_id": "nkst_801",
    "dry_run": true
  }
}
Example response · shape is illustrative
{
  "dry_run": true,
  "statement_id": "nkst_801",
  "prior_balance": 40,
  "balance": 85,
  "correction_delta": 45,
  "written": false,
  "transmitted": false
}

Sample data

approve_nk_statement

Available

Approval from review to final. target_status approved is stored as final. dry_run defaults to true and approve to false, so nothing is written. A write happens only when dry_run is false, approve is true and the role is owner. Status is never set to sent. Approval is not delivery.

Approval requires the owner role. Even then, no document goes out to a party.

Parameters

statement_id string · Required
Statement id.
approve boolean · Default false
Must be true before an approval can be written.
dry_run boolean · Default true
Defaults to true. When true, nothing is written.
target_status string | null · Default final
Target status. Defaults to final. approved is an alias.
tenant_slug string | null · Default null
Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.
Example call
{
  "tool": "approve_nk_statement",
  "arguments": {
    "statement_id": "nkst_801",
    "approve": false,
    "dry_run": true
  }
}
Example response · shape is illustrative
{
  "dry_run": true,
  "statement_id": "nkst_801",
  "from_status": "review",
  "target_status": "final",
  "written": false,
  "transmitted": false
}

Sample data

finalize_nk_pdf

Available

Builds the PDF without the DRAFT watermark when status is final or sent. dry_run defaults to true. preview_final shows the layout without changing status. write_document_link can store a link in your own archive. Nothing is sent.

Calling requires the member role. The PDF does not leave the tenant.

Parameters

statement_id string · Required
Statement id.
dry_run boolean · Default true
Defaults to true. When true, nothing is written.
preview_final boolean · Default false
Layout for review, without changing status.
write_document_link boolean · Default false
Optionally write a document link.
include_beilagen_stub boolean · Default true
Include a placeholder for attachments.
tenant_slug string | null · Default null
Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.
Example call
{
  "tool": "finalize_nk_pdf",
  "arguments": {
    "statement_id": "nkst_801",
    "dry_run": true,
    "preview_final": false
  }
}
Example response · shape is illustrative
{
  "dry_run": true,
  "statement_id": "nkst_801",
  "watermark": false,
  "written": false,
  "transmitted": false
}

Sample data

prepare_nk_versand

Available

Preparation only: checks the list for approval, final PDF, filing, delivery path and status sent. The tool is hard-blocked. execute_send does not lift the block. Nothing is sent and status is not set to sent.

Calling requires the member role. People send outside this tool, after they have checked the list.

Parameters

statement_id string · Required
Statement id.
execute_send boolean · Default false
Ignored. Delivery stays blocked.
dry_run boolean · Default true
Defaults to true. When true, nothing is written.
tenant_slug string | null · Default null
Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.
Example call
{
  "tool": "prepare_nk_versand",
  "arguments": {
    "statement_id": "nkst_801"
  }
}
Example response · shape is illustrative
{
  "statement_id": "nkst_801",
  "blocked": true,
  "transmitted": false,
  "checklist": [
    {
      "step": "approval",
      "ok": true
    },
    {
      "step": "final_pdf",
      "ok": true
    },
    {
      "step": "filing",
      "ok": false
    },
    {
      "step": "delivery",
      "ok": false
    },
    {
      "step": "sent",
      "ok": false
    }
  ]
}

Sample data