ONE finance:get
← Receivers

finance:get

finance family

chatmcp

ONE's own books, one view at a time. view 'health': ONE's health line, eight numbers read now: cash in, cost of goods, gross margin, unbilled model cost (over the window), cash on hand, credits owed, drift rows, paying customers (now). Each with its source, asOf and truncated; a number not read says why; a number past its line says the line in words. Platform owners only. view 'pnl': ONE's P&L by month, read through the books fence: cash in from outside customers, seller money shown apart, cost of goods from the provider's own figures, gross margin; Tony's open rulings as named lines that never enter a total. Platform owners only. Was finance:health and finance:pnl until 2026-11-19 (each an alias for one release that carries its view)

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_workspace
The class of authority the caller must already hold, decided from the attested context with no round trip.
Authority action
read_revenue
Also gated per node — the caller must be permitted this action over the workspace it names.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.
Version
1.0.0
Pin this to keep a contract stable; additive bumps never break callers.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/finance:get \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "view": "health" }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • view health | pnl required health = the eight-number health line now; pnl = the P&L by month
  • days number optional view health: the window for the windowed numbers: 7, 30 or 90 days ending now. Absent (or any other value) = this calendar month
  • months number optional view pnl: how many calendar months to read, ending with this one (UTC). Default 12, clamped to 1..24

Response

What comes back from the call.

  • ok boolean
  • view health | pnl The view this answer is
  • asOf string When the books were read (ISO)
  • window object view health: the window the windowed numbers read
  • sentence string view health: the health line in one sentence, built from the numbers (the Finance tab header, `oneie finance`, the chat)
  • numbers object[] view health: the eight numbers
  • from string view pnl
  • to string view pnl
  • months any[] view pnl: one row per month: cashIn, sellerSales, platformFees, costOfGoods, grossMargin, each a Figure
  • totals any view pnl: cashIn, costOfGoods, grossMargin over the window, as Figures
  • open any view pnl: lines that wait on a ruling, counted:false
  • error string unauthenticated | forbidden | no_db | bad_view

Traffic

Every call to finance:get, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names finance:get, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

UI 2
  • one.ie/web/src/components/finance/books/HealthNumbers.tsx:112
  • one.ie/web/src/components/finance/map/stations.ts:240
API route 2
  • one.ie/web/src/lib/finance/sheet.ts:106
  • one.ie/web/src/lib/receiver-index.generated.ts:178
CLI 1
  • packages/cli/src/finance.ts:88
SDK 1
  • packages/sdk/src/receiver-layers.ts:848
Tests 1
  • packages/sdk/src/surfaces.test.ts:127
→

Answered by

finance:get one.ie/web/src/lib/resolvers/finance.ts:48 Dispatched through POST /api/ask/finance:get, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "view": {
      "type": "string",
      "enum": [
        "health",
        "pnl"
      ],
      "description": "health = the eight-number health line now; pnl = the P&L by month"
    },
    "days": {
      "description": "view health: the window for the windowed numbers: 7, 30 or 90 days ending now. Absent (or any other value) = this calendar month",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "months": {
      "description": "view pnl: how many calendar months to read, ending with this one (UTC). Default 12, clamped to 1..24",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "view"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "view": {
      "description": "The view this answer is",
      "type": "string",
      "enum": [
        "health",
        "pnl"
      ]
    },
    "asOf": {
      "description": "When the books were read (ISO)",
      "type": "string"
    },
    "window": {
      "description": "view health: the window the windowed numbers read",
      "type": "object",
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "days": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "label": {
          "type": "string"
        }
      },
      "required": [
        "from",
        "to",
        "days",
        "label"
      ]
    },
    "sentence": {
      "description": "view health: the health line in one sentence, built from the numbers (the Finance tab header, `oneie finance`, the chat)",
      "type": "string"
    },
    "numbers": {
      "description": "view health: the eight numbers",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "cash_in | cost_of_goods | gross_margin | unbilled_cost | cash_on_hand | credits_owed | drift_rows | paying_customers"
          },
          "label": {
            "type": "string"
          },
          "short": {
            "type": "string"
          },
          "windowed": {
            "type": "boolean"
          },
          "figure": {
            "description": "A Figure: value, unit, source, asOf, truncated, status, note"
          },
          "line": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "label",
          "figure"
        ]
      }
    },
    "from": {
      "description": "view pnl",
      "type": "string"
    },
    "to": {
      "description": "view pnl",
      "type": "string"
    },
    "months": {
      "description": "view pnl: one row per month: cashIn, sellerSales, platformFees, costOfGoods, grossMargin, each a Figure",
      "type": "array",
      "items": {}
    },
    "totals": {
      "description": "view pnl: cashIn, costOfGoods, grossMargin over the window, as Figures"
    },
    "open": {
      "description": "view pnl: lines that wait on a ruling, counted:false"
    },
    "error": {
      "description": "unauthenticated | forbidden | no_db | bad_view",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}