Skip to docs content

Tool reference

Books and ledger

The entities, chart of accounts, posted journal entries and lines, and locked periods, each a REST route with the same parameters and the same answer, plus list_books for an app signed in with 42six.

list_entities

The entities (sets of books) in the key's workspace, each with its tax profile: legal structure, tax treatment, fiscal year end, NAICS code, state and date of formation, S corporation election date, payroll, sales tax states and 1099 filing.

REST
GET https://auth.42six.ai/functions/v1/api/v1/entities
ParameterDescription
cursorOptionalThe next_cursor of the previous page.
limitOptionalRows per page, 1 to 1000 (default 1000).

Any API key may call it; it lists only the books the key reaches. An app signed in with 42six calls list_books instead.

Answer (illustrative)
{
  "data": [
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "Example Studio LLC",
      "kind": "business",
      "entity_type": "llc",
      "tax_class": "s_corp",
      "fiscal_year_end_month": 12,
      "naics_code": "541430",
      "formation_state": "TX",
      "formation_date": "2024-01-15",
      "s_corp_election_date": "2024-01-15",
      "has_payroll": true,
      "sales_tax_states": [],
      "files_1099": true,
      "created_at": "2026-01-05T16:20:00.000000+00:00"
    }
  ],
  "next_cursor": null
}

list_books

The books (entities) you approved for this app, each with its id, name, kind and workspace. Every other tool takes one of these ids as entity.

MCP only, for an app signed in with 42six, where it takes the place of list_entities. It takes no parameters; any argument is refused (JSON-RPC -32602). It is not paged: every approved book is in one answer. The id field here is entity_id; pass it as entity to the other tools.

Answer (illustrative)
{
  "data": [
    {
      "entity_id": "00000000-0000-4000-8000-000000000001",
      "name": "Example Studio LLC",
      "kind": "business",
      "workspace": "Example Studio"
    }
  ]
}

list_accounts

The chart of accounts of one entity, active and inactive.

REST
GET https://auth.42six.ai/functions/v1/api/v1/accounts
ParameterDescription
entityRequiredEntity id (uuid), from list_entities.
cursorOptionalThe next_cursor of the previous page.
limitOptionalRows per page, 1 to 1000 (default 1000).

An API key needs the Ledger read (ledger:read); without it REST answers 403 and the MCP tool answers JSON-RPC error -32602, both saying "This key cannot read …". An app signed in with 42six reads every kind on the books it was given.

Answer (illustrative)
{
  "data": [
    {
      "id": "00000000-0000-4000-8000-000000000010",
      "code": "101000",
      "name": "Operating Checking",
      "type": "asset",
      "subtype": null,
      "parent_id": null,
      "is_bank": true,
      "is_active": true,
      "created_at": "2026-01-05T16:20:00.000000+00:00"
    },
    {
      "id": "00000000-0000-4000-8000-000000000011",
      "code": "742000",
      "name": "Software and Subscriptions",
      "type": "expense",
      "subtype": null,
      "parent_id": null,
      "is_bank": false,
      "is_active": true,
      "created_at": "2026-01-05T16:20:00.000000+00:00"
    }
  ],
  "next_cursor": null
}

list_journal_entries

Posted journal entries of one entity, optionally within [from, to).

REST
GET https://auth.42six.ai/functions/v1/api/v1/journal-entries
ParameterDescription
entityRequiredEntity id (uuid), from list_entities.
fromOptionalStart date, YYYY-MM-DD, inclusive.
toOptionalEnd date, YYYY-MM-DD, exclusive.
cursorOptionalThe next_cursor of the previous page.
limitOptionalRows per page, 1 to 1000 (default 1000).

An API key needs the Ledger read (ledger:read); without it REST answers 403 and the MCP tool answers JSON-RPC error -32602, both saying "This key cannot read …". An app signed in with 42six reads every kind on the books it was given.

Answer (illustrative)
{
  "data": [
    {
      "id": "00000000-0000-4000-8000-000000000020",
      "entry_date": "2026-03-31",
      "memo": "March depreciation",
      "source_provider": "manual",
      "source_external_id": null,
      "posted_at": "2026-04-02T14:00:00.000000+00:00",
      "created_at": "2026-04-02T14:00:00.000000+00:00"
    }
  ],
  "next_cursor": null
}

list_journal_lines

Posted journal lines of one entity, optionally for one account and within [from, to). Money is a decimal string; a debit is positive.

REST
GET https://auth.42six.ai/functions/v1/api/v1/journal-lines
ParameterDescription
entityRequiredEntity id (uuid), from list_entities.
accountOptionalAccount id (uuid) to restrict to.
fromOptionalStart date, YYYY-MM-DD, inclusive.
toOptionalEnd date, YYYY-MM-DD, exclusive.
cursorOptionalThe next_cursor of the previous page.
limitOptionalRows per page, 1 to 1000 (default 1000).

An API key needs the Ledger read (ledger:read); without it REST answers 403 and the MCP tool answers JSON-RPC error -32602, both saying "This key cannot read …". An app signed in with 42six reads every kind on the books it was given.

Answer (illustrative)
{
  "data": [
    {
      "id": "00000000-0000-4000-8000-000000000021",
      "entry_id": "00000000-0000-4000-8000-000000000020",
      "account_id": "00000000-0000-4000-8000-000000000011",
      "line_no": 1,
      "debit": "49.00",
      "credit": "0.00",
      "memo": null,
      "entry_date": "2026-03-14",
      "posted_at": "2026-03-15T09:30:00.000000+00:00"
    }
  ],
  "next_cursor": null
}

account_ledger_detail

Trace one account figure to its posted source in one call: exact period summary (beginning balance, debits, credits, closing entries, ending balance and line count) plus a bounded page of posted journal lines for [from, to) with each entry's memo, source provider and (when permitted) linked bank transactions. Money is a decimal string; pass next_cursor back as cursor.

REST
GET https://auth.42six.ai/functions/v1/api/v1/account-ledger-detail
ParameterDescription
entityRequiredEntity id (uuid), from list_entities.
accountRequiredAccount id (uuid) from a statement or list_accounts.
fromRequiredStart date, YYYY-MM-DD, inclusive.
toRequiredEnd date, YYYY-MM-DD, exclusive.
cursorOptionalThe next_cursor of the previous page.
limitOptionalLines per page, 1 to 500 (default 100).

An API key needs the Ledger read (ledger:read); without it REST answers 403 and the MCP tool answers JSON-RPC error -32602, both saying "This key cannot read …". An app signed in with 42six reads every kind on the books it was given.

Answer (illustrative)
{
  "data": {
    "scope": {
      "kind": "book",
      "entity_id": "00000000-0000-4000-8000-000000000001"
    },
    "accounting_basis": "accrual",
    "currency": "USD",
    "withheld": [],
    "account": {
      "account_id": "00000000-0000-4000-8000-000000000011",
      "code": "6100",
      "name": "Software",
      "type": "expense",
      "subtype": null,
      "is_active": true,
      "is_bank": false,
      "report_section": null
    },
    "period": {
      "from": "2026-01-01",
      "to": "2026-02-01"
    },
    "summary": {
      "beginning_balance": "0.00",
      "debits": "49.00",
      "credits": "0.00",
      "closing_debits": "0.00",
      "closing_credits": "0.00",
      "ending_balance": "49.00",
      "line_count": 1
    },
    "bank_transactions_included": true,
    "lines": [
      {
        "line_id": "00000000-0000-4000-8000-000000000021",
        "entry_id": "00000000-0000-4000-8000-000000000020",
        "entry_date": "2026-01-14",
        "line_no": 1,
        "debit": "49.00",
        "credit": "0.00",
        "memo": null,
        "entry_memo": "ACME CLOUD HOSTING",
        "source_provider": "bank_feed",
        "source_external_id": null,
        "posted_at": "2026-01-05T16:20:00.000000+00:00",
        "is_closing": false,
        "bank_transactions": [
          {
            "id": "00000000-0000-4000-8000-000000000030",
            "account_id": "00000000-0000-4000-8000-000000000010",
            "provider": "manual",
            "posted_date": "2026-01-14",
            "amount": "49.00",
            "description": "ACME CLOUD HOSTING",
            "merchant_name": "Acme Cloud",
            "pending": false,
            "cleared_line_id": "00000000-0000-4000-8000-000000000022"
          }
        ],
        "bank_transactions_truncated": false
      }
    ],
    "has_more": false
  },
  "next_cursor": null
}

period_locks

Locked (closed) periods of one entity: start and end dates and when each was locked. A book is locked through one date, kept as a row from 0001-01-01 whose period_end is that date; nothing dated on or before it can change.

REST
GET https://auth.42six.ai/functions/v1/api/v1/period-locks
ParameterDescription
entityRequiredEntity id (uuid), from list_entities.
cursorOptionalThe next_cursor of the previous page.
limitOptionalRows per page, 1 to 1000 (default 1000).

An API key needs the Ledger read (ledger:read); without it REST answers 403 and the MCP tool answers JSON-RPC error -32602, both saying "This key cannot read …". An app signed in with 42six reads every kind on the books it was given.

Answer (illustrative)
{
  "data": [
    {
      "id": "00000000-0000-4000-8000-000000000060",
      "period_start": "0001-01-01",
      "period_end": "2026-02-28",
      "locked_at": "2026-03-06T10:00:00.000000+00:00"
    }
  ],
  "next_cursor": null
}

read_tracker

Read one book's tax and workpaper trackers (workpaper metadata only, never general ledger postings): summary (available years and year totals across all five trackers), home_office (square footage, basis, categories, monthly entries and exact business-use and 39-year depreciation figures), mileage (vehicles, exact total miles and bounded pages of trips), reimbursement (totals and entries), reps_hours (total hours and entries) or str_hours (total hours, property count and entries). tax_year is required for every tracker except summary (1900 to 2100 for mileage and summary; 2000 to 2100 for home_office and log trackers); pass next_cursor back as cursor on paged trackers.

MCP only, for an app signed in with 42six that was approved on the consent screen disclosing tax trackers. An API key does not have this tool.

ParameterDescription
entityRequiredString, a uuid: the book (entity) id, from list_books.
trackerRequiredsummary, home_office, mileage, reimbursement, reps_hours or str_hours.
tax_yearOptionalInteger: 1900 to 2100 for mileage/summary, 2000 to 2100 for home_office and logs (required except for summary).
cursorOptionalThe next_cursor of the previous page.
limitOptionalInteger, 1 to 1000 (default 200) on mileage and log trackers.
Answer (illustrative)
{
  "data": {
    "scope": {
      "kind": "book",
      "entity_id": "00000000-0000-4000-8000-000000000001",
      "name": "Example Studio LLC",
      "book_kind": "business",
      "workspace_id": "00000000-0000-4000-8000-000000000000",
      "workspace_name": "Example Studio"
    },
    "tracker": "summary",
    "tax_year": 2026,
    "currency": "USD",
    "workpaper_only": true,
    "withheld": [],
    "available_years": [
      2026
    ],
    "trackers": {
      "mileage": {
        "vehicle_count": 1,
        "active_vehicle_count": 1,
        "trip_count": 2,
        "total_miles": "60.75"
      },
      "home_office": {
        "configured_years": [
          2026
        ],
        "category_count": 1,
        "entry_count": 2
      },
      "reimbursement": {
        "entry_count": 2,
        "total_amount": "148.20",
        "reimbursed_total": "100.00",
        "unreimbursed_total": "48.20"
      },
      "reps_hours": {
        "entry_count": 1,
        "total_hours": "3.50"
      },
      "str_hours": {
        "entry_count": 1,
        "total_hours": "2.25",
        "property_count": 1
      }
    }
  }
}