---
title: Finance glossary
description: One definition per business term, certified by a person, and the check an agent runs on a question before it answers with a number. Terms, states, who may certify, and the tools.
section: finance
order: 44
audience: [user, operator, agent]
sources: [services/nodejs-cloud/lib/finance/home/reports.ts, services/nodejs-cloud/lib/finance/core/glossary-pure.ts, services/nodejs-cloud/lib/finance/core/glossary.ts, services/nodejs-cloud/lib/finance/core/glossary-mcp.ts, services/nodejs-cloud/app/(finance)/finance/glossary, services/nodejs-cloud/migrations/0566_fin_glossary_terms.sql]
features: [cloud.page-finance]
---

Two people can read "active customers" or "margin" differently and both get a number. The glossary keeps one
definition per business term for your organisation. A person or an agent drafts it, a controller certifies it, and an
agent checks a question against the glossary before it answers with a number.

Open it in **Finance > Glossary** (`/finance/glossary`). Search by word (it looks in the term, its synonyms and its
definition) and filter by state. The glossary is shared by the whole organisation, not kept per entity.

## A term {#terms}

| Field | What it is |
|---|---|
| Term | The name, as people write it, up to 80 characters. One entry per term in the organisation, whatever the case |
| Definition | What it means here, precisely enough to compute it, up to 4,000 characters |
| Synonyms | Other words for the same thing, up to 20 ("active client" for "active customer") |
| Sources | Where the definition came from, up to 20: a label and a reference, such as a note, an account, a report or a URL |
| Computed by | Optional: the Finance report table that gives this figure, such as Receivables, Days sales outstanding ([below](#metric)) |
| State | `drafted`, `reviewed` or `certified` |
| Certified by | Who certified it and when (or who reviewed it, if it is only reviewed) |

A term or synonym may belong to one entry only. Saving "Active client" as a synonym of one term when it is already the
name or a synonym of another is refused, and the answer names the other term.

## States {#states}

- **Drafted**: every new term starts here.
- **Reviewed**: a controller has checked it but not yet certified it.
- **Certified**: the organisation's definition. Agents use it as written.

A certification covers one exact wording and the report it points at. Changing a reviewed or certified term's name,
definition or report (or removing the report) puts it back to drafted and clears who reviewed and certified it, so it
has to be certified again. Changing only its synonyms or sources keeps its state.

## Terms computed by a report {#metric}

Finance has no free-form query: every figure comes from one of the [reports](/docs/finance/home-and-reports.md), which
`finance_report_get` returns as tables. A term can name the one report table that computes it, so an agent reads the
figure there instead of working it out. "DSO" might be bound to the Receivables report's Days sales outstanding table
(`{"report": "receivables", "table": "dso"}`). In the editor this is **Computed by**. Over MCP it is `metric` on
`finance_glossary_term_save` (`null` removes it), checked against the report tables that exist.

## Who may do what {#rights}

| Action | Who |
|---|---|
| Read the glossary and run the check (`glossary.read`) | Anyone in Finance, with or without a [Finance role](/docs/finance/roles.md) |
| Draft or change a term (`glossary.write`) | Controllers and the AP, AR and reconciliation clerks; an agent holding one of those roles |
| Mark reviewed, certify, put back to draft, delete (`glossary.certify`) | A controller on every entity, an owner or an admin. Never an agent |

The side nav links the page for members who draft terms, read reports or read the audit trail. Anyone else in Finance
can still open it by its address. Every change, review and deletion is on the [audit trail](/docs/finance/audit-trail.md).

## The answerable check {#check}

Before an agent answers a Finance question that turns on a business term or a number, it calls
`finance_glossary_question_check` with the question and, in `terms`, the business terms it picked out of it. The
server does no language work and calls no model. It finds the glossary's terms and synonyms in the question's text
(whole words, any case, the longest match first) and looks up each passed term by name or synonym. The answer has:

- `verdict`:
  - `certified`: at least one term matched and every one is certified. Use the definitions as given.
  - `uncertified`: a matched term is drafted or reviewed. The agent may use it but says it is not certified yet.
  - `unknown_terms`: a passed term has no entry. The agent asks the person what it means, or drafts it with
    `finance_glossary_term_save` for a controller to certify, before answering with a number.
  - `no_terms`: nothing matched and nothing was passed.
- `matched`: each term with the words that matched, its state, definition, sources, and who certified it and when. A
  term computed by a report also has `metric` and `compute`: the call to make (`finance_report_get` with that `report`)
  and, in `read`, the key of the table to take the figure from. The guidance then says to take the figure from that
  table and not compute it. When the caller's roles do not read that table, `compute.readable` is `false` and the
  guidance says to give the definition and explain that the figure needs access they lack. Whether the report's module
  is on is left to `finance_report_get`, which refuses for itself.
- `unknown`: each passed term with no entry, with up to three nearest glossary terms as suggestions.
- `guidance`: one line on what to do for that verdict.

An example, with "Active customer" certified, "Gross margin" in the glossary and no entry for "net margin". The question
says "active customers", which the text match alone would not find (a match is whole words), so the agent passes the
term itself:

```json
{ "question": "What was the net margin on active customers in October?", "terms": ["active customer", "net margin"] }
```

The verdict is `unknown_terms`. "Active customer" is in `matched` with its certified definition, and "net margin" is in
`unknown` with "Gross margin" suggested. The agent should ask what net margin means here, or draft it, before it gives a
figure.

## For agents {#agents}

| Tool | Scope | What it does |
|---|---|---|
| `finance_glossary_term_list` | `finance:read` | The glossary by name; `q` searches term, synonyms and definition, `state` filters |
| `finance_glossary_term_get` | `finance:read` | One term by `id`, or by `term` (its name or a synonym) |
| `finance_glossary_term_save` | `finance:write` | Create a term (no `id`) or change one, with an optional `metric`; a new wording or metric goes back to drafted |
| `finance_glossary_term_review` | `finance:write` | Set `state` to `reviewed`, `certified` or `drafted` (a controller; never an agent) |
| `finance_glossary_term_delete` | `finance:write` | Delete a term (a controller; never an agent) |
| `finance_glossary_question_check` | `finance:read` | The answerable check above |

An agent's save counts as a draft for the [Finance agents gate](/docs/finance/agents.md): it runs with the agent's own roles. Review
and delete are refused for every agent.

REST twins are under `/api/v1/finance/glossary`: `GET` and `POST /terms`, `GET`, `PATCH` and `DELETE /terms/{id}`, `GET /lookup?term=`,
`POST /terms/{id}/review` and `POST /check`.
