@talonic/mcp 0.1.90 → 0.1.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/http-server.js +100 -1
- package/dist/http-server.js.map +1 -1
- package/dist/index.js +100 -1
- package/dist/index.js.map +1 -1
- package/dist/server.js +100 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
|
|
12
12
|
### Added
|
|
13
13
|
|
|
14
|
+
- `talonic_submissions_matrix`, `talonic_submissions_facts`, `talonic_submissions_checks` (app-gated): a submission's facts per metric and year, its figures filtered by metric, year and field values with their source cells, and its check findings. An agent can now answer questions about a submission's figures and cite the cell each came from.
|
|
15
|
+
|
|
16
|
+
## [0.1.90] - 2026-10-14
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
14
20
|
- **`talonic_submissions_*` tools (6), registered where the platform serves the Submissions app.** Reinsurance submission workbooks over `/v1/submissions/*`: `specs` (the workspace's target structures, labels awaiting review), `list` (inbox: cedent, status, values, facts, metrics, failed / warned checks; `spec_id`, `q`, `limit`, `offset`), `issues` (worklist: not captured, capture failed, not mapped, checks failed, labels to review, format metrics with no facts), `process` (capture and map in bulk: `only`, `document_ids`, `recapture`, `limit`, `dry_run`), `completeness` (one submission per format metric), `export` (facts in the client's long format with the source cell). Probe-gated like the Master Records tools (`GET /v1/submissions/specs` → 200).
|
|
15
21
|
|
|
16
22
|
## [0.1.89] - 2026-10-12
|
package/dist/http-server.js
CHANGED
|
@@ -5327,6 +5327,81 @@ function handleExport(getToken, baseUrl, args) {
|
|
|
5327
5327
|
() => apiJson(getToken, baseUrl, "GET", "/v1/submissions/export", { params: args })
|
|
5328
5328
|
);
|
|
5329
5329
|
}
|
|
5330
|
+
var MATRIX_DESCRIPTION = [
|
|
5331
|
+
"Where one submission's figures are: facts per metric and year (accident, underwriting or reference period), every metric of the target structure included, grouped into families (premium, losses, exposure, cat, rates, other). Key '' counts facts with no period.",
|
|
5332
|
+
"USE WHEN: seeing what a submission covers before answering a question about it; finding which metric and year to read with talonic_submissions_facts.",
|
|
5333
|
+
"NOT FOR: the figures themselves (talonic_submissions_facts).",
|
|
5334
|
+
"",
|
|
5335
|
+
"ARGS: `document_id`, `spec_id`.",
|
|
5336
|
+
"RETURNS: { years[], rows[] { metric, family, in_format, facts, years { year: count } } }."
|
|
5337
|
+
].join("\n");
|
|
5338
|
+
var matrixInputSchema = {
|
|
5339
|
+
document_id: z.string().uuid().describe("Submission (workbook document) id."),
|
|
5340
|
+
spec_id: specId
|
|
5341
|
+
};
|
|
5342
|
+
function handleMatrix(getToken, baseUrl, args) {
|
|
5343
|
+
return runTool(
|
|
5344
|
+
() => apiJson(
|
|
5345
|
+
getToken,
|
|
5346
|
+
baseUrl,
|
|
5347
|
+
"GET",
|
|
5348
|
+
`/v1/submissions/${encodeURIComponent(args.document_id)}/matrix`,
|
|
5349
|
+
{
|
|
5350
|
+
params: { spec_id: args.spec_id }
|
|
5351
|
+
}
|
|
5352
|
+
)
|
|
5353
|
+
);
|
|
5354
|
+
}
|
|
5355
|
+
var FACTS_DESCRIPTION = [
|
|
5356
|
+
`One submission's figures, filtered: by metric, by year ('' = no period) and by field values (e.g. { "LoB Client": "Homeowners", "Category": "Cat" }). Each fact carries its fields and the source cell (sheet, A1, and the embedded file when it came from one), so every number can be cited.`,
|
|
5357
|
+
'USE WHEN: answering a question about figures ("total incurred for accident year 2019", "paid loss by line of business"). Read talonic_submissions_matrix first to pick metric and year. Do not add up facts across lines of business or categories without checking for a Total row: a total and its parts are both facts.',
|
|
5358
|
+
"NOT FOR: every fact of a submission (talonic_submissions_export).",
|
|
5359
|
+
"",
|
|
5360
|
+
"ARGS: `document_id`, `spec_id`, `metric`, `year`, `fields`, `limit` (1\u20131000, default 200), `offset`.",
|
|
5361
|
+
"RETURNS: { total, facts[] { metric, figure, year, fields, source { sheet, a1, embedded }, derived, total } }."
|
|
5362
|
+
].join("\n");
|
|
5363
|
+
var factsInputSchema = {
|
|
5364
|
+
document_id: z.string().uuid().describe("Submission (workbook document) id."),
|
|
5365
|
+
spec_id: specId,
|
|
5366
|
+
metric: z.string().max(200).optional().describe("Metric name exactly as talonic_submissions_matrix lists it."),
|
|
5367
|
+
year: z.string().regex(/^((19|20)\d{2})?$/).optional().describe("Four-digit year, or '' for facts with no period."),
|
|
5368
|
+
fields: z.record(z.string(), z.string()).optional().describe("Field values every fact must carry."),
|
|
5369
|
+
limit: z.number().int().min(1).max(1e3).optional(),
|
|
5370
|
+
offset: z.number().int().min(0).optional()
|
|
5371
|
+
};
|
|
5372
|
+
function handleFacts(getToken, baseUrl, args) {
|
|
5373
|
+
const { document_id, fields, ...rest } = args;
|
|
5374
|
+
return runTool(
|
|
5375
|
+
() => apiJson(getToken, baseUrl, "GET", `/v1/submissions/${encodeURIComponent(document_id)}/facts`, {
|
|
5376
|
+
params: { ...rest, ...fields ? { fields: JSON.stringify(fields) } : {} }
|
|
5377
|
+
})
|
|
5378
|
+
);
|
|
5379
|
+
}
|
|
5380
|
+
var CHECKS_DESCRIPTION = [
|
|
5381
|
+
"What does not add up in one submission: totals that are not the sum of their rows, cumulative paid amounts that fall, and the target structure's identities (e.g. Total Incurred = Paid Loss + Paid LAE + Outstanding Loss). Each with the cell, the actual and the expected figure.",
|
|
5382
|
+
"USE WHEN: reviewing a submission's quality, or before quoting a figure that a finding concerns.",
|
|
5383
|
+
"NOT FOR: counts across submissions (talonic_submissions_list).",
|
|
5384
|
+
"",
|
|
5385
|
+
"ARGS: `document_id`, `spec_id` (optional; identities need it).",
|
|
5386
|
+
"RETURNS: [{ kind, severity, sheet, a1, embedded, expected, actual, parts[], check }]."
|
|
5387
|
+
].join("\n");
|
|
5388
|
+
var checksInputSchema = {
|
|
5389
|
+
document_id: z.string().uuid().describe("Submission (workbook document) id."),
|
|
5390
|
+
spec_id: specId.optional()
|
|
5391
|
+
};
|
|
5392
|
+
function handleChecks(getToken, baseUrl, args) {
|
|
5393
|
+
return runTool(
|
|
5394
|
+
() => apiJson(
|
|
5395
|
+
getToken,
|
|
5396
|
+
baseUrl,
|
|
5397
|
+
"GET",
|
|
5398
|
+
`/v1/submissions/${encodeURIComponent(args.document_id)}/checks`,
|
|
5399
|
+
{
|
|
5400
|
+
params: args.spec_id ? { spec_id: args.spec_id } : {}
|
|
5401
|
+
}
|
|
5402
|
+
)
|
|
5403
|
+
);
|
|
5404
|
+
}
|
|
5330
5405
|
async function probeSubmissionsAccess(token, baseUrl) {
|
|
5331
5406
|
try {
|
|
5332
5407
|
const res = await fetch(buildUrl(baseUrl, "/v1/submissions/specs"), {
|
|
@@ -5380,6 +5455,30 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
|
|
|
5380
5455
|
readOnly6,
|
|
5381
5456
|
(a) => handleCompleteness(getToken, baseUrl, a)
|
|
5382
5457
|
],
|
|
5458
|
+
[
|
|
5459
|
+
"talonic_submissions_matrix",
|
|
5460
|
+
"Submission facts by metric and year",
|
|
5461
|
+
MATRIX_DESCRIPTION,
|
|
5462
|
+
matrixInputSchema,
|
|
5463
|
+
readOnly6,
|
|
5464
|
+
(a) => handleMatrix(getToken, baseUrl, a)
|
|
5465
|
+
],
|
|
5466
|
+
[
|
|
5467
|
+
"talonic_submissions_facts",
|
|
5468
|
+
"Submission figures",
|
|
5469
|
+
FACTS_DESCRIPTION,
|
|
5470
|
+
factsInputSchema,
|
|
5471
|
+
readOnly6,
|
|
5472
|
+
(a) => handleFacts(getToken, baseUrl, a)
|
|
5473
|
+
],
|
|
5474
|
+
[
|
|
5475
|
+
"talonic_submissions_checks",
|
|
5476
|
+
"Submission checks",
|
|
5477
|
+
CHECKS_DESCRIPTION,
|
|
5478
|
+
checksInputSchema,
|
|
5479
|
+
readOnly6,
|
|
5480
|
+
(a) => handleChecks(getToken, baseUrl, a)
|
|
5481
|
+
],
|
|
5383
5482
|
[
|
|
5384
5483
|
"talonic_submissions_export",
|
|
5385
5484
|
"Export submission facts",
|
|
@@ -6955,7 +7054,7 @@ function registerAskTools(server, getToken, baseUrl) {
|
|
|
6955
7054
|
|
|
6956
7055
|
// package.json
|
|
6957
7056
|
var package_default = {
|
|
6958
|
-
version: "0.1.
|
|
7057
|
+
version: "0.1.91"};
|
|
6959
7058
|
|
|
6960
7059
|
// src/version.ts
|
|
6961
7060
|
var VERSION = package_default.version;
|