Tools
Tools are how the assistant reads the claim. Each is a provider-neutral JSON-schema definition plus a run() that executes in the Worker against the one claim in the request (api/src/capabilities/). Every tool is offered on every turn (the one screen action only when the caller can perform it), shared readers first so the prompt-cache prefix stays stable; a capability "owns" a tool only in the sense that its playbook tells the model to call it first. There are 24 tools: 6 shared and 18 owned by capabilities.
This page is generated by docusaurus/scripts/generate-reference.ts from the source it describes. Edit the source, then run npm run docs:reference.
Shared tools
get_claim_section
Read one section of the claim record in full. Use this whenever you need detail beyond the brief in your instructions — e.g. policy wording, the diary, payments, documents, tasks, risk flags.
Shared: available on every turn
| Parameter | Type | Required | Description |
|---|---|---|---|
section | client · policy · claimant · incident · loss · diagnosis · adjuster · statusHistory · dates · financials · payments · reimbursements · recovery · involvements · serviceProviders · hire · instructions · litigation · investigation · riskFlags · compliance · feedback · diary · tasks · documents · mi | yes | Which section of the claim to read. |
search_claim
Keyword search across the diary, documents, tasks, investigation findings, risk flags, payments, status changes, supplier instructions and complaints. Returns matching entries with their section, and why: what was searched and how. Use for "when did…", "has anyone…", "is there a letter about…".
Shared: available on every turn
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | yes | One or more keywords (case-insensitive). |
match | all · any | Entries containing every keyword (default) or any of them. | |
sections | any of diary · documents · tasks · findings · riskFlags · payments · statusHistory · instructions · complaints | Search only these. Default: all of them. |
get_document
Read one document on the claim by its id (e.g. DOC-4). Returns the document metadata and its content summary.
Shared: available on every turn
| Parameter | Type | Required | Description |
|---|---|---|---|
documentId | string | yes |
financial_summary
Compute the money position: reserves, paid, incurred and outstanding by head (indemnity/expense/legal) and by coverage; loss estimate vs reserve; pending/issued payments; provider bills in review.
Shared: available on every turn
No parameters.
get_claim_alerts
The alerts the handler sees when they open this claim: costs still running, KYO (know your opponent) warnings about the solicitor or hire company, psychiatric add-on signs, lurk and limitation risk, overdue suppliers and savings. Each has the figures behind it. Call this when the handler asks about an alert or a notification, or what needs attention.
Shared: available on every turn
No parameters.
highlight_panel
Draw the user’s eye to a panel on the claim screen (it pulses briefly). Use when your answer refers to something on screen — e.g. highlight "finance" when discussing reserves, "schedule_table" for tasks, "system_checks" for risk flags.
Shared: available on every turn · Screen action: offered only when the caller sets screenActions (see Embedding)
| Parameter | Type | Required | Description |
|---|---|---|---|
panel | home · schedule · documents · finance · involvements · proceedings · strategy · finance_resolution · mi · system_checks · key_facts · schedule_table · proceedings_table · notes | yes |
Capability tools
build_timeline
Assemble every dated event on the claim — status changes, diary entries, documents, payments, tasks (due/done), investigation findings, hearings, deadlines — into one chronological list, with why saying which dates it covers. Call this before writing a timeline or a handover. For how the money moved, call money_timeline instead.
Owned by: timeline
| Parameter | Type | Required | Description |
|---|---|---|---|
from | string | Only events on or after this date (YYYY-MM-DD). Default: the start of the claim. | |
to | string | Only events on or before this date (YYYY-MM-DD). Default: the latest dated event, including upcoming ones. |
money_timeline
How the money moved on this claim, in one call: reserve changes recorded in the diary, every payment with a running total paid, provider bills, recovery notes and status changes, in date order, with the current reserve, paid and outstanding by head. Use for "how has the reserve moved", "what have we paid and when", "why is the claim at this figure".
Owned by: timeline
| Parameter | Type | Required | Description |
|---|---|---|---|
from | string | Only events on or after this date (YYYY-MM-DD). Default: the start of the claim. | |
to | string | Only events on or before this date (YYYY-MM-DD). Default: the latest dated event, including upcoming ones. |
claim_metrics
Compute the claim’s numbers for data insights: days open, days to report/assign, reserve vs paid vs loss estimate, spend by head and by payee, provider bill totals and discount rates, diary activity by month, task completion, and SLA performance against the client rules.
Owned by: data_insights
No parameters.
check_policy_in_force
Deterministic check: compares the date of loss with the policy period and state, matches loss items to coverages, and lists limits/deductibles, conditions, exclusions and endorsements, with the policy details, what happened and the investigation’s coverage and liability position. Call this first when validating cover; it usually answers the question on its own.
Owned by: policy_validation
No parameters.
list_deadlines
List every dated obligation on the claim — open tasks, regulatory deadlines, hearings, RTW dates, SLA checkpoints — sorted by date with days remaining (negative = overdue), and why: what was left out and how the dates were worked out. Call this before recommending next actions, or for "what is due" and "what is overdue".
Owned by: next_actions
| Parameter | Type | Required | Description |
|---|---|---|---|
includeCompleted | boolean | Also list completed tasks and met regulatory deadlines. Default false: open items only. |
settlement_position
Gather everything relevant to settling: loss items by head, offers and counter-offers found in the diary/documents, the injury and prognosis, wage evidence, liability position and split, litigation stage, costs to date, authority limits, and the reserve. Call this before giving settlement or negotiation guidance.
Owned by: settlement_guidance, litigation_risk
No parameters.
indemnity_savings_sweep
Run every deterministic leakage and savings check on the claim and total the indemnity at stake: credit hire above basic hire rate or beyond the repair period, duplicate payments and bills, bills paid above the allowed amount, recoveries identified but not pursued, expert fees above market and late instructions, in-kind replacement through the client’s supplier, early psychological intervention, and exposure on a lurking claim. Call this first in an indemnity savings sweep.
Owned by: leakage_sweep
No parameters.
scan_psych_signals
Sweep the diary and inbound documents for early signs of a psychiatric or psychological injury (flashbacks, nightmares, poor sleep, anxiety, low mood, counselling, PTSD), with the verbatim text and dates; say whether the recorded injury is physical only; and return the claimant solicitor’s psych add-on rate against the portfolio and the economics of early intervention. Call this first in a psych watch.
Owned by: psych_watch
No parameters.
run_risk_cross_checks
Deterministic fraud/leakage cross-checks: duplicate or near-duplicate payments and provider bills, off-panel providers, reporting lag, payments above the handler’s authority approved by the handler, proximity of the loss to policy inception, witness/police evidence, and existing risk flags. Call this first in a fraud check.
Owned by: fraud_check
No parameters.
scan_vulnerability_signals
Sweep the diary, documents, complaints, claimant details and incident narrative for phrases suggesting customer vulnerability under the FCA’s four drivers (health, life events, resilience, capability). Returns each hit with the verbatim text so nothing is flagged without evidence. Call this first in a vulnerable customer check.
Owned by: vulnerable_customer
No parameters.
scan_expressions_of_dissatisfaction
Sweep diary entries, inbound documents and logged complaints for expressions of dissatisfaction, with the verbatim text and date of each, and compute the regulatory clocks (3 business days for summary resolution, 8 weeks for a final response), with why saying which date they run from. Call this first in complaints guidance.
Owned by: complaints_guidance
| Parameter | Type | Required | Description |
|---|---|---|---|
clockFrom | earliest_expression · logged_complaint | Run the clocks from the earliest expression of dissatisfaction (default: a complaint need not be labelled one to count), or from the first logged complaint. |
gather_record_for_comparison
Everything the record asserts that an attached photo, report, recording or video could confirm or contradict: the incident (date, time, weather, place, narrative, cause, witnesses), the insured vehicle or property as scheduled, the loss and its items, any injury, the reports and statements on file in full (surveyor, engineer, adjuster, estimates, police), the matching diary entries, expert and supplier instructions, investigation findings and risk flags. Call this first in an evidence check.
Owned by: evidence_check
No parameters.
run_handling_checks
Mechanical QA checks against the client’s SLAs and rules: acknowledgement and first-contact timing, reserve review cadence, overdue tasks, missed regulatory deadlines, payments approved within authority, documents referred to in the diary, and the gap since the last diary entry. Call this first in a QA review.
Owned by: qa_review
No parameters.
opponent_intelligence
Know your opponent: the portfolio profile of every party on the other side of this claim that we hold intelligence on — the claimant’s solicitor, the credit hire company, other solicitors in the involvements — with their psych add-on, lurk, litigation, settlement and costs rates against the portfolio averages, their known tactics and what has worked against them, and why: which parties were checked. Call this first when profiling the opposition.
Owned by: opponent_profile
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Also check this firm or company, e.g. one named in a letter. Default: the parties on the other side of the claim. |
lurk_assessment
Score how likely a quiet, denied or closed claim is to be revived before limitation: last contact from the claimant side and days of silence, the primary limitation date and days left, the reserve released at denial and what the claim could be worth if it comes back, the opponent’s lurk rate, injury severity, psychological symptoms and evidence already lost. Returns the score, band and factors, and why the claim was or was not scored. Call this first in a lurk radar.
Owned by: lurk_radar
No parameters.
get_party
Look up a party on the claim by name, role or organisation (claimant, policyholder, solicitor, insurer, provider, witness, court…). Returns their involvement record, contact details where held, reference numbers, and every diary entry and document that mentions them; when nothing matches, why lists who is on the claim. Use before drafting to, calling, or briefing about someone.
Owned by: document_production, call_assist, field_visit_briefing, supplier_chase
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | yes | A name, role (e.g. "solicitor") or organisation. |
supplier_instructions
Everything we have asked suppliers and experts to do on this claim — medical and non-medical experts, repairers, parts suppliers, loss adjusters, surveyors, rehabilitation — with what is awaited, days overdue, how often and how recently each has been chased, the market wait and fee for that discipline (and how they have moved in the last year), and quicker panel alternatives. Also returns the related open tasks and the service providers. Call this first when chasing or reviewing suppliers.
Owned by: supplier_chase
No parameters.
list_capabilities
Return the catalogue of what the assistant can do for a claim — grouped, with a one-line description and the phrase that triggers each. Use when the handler asks what you can do, how to ask for something, or whether you can help with a kind of task.
Owned by: capabilities_briefing
No parameters.