Request a demo
← All articles
Insurance

A book-of-business 360 as reusable context

Insured, policy and broker KPIs built once on the warehouse, then served as one scoped context that an underwriting agent, a workbench and a dashboard all call.

· 8 min read · For heads of underwriting and insurance data leaders

Every underwriter has a book, and every underwriting tool wants to show it. The renewal list, the loss ratio on each account, the broker who placed it, the premium coming up in the next ninety days. Most carriers rebuild that view once per tool. This post shows how to build it once, as a context, and let every agent and application call it.

The example is drawn from the Insurance 360 insight catalog: the Insured 360, Policy 360 and Broker 360 views that sit on a warehouse modelled in layers. All names and numbers below are illustrative, on synthetic demo data for a fictional regional commercial carrier.

What "the book" actually is

Underneath, a book of business is a handful of joins most data teams already have. In a medallion layout the gold layer holds the entities and facts: dim_insured, dim_policy, dim_broker, dim_location, dim_program, and the facts fact_premium, fact_loss and fact_submission. On top of that, a platinum layer pre-computes the KPIs people actually look at:

  • agg_insured_kpi: total premium, active policies, loss ratio at 12, 24 and 36 months, open claims, retention probability, a cross-sell score and lifetime value.
  • agg_policy_kpi: written and earned premium, incurred loss, loss ratio, pricing adequacy, days to renewal and renewal probability.
  • agg_broker_kpi: written premium, hit ratio, retention rate, loss ratio by line of business, combined ratio, commission earned and a ranking.

None of that is new. What is missing in most shops is the step after: a single, governed way for something other than a dashboard to ask for this underwriter's slice of it, with the right filters, at a known freshness, with personal data handled correctly.

From gold tables to a book-of-business contextThe KPI tables are computed in the warehouse. The context adds what a consumer needs to use them safely: parameters, scope, masking and freshness. Every consumer then calls the same thing.Gold tablesdim_insureddim_policydim_brokerfact_premiumfact_lossfact_submissionPlatinum KPIsagg_insured_kpipremium, loss ratioretention, lifetime valueagg_policy_kpiearned, incurreddays to renewalagg_broker_kpihit ratio, retentionloss ratio by LOBPublishedbook_360 contextparams: as_of_month,lob, horizon_daysscope: underwritermasking: contactsfresh: nightly + as_ofAgent over MCPUW workbenchDashboard
The KPI tables are computed in the warehouse. The context adds what a consumer needs to use them safely: parameters, scope, masking and freshness. Every consumer then calls the same thing.

From KPI tables to a context

In InsightCompose a context is the published, governed form of a question your data can answer. It is built from one or more data contracts: SQL with typed :params, typed output columns with labels and units, a row scope, masking rules, a freshness promise and the phrasings an assistant might use. For the book of business, the context looks like this:

{
  "key": "uw.book.book_360",
  "title": "Book of business 360",
  "params": [
    { "name": "as_of_month", "type": "date", "required": true },
    { "name": "lob", "type": "string", "multi": true, "values": ["GL", "WC", "PROP", "AUTO", "CYBER"] },
    { "name": "horizon_days", "type": "integer", "default": 90, "min": 0, "max": 365 }
  ],
  "columns": [
    { "name": "insured_name", "label": "Insured", "unit": "text" },
    { "name": "total_premium", "label": "Premium", "unit": "money" },
    { "name": "loss_ratio_36m", "label": "Loss ratio (36m)", "unit": "pct" },
    { "name": "days_to_renewal", "label": "Days to renewal", "unit": "count" },
    { "name": "contact_email", "label": "Contact", "pii": true }
  ],
  "row_scope": { "owner_column": "underwriter_code", "org_column": "org_id" },
  "masking": { "contact_email": "redact" },
  "freshness": { "cadence": "nightly", "sla_minutes": 1440 },
  "max_rows": 500, "timeout_s": 15,
  "questions": ["what is renewing in my book", "my worst loss ratios", "book summary for broker"]
}

Each part earns its place. The parameters are declared and typed, so an agent cannot invent a filter the SQL does not understand, and a value outside the allowed list is refused rather than silently ignored. The columns carry labels and units, so a workbench can format premium as money and loss ratio as a percentage without a second mapping. The row scope names the column that holds the book owner; the platform wraps the caller's book around the query, so the underwriter never passes their own id and cannot pass someone else's. The masking rule hides contact details from callers without clearance. And the freshness says how old the rows may be, while every answer carries an as_of timestamp.

One call, scoped to the person asking

The same context answers a regional manager and a junior underwriter differently, and that difference is decided by the platform, not by the caller.

How one call is scopedScope comes from the caller the platform resolved, never from the request. Two underwriters asking the same question get different rows, and neither can widen their own view.Who asksCallersigned-in underwriteror agent keyon their behalfparamsWhat the platform addsContext runowner_column = underwriter_codevalues bound, read-onlyrow cap and timeoutmasked contact columnsaudit row writtenrows + as_ofWhat comes backAnsweronly their booktyped, labelled columnsfreshness and as_of
Scope comes from the caller the platform resolved, never from the request. Two underwriters asking the same question get different rows, and neither can widen their own view.

When an underwriter opens their workbench, the workbench calls the context with as_of_month and perhaps lob. When the same underwriter asks an assistant "what in my book renews in the next 60 days with a loss ratio over 70%?", the assistant matches the question to the context's example phrasings, fills horizon_days=60, and filters the typed loss_ratio_36m column on the returned rows. Both get the same numbers. Neither wrote SQL. Both calls are recorded with who asked, which version ran and how long it took, with parameter values hashed in the audit row.

Why not let the agent write SQL? It can, for exploration. But "my book" is a permission, not a filter. When the scope lives in the context, an agent cannot widen it by phrasing a question cleverly, and a reviewer can read exactly what a book-of-business answer is allowed to contain.

What the 360 adds on top

KPIs tell an underwriter where their book stands. The Insurance 360 catalog goes further, with insights that fuse internal data and public sources. Several of them belong naturally next to the book context, as their own contexts that take an insured id as a parameter:

InsightWhat it says (illustrative)Built from
Financial distress signalOperating cash flow down sharply in the latest 10-Q, credit score slipping, layoff news, with premium renewing inside 90 days.SEC EDGAR filings, a commercial credit bureau, news sentiment, policy system
Undiscovered subsidiariesThe parent has 14 subsidiaries in its filings; the carrier insures 6 of them.SEC 10-K exhibit 21, corporate linkage data, policy system
Coverage gapA manufacturer without cyber cover in a class where most similar-sized peers carry it.Peer group from the book, industry claim trends, policy system
Broker loyalty riskA broker's submissions down a third quarter on quarter, hit ratio halved, top accounts renewing in 60 days.fact_submission, agg_broker_kpi, public appointment data

Each of these is a complex insight: several steps, some from the warehouse, some from outside, joined and narrated. InsightCompose checks every figure in the narrative against the rows it came from before the insight is published. Once published, it is served the same way as the book: with parameters, scope and an as_of. An agent preparing a renewal can therefore call the book context to find the account, then the distress and coverage-gap contexts for that account, and cite where each number came from.

Serving it to agents over MCP

Published contexts appear as tools on the InsightCompose MCP server. An underwriting assistant built on any MCP-capable framework, or a person using Claude Desktop, Cursor or VS Code, connects once with a scoped key or their own sign-in and sees tools such as book_360, insured_distress and broker_loyalty, each with its parameter schema and description taken from the context. The tool result carries the rows, column labels and units, freshness and as_of, so the agent can say "as of the 1 November load" rather than guessing.

The same context is also a REST endpoint for the workbench and a data source for a dashboard tile. There is one definition of "loss ratio (36m)" for all three. See one context, many consumers for how that holds up as the number of consumers grows.

Rolling it out without boiling the ocean

  1. Start with the KPI tables you already trust. If a platinum layer exists, the first context is a thin, scoped query over it. If it does not, the discovery agent can propose the joins from the gold tables.
  2. Decide the scope column first. Underwriter code, branch, program or organization. That decision shapes every context that follows, so make it once.
  3. Write the example questions with underwriters. Five real phrasings per context do more for an assistant's accuracy than any prompt.
  4. Publish one context, connect one agent, then widen. The renewal list alone is usually enough to show the value, and every later context reuses the same scope and masking rules.

The insurance pages show the full catalog of 360 insights as context, and the docs walk through the contract fields above one by one.

Where people stay in charge

The book context and the agents that call it prepare the work: the renewal list, the accounts that need attention, the questions to ask a broker. Underwriters decide what to quote, decline or refer, and the carrier's authority limits still apply. A curator approves each context before it is published and every change to its definition is recorded. Scope, masking and freshness are set by the people who own the data, and an agent cannot change them. When a figure looks wrong, the underwriter can follow it back to the rows and the version that produced it.

See your own context layer, on your data

Bring one source and three questions your agents or apps need answered. We will stand up governed contexts over them in your environment and connect an agent to them in a working session.

We reply within one business day. Next comes a 45-minute executive briefing for your CIO or CDO, then, if it fits, a 12-week Innovation POD in your environment.