@talonic/mcp 0.1.97 → 0.1.99
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 +18 -0
- package/dist/http-server.js +96 -66
- package/dist/http-server.js.map +1 -1
- package/dist/index.js +96 -66
- package/dist/index.js.map +1 -1
- package/dist/server.js +96 -66
- package/dist/server.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
> The publish workflow assigns the version on release; after the push that publishes it, promote this block to `## [<version>] - <date>` (the changelog lock accepts the current package version living here until then).
|
|
11
11
|
|
|
12
|
+
### Security
|
|
13
|
+
|
|
14
|
+
- Runtime dependencies patched (`npm audit --omit=dev`: 9 advisories → 0, one critical). Minimum versions raised to `@modelcontextprotocol/sdk` ^1.32.2 and `zod` ^4.6.7 so installs never resolve the vulnerable ranges; transitive fixes (`proxy-addr`, `body-parser`, `fast-uri`, `hono`, `qs`, …) come through the lockfile. Dev-only `vitest` advisories need a major upgrade and stay open.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- The repo no longer tracks a `node_modules` symlink committed by mistake in 0.1.96; `.gitignore` ignores the path whether it is a directory or a link.
|
|
19
|
+
|
|
20
|
+
## [0.1.98] - 2026-11-21
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- **Questions go to `talonic_ask`.** In claude.ai the model answered a simple question by exploring the workspace itself: accounts, the field registry (13,000+ mostly one-off candidate fields), specs, schemas, `workspace_overview`, then a chain of `query_data` SQL attempts, about 20 calls and over a minute. `talonic_ask` runs that same toolset server-side and returns one cited answer, but the model skipped it because it costs credits and the SQL route is free. The server instructions and `talonic_ask` now name it the default for any question about document contents; `talonic_invoke_agent_tool`, `talonic_list_agent_tools`, `talonic_list_fields`, `talonic_list_specs`, `talonic_list_schemas` and `talonic_list_accounts` say they are not a warm-up for answering one. `talonic_list_fields` tells the model to pass `maturity: core|proven`.
|
|
25
|
+
- **Readable tool titles.** Claude shows each call as "Talonic: <title>"; titles drop the repeated "Talonic" and internal wording ("Invoke Platform Agent Tool" → "Query workspace data", "Poll a Spec run" → "Check run progress", …).
|
|
26
|
+
- **Cards show the spinning Talonic mark while loading** (Ink's mark and loop; still under `prefers-reduced-motion`).
|
|
27
|
+
|
|
28
|
+
## [0.1.97] - 2026-11-20
|
|
29
|
+
|
|
12
30
|
### Changed
|
|
13
31
|
|
|
14
32
|
- **Inline cards only for answers.** Once cards rendered in Claude (0.1.96), every tool call drew one, so a single question filled the chat with 20+ full-height cards of field lists, specs, schemas and raw SQL rows. Only ten tools now declare a card: `talonic_extract`, `talonic_ask`, `talonic_get_answer`, `talonic_get_run_results`, `talonic_request_upload`, `talonic_get_balance`, `talonic_get_usage`, `talonic_get_pricing`, `talonic_save_schema`, `talonic_create_account`. Lookups the model makes for itself show only the collapsed tool-call row. The run-results card shows 12 rows and 6 columns at most.
|
package/dist/http-server.js
CHANGED
|
@@ -598,6 +598,33 @@ var BASE_CSS = `
|
|
|
598
598
|
details.tree > summary { cursor: pointer; font-size: 13px; list-style: none; }
|
|
599
599
|
details.tree > summary::before { content: "\u25B8 "; color: var(--muted); }
|
|
600
600
|
details.tree[open] > summary::before { content: "\u25BE "; }
|
|
601
|
+
.loading { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px; color: var(--muted); }
|
|
602
|
+
.tl-mark { color: var(--accent); }
|
|
603
|
+
.tl-mark g, .tl-mark circle { transform-box: view-box; transform-origin: 0 0; }
|
|
604
|
+
.tl-layer { fill: none; stroke: currentColor; stroke-width: 20; stroke-linecap: round; }
|
|
605
|
+
.tl-spin { animation: tl-spin 4s infinite; }
|
|
606
|
+
.tl-core { animation: tl-core 4s infinite; }
|
|
607
|
+
.tl-arm { animation: tl-arm 4s infinite; animation-delay: calc(4s * var(--i) * -0.0075); }
|
|
608
|
+
@keyframes tl-spin {
|
|
609
|
+
0% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.55, 0, .9, .45); }
|
|
610
|
+
42% { transform: rotate(560deg); animation-timing-function: linear; }
|
|
611
|
+
58% { transform: rotate(860deg); animation-timing-function: cubic-bezier(.1, .6, .25, 1); }
|
|
612
|
+
100% { transform: rotate(1080deg); }
|
|
613
|
+
}
|
|
614
|
+
@keyframes tl-arm {
|
|
615
|
+
0%, 24% { transform: scale(1); animation-timing-function: cubic-bezier(.6, 0, .85, .3); }
|
|
616
|
+
48% { transform: scale(.06); animation-timing-function: linear; }
|
|
617
|
+
60% { transform: scale(.06); animation-timing-function: cubic-bezier(.2, 1.5, .35, 1); }
|
|
618
|
+
84%, 100% { transform: scale(1); }
|
|
619
|
+
}
|
|
620
|
+
@keyframes tl-core {
|
|
621
|
+
0%, 28% { transform: scale(1); animation-timing-function: cubic-bezier(.6, 0, .85, .3); }
|
|
622
|
+
48% { transform: scale(.5); animation-timing-function: ease-in-out; }
|
|
623
|
+
58% { transform: scale(.44); animation-timing-function: cubic-bezier(.2, 1.6, .4, 1); }
|
|
624
|
+
74% { transform: scale(1.1); animation-timing-function: ease-in-out; }
|
|
625
|
+
88%, 100% { transform: scale(1); }
|
|
626
|
+
}
|
|
627
|
+
@media (prefers-reduced-motion: reduce) { .tl-spin, .tl-core, .tl-arm { animation: none; } }
|
|
601
628
|
`;
|
|
602
629
|
var HELPERS_JS = `
|
|
603
630
|
var root = document.getElementById("root");
|
|
@@ -846,7 +873,7 @@ ${opts.css ?? ""}
|
|
|
846
873
|
</style>
|
|
847
874
|
</head>
|
|
848
875
|
<body>
|
|
849
|
-
<div id="root" class="root"><div class="
|
|
876
|
+
<div id="root" class="root"><div class="loading" role="status"><svg class="tl-mark" viewBox="-200 -200 400 400" width="36" height="36" aria-hidden="true" focusable="false"><g class="tl-layer"><g class="tl-spin"><circle class="tl-core" r="65.5" stroke-width="21"/><g transform="rotate(0)"><g class="tl-arm" style="--i:0"><path d="M-15 -66C-36 -90 -30 -118 4 -133"/><circle cy="-155" r="22"/></g></g><g transform="rotate(45)"><g class="tl-arm" style="--i:1"><path d="M-15 -66C-36 -90 -30 -118 4 -133"/><circle cy="-155" r="22"/></g></g><g transform="rotate(90)"><g class="tl-arm" style="--i:2"><path d="M-15 -66C-36 -90 -30 -118 4 -133"/><circle cy="-155" r="22"/></g></g><g transform="rotate(135)"><g class="tl-arm" style="--i:3"><path d="M-15 -66C-36 -90 -30 -118 4 -133"/><circle cy="-155" r="22"/></g></g><g transform="rotate(180)"><g class="tl-arm" style="--i:4"><path d="M-15 -66C-36 -90 -30 -118 4 -133"/><circle cy="-155" r="22"/></g></g><g transform="rotate(225)"><g class="tl-arm" style="--i:5"><path d="M-15 -66C-36 -90 -30 -118 4 -133"/><circle cy="-155" r="22"/></g></g><g transform="rotate(270)"><g class="tl-arm" style="--i:6"><path d="M-15 -66C-36 -90 -30 -118 4 -133"/><circle cy="-155" r="22"/></g></g><g transform="rotate(315)"><g class="tl-arm" style="--i:7"><path d="M-15 -66C-36 -90 -30 -118 4 -133"/><circle cy="-155" r="22"/></g></g></g></g></svg><span>Loading\u2026</span></div></div>
|
|
850
877
|
<script>
|
|
851
878
|
(function () {
|
|
852
879
|
${HELPERS_JS}
|
|
@@ -2478,12 +2505,12 @@ function registerExtract(server, getTalonic, opts = {}) {
|
|
|
2478
2505
|
server.registerTool(
|
|
2479
2506
|
"talonic_extract",
|
|
2480
2507
|
{
|
|
2481
|
-
title: "Extract
|
|
2508
|
+
title: "Extract data",
|
|
2482
2509
|
description: DESCRIPTION,
|
|
2483
2510
|
inputSchema: opts.localFiles ? inputSchema : hostedInputSchema,
|
|
2484
2511
|
outputSchema,
|
|
2485
2512
|
annotations: {
|
|
2486
|
-
title: "Extract
|
|
2513
|
+
title: "Extract data",
|
|
2487
2514
|
readOnlyHint: false,
|
|
2488
2515
|
destructiveHint: false,
|
|
2489
2516
|
openWorldHint: true
|
|
@@ -2607,12 +2634,12 @@ function registerFilter(server, getTalonic) {
|
|
|
2607
2634
|
server.registerTool(
|
|
2608
2635
|
"talonic_filter",
|
|
2609
2636
|
{
|
|
2610
|
-
title: "Filter
|
|
2637
|
+
title: "Filter documents",
|
|
2611
2638
|
description: DESCRIPTION2,
|
|
2612
2639
|
inputSchema: inputSchema2,
|
|
2613
2640
|
outputSchema: outputSchema2,
|
|
2614
2641
|
annotations: {
|
|
2615
|
-
title: "Filter
|
|
2642
|
+
title: "Filter documents",
|
|
2616
2643
|
readOnlyHint: true,
|
|
2617
2644
|
destructiveHint: false,
|
|
2618
2645
|
openWorldHint: false
|
|
@@ -2653,12 +2680,12 @@ function registerGetBalance(server, getTalonic) {
|
|
|
2653
2680
|
server.registerTool(
|
|
2654
2681
|
"talonic_get_balance",
|
|
2655
2682
|
{
|
|
2656
|
-
title: "
|
|
2683
|
+
title: "Check credit balance",
|
|
2657
2684
|
description: DESCRIPTION3,
|
|
2658
2685
|
inputSchema: inputSchema3,
|
|
2659
2686
|
outputSchema: outputSchema3,
|
|
2660
2687
|
annotations: {
|
|
2661
|
-
title: "
|
|
2688
|
+
title: "Check credit balance",
|
|
2662
2689
|
readOnlyHint: true,
|
|
2663
2690
|
destructiveHint: false,
|
|
2664
2691
|
openWorldHint: false
|
|
@@ -2705,12 +2732,12 @@ function registerGetPricing(server, getTalonic) {
|
|
|
2705
2732
|
server.registerTool(
|
|
2706
2733
|
"talonic_get_pricing",
|
|
2707
2734
|
{
|
|
2708
|
-
title: "
|
|
2735
|
+
title: "Check pricing",
|
|
2709
2736
|
description: DESCRIPTION4,
|
|
2710
2737
|
inputSchema: inputSchema4,
|
|
2711
2738
|
outputSchema: outputSchema4,
|
|
2712
2739
|
annotations: {
|
|
2713
|
-
title: "
|
|
2740
|
+
title: "Check pricing",
|
|
2714
2741
|
readOnlyHint: true,
|
|
2715
2742
|
destructiveHint: false,
|
|
2716
2743
|
openWorldHint: false
|
|
@@ -2754,12 +2781,12 @@ function registerGetUsage(server, getTalonic) {
|
|
|
2754
2781
|
server.registerTool(
|
|
2755
2782
|
"talonic_get_usage",
|
|
2756
2783
|
{
|
|
2757
|
-
title: "
|
|
2784
|
+
title: "Check credit usage",
|
|
2758
2785
|
description: DESCRIPTION5,
|
|
2759
2786
|
inputSchema: inputSchema5,
|
|
2760
2787
|
outputSchema: outputSchema5,
|
|
2761
2788
|
annotations: {
|
|
2762
|
-
title: "
|
|
2789
|
+
title: "Check credit usage",
|
|
2763
2790
|
readOnlyHint: true,
|
|
2764
2791
|
destructiveHint: false,
|
|
2765
2792
|
openWorldHint: false
|
|
@@ -2845,12 +2872,12 @@ function registerGetDocument(server, getTalonic) {
|
|
|
2845
2872
|
server.registerTool(
|
|
2846
2873
|
"talonic_get_document",
|
|
2847
2874
|
{
|
|
2848
|
-
title: "
|
|
2875
|
+
title: "Look up a document",
|
|
2849
2876
|
description: DESCRIPTION6,
|
|
2850
2877
|
inputSchema: inputSchema6,
|
|
2851
2878
|
outputSchema: outputSchema6,
|
|
2852
2879
|
annotations: {
|
|
2853
|
-
title: "
|
|
2880
|
+
title: "Look up a document",
|
|
2854
2881
|
readOnlyHint: true,
|
|
2855
2882
|
destructiveHint: false,
|
|
2856
2883
|
openWorldHint: false
|
|
@@ -2864,7 +2891,7 @@ var DESCRIPTION7 = [
|
|
|
2864
2891
|
"List the saved schemas in the workspace as compact summaries (id, short_id, name, description, version, field_count).",
|
|
2865
2892
|
"",
|
|
2866
2893
|
"USE WHEN: 'what schemas do I have', or to find a reusable schema before extracting.",
|
|
2867
|
-
"NOT FOR: a one-off extraction with an inline schema (call talonic_extract directly).",
|
|
2894
|
+
"NOT FOR: a one-off extraction with an inline schema (call talonic_extract directly). Not a warm-up before answering a question about the documents: call talonic_ask for that.",
|
|
2868
2895
|
"ARGS: none.",
|
|
2869
2896
|
"RETURNS: data[] of schema summaries. Field definitions are omitted here; call talonic_get_schema with an id to see a schema's fields. Pass a schema's id/short_id to talonic_extract as `schema_id`."
|
|
2870
2897
|
].join("\n");
|
|
@@ -2915,12 +2942,12 @@ function registerListSchemas(server, getTalonic) {
|
|
|
2915
2942
|
server.registerTool(
|
|
2916
2943
|
"talonic_list_schemas",
|
|
2917
2944
|
{
|
|
2918
|
-
title: "List
|
|
2945
|
+
title: "List saved schemas",
|
|
2919
2946
|
description: DESCRIPTION7,
|
|
2920
2947
|
inputSchema: {},
|
|
2921
2948
|
outputSchema: outputSchema7,
|
|
2922
2949
|
annotations: {
|
|
2923
|
-
title: "List
|
|
2950
|
+
title: "List saved schemas",
|
|
2924
2951
|
readOnlyHint: true,
|
|
2925
2952
|
destructiveHint: false,
|
|
2926
2953
|
openWorldHint: false
|
|
@@ -2950,13 +2977,13 @@ function registerGetSchema(server, getTalonic) {
|
|
|
2950
2977
|
server.registerTool(
|
|
2951
2978
|
"talonic_get_schema",
|
|
2952
2979
|
{
|
|
2953
|
-
title: "
|
|
2980
|
+
title: "Read a schema's fields",
|
|
2954
2981
|
description: GET_DESCRIPTION,
|
|
2955
2982
|
inputSchema: {
|
|
2956
2983
|
schema_id: z.string().min(1).describe("Schema id (UUID) or short_id (SCH-XXXXXXXX) from talonic_list_schemas.")
|
|
2957
2984
|
},
|
|
2958
2985
|
annotations: {
|
|
2959
|
-
title: "
|
|
2986
|
+
title: "Read a schema's fields",
|
|
2960
2987
|
readOnlyHint: true,
|
|
2961
2988
|
destructiveHint: false,
|
|
2962
2989
|
idempotentHint: true,
|
|
@@ -3016,12 +3043,12 @@ function registerSaveSchema(server, getTalonic) {
|
|
|
3016
3043
|
server.registerTool(
|
|
3017
3044
|
"talonic_save_schema",
|
|
3018
3045
|
{
|
|
3019
|
-
title: "Save
|
|
3046
|
+
title: "Save a schema",
|
|
3020
3047
|
description: DESCRIPTION8,
|
|
3021
3048
|
inputSchema: inputSchema7,
|
|
3022
3049
|
outputSchema: outputSchema8,
|
|
3023
3050
|
annotations: {
|
|
3024
|
-
title: "Save
|
|
3051
|
+
title: "Save a schema",
|
|
3025
3052
|
readOnlyHint: false,
|
|
3026
3053
|
destructiveHint: false,
|
|
3027
3054
|
openWorldHint: false
|
|
@@ -3114,12 +3141,12 @@ function registerSearch(server, getTalonic) {
|
|
|
3114
3141
|
server.registerTool(
|
|
3115
3142
|
"talonic_search",
|
|
3116
3143
|
{
|
|
3117
|
-
title: "Search
|
|
3144
|
+
title: "Search documents",
|
|
3118
3145
|
description: DESCRIPTION9,
|
|
3119
3146
|
inputSchema: inputSchema8,
|
|
3120
3147
|
outputSchema: outputSchema9,
|
|
3121
3148
|
annotations: {
|
|
3122
|
-
title: "Search
|
|
3149
|
+
title: "Search documents",
|
|
3123
3150
|
readOnlyHint: true,
|
|
3124
3151
|
destructiveHint: false,
|
|
3125
3152
|
openWorldHint: false
|
|
@@ -3192,12 +3219,12 @@ function registerRequestUpload(server, getToken, baseUrl) {
|
|
|
3192
3219
|
server.registerTool(
|
|
3193
3220
|
"talonic_request_upload",
|
|
3194
3221
|
{
|
|
3195
|
-
title: "
|
|
3222
|
+
title: "Get an upload link",
|
|
3196
3223
|
description: DESCRIPTION10,
|
|
3197
3224
|
inputSchema: inputSchema9,
|
|
3198
3225
|
outputSchema: outputSchema10,
|
|
3199
3226
|
annotations: {
|
|
3200
|
-
title: "
|
|
3227
|
+
title: "Get an upload link",
|
|
3201
3228
|
readOnlyHint: false,
|
|
3202
3229
|
destructiveHint: false,
|
|
3203
3230
|
openWorldHint: false
|
|
@@ -3211,7 +3238,7 @@ var LIST_DESCRIPTION = [
|
|
|
3211
3238
|
"List the workspace's accounts: the companies (portfolio companies, clients, entities) whose documents it keeps apart.",
|
|
3212
3239
|
"",
|
|
3213
3240
|
"USE WHEN: before uploading a company's files (pass its name as `account` on talonic_request_upload), or to see which companies exist.",
|
|
3214
|
-
"NOT FOR: listing documents (talonic_search / talonic_filter) \xB7 creating an account (talonic_create_account).",
|
|
3241
|
+
"NOT FOR: listing documents (talonic_search / talonic_filter) \xB7 creating an account (talonic_create_account). Not a warm-up before answering a question about the documents: call talonic_ask for that.",
|
|
3215
3242
|
"ARGS: none.",
|
|
3216
3243
|
"RETURNS: data[] of { id, name, aliases[], description, created_at }."
|
|
3217
3244
|
].join("\n");
|
|
@@ -3261,13 +3288,13 @@ function registerAccounts(server, getToken, baseUrl) {
|
|
|
3261
3288
|
server.registerTool(
|
|
3262
3289
|
"talonic_list_accounts",
|
|
3263
3290
|
{
|
|
3264
|
-
title: "List
|
|
3291
|
+
title: "List companies",
|
|
3265
3292
|
description: LIST_DESCRIPTION,
|
|
3266
3293
|
inputSchema: {},
|
|
3267
3294
|
outputSchema: { data: z.array(z.object(accountShape)).describe("The workspace's accounts.") },
|
|
3268
3295
|
_meta: widgetToolMeta("listAccounts"),
|
|
3269
3296
|
annotations: {
|
|
3270
|
-
title: "List
|
|
3297
|
+
title: "List companies",
|
|
3271
3298
|
readOnlyHint: true,
|
|
3272
3299
|
destructiveHint: false,
|
|
3273
3300
|
openWorldHint: false
|
|
@@ -3278,7 +3305,7 @@ function registerAccounts(server, getToken, baseUrl) {
|
|
|
3278
3305
|
server.registerTool(
|
|
3279
3306
|
"talonic_create_account",
|
|
3280
3307
|
{
|
|
3281
|
-
title: "
|
|
3308
|
+
title: "Add a company",
|
|
3282
3309
|
description: CREATE_DESCRIPTION,
|
|
3283
3310
|
inputSchema: {
|
|
3284
3311
|
name: z.string().min(1).max(255).describe("Company name, e.g. 'Filu'."),
|
|
@@ -3288,7 +3315,7 @@ function registerAccounts(server, getToken, baseUrl) {
|
|
|
3288
3315
|
outputSchema: accountShape,
|
|
3289
3316
|
_meta: widgetToolMeta("createAccount"),
|
|
3290
3317
|
annotations: {
|
|
3291
|
-
title: "
|
|
3318
|
+
title: "Add a company",
|
|
3292
3319
|
readOnlyHint: false,
|
|
3293
3320
|
destructiveHint: false,
|
|
3294
3321
|
idempotentHint: false,
|
|
@@ -7400,13 +7427,13 @@ function registerAppsTools(server, getToken, baseUrl) {
|
|
|
7400
7427
|
server.registerTool(
|
|
7401
7428
|
"talonic_list_apps",
|
|
7402
7429
|
{
|
|
7403
|
-
title: "List
|
|
7430
|
+
title: "List apps",
|
|
7404
7431
|
description: LIST_APPS_DESCRIPTION,
|
|
7405
7432
|
inputSchema: {
|
|
7406
7433
|
enabled_only: z.boolean().optional().describe("Only enabled apps (default true). Pass false to include disabled ones.")
|
|
7407
7434
|
},
|
|
7408
7435
|
annotations: {
|
|
7409
|
-
title: "List
|
|
7436
|
+
title: "List apps",
|
|
7410
7437
|
readOnlyHint: true,
|
|
7411
7438
|
destructiveHint: false,
|
|
7412
7439
|
idempotentHint: true,
|
|
@@ -7810,12 +7837,12 @@ function registerToMarkdown(server, getTalonic, opts = {}) {
|
|
|
7810
7837
|
server.registerTool(
|
|
7811
7838
|
"talonic_to_markdown",
|
|
7812
7839
|
{
|
|
7813
|
-
title: "
|
|
7840
|
+
title: "Read document text",
|
|
7814
7841
|
description: DESCRIPTION11,
|
|
7815
7842
|
inputSchema: opts.localFiles ? inputSchema10 : hostedInputSchema,
|
|
7816
7843
|
outputSchema: outputSchema11,
|
|
7817
7844
|
annotations: {
|
|
7818
|
-
title: "
|
|
7845
|
+
title: "Read document text",
|
|
7819
7846
|
readOnlyHint: false,
|
|
7820
7847
|
destructiveHint: false,
|
|
7821
7848
|
openWorldHint: true
|
|
@@ -7847,7 +7874,7 @@ var LIST_DESCRIPTION3 = [
|
|
|
7847
7874
|
"List the workspace's Field Registry \u2014 the canonical concepts Talonic has discovered across every ingested document, each with a stable id, maturity level, data type, synonyms and occurrence count.",
|
|
7848
7875
|
"",
|
|
7849
7876
|
"USE WHEN: you need to know WHAT data exists before querying it, want to pick the right concept for a question, or need the exact field id for talonic_get_field / talonic_field_values.",
|
|
7850
|
-
"NOT FOR: locating a specific document (talonic_search) or filtering documents by a value (talonic_filter).",
|
|
7877
|
+
"NOT FOR: locating a specific document (talonic_search) or filtering documents by a value (talonic_filter). Not a warm-up before answering a question about the documents: call talonic_ask for that. The registry holds many one-off candidate fields; pass maturity core or proven unless the user asks for candidates.",
|
|
7851
7878
|
"",
|
|
7852
7879
|
"ARGS: `search` (case-insensitive contains on name), `maturity` (core | proven | candidate \u2014 prefer `core`/`proven` for anything you will build on), `include_superseded` (default false: rows merged into another concept are hidden so you never see two ids for one concept), `limit`, `cursor`.",
|
|
7853
7880
|
"RETURNS: data[] of { id, canonical_name, display_name, data_type, maturity, tier, synonyms, description, occurrence_count, superseded_by, links } plus cursor pagination."
|
|
@@ -7956,11 +7983,11 @@ function registerFieldTools(server, getToken, baseUrl) {
|
|
|
7956
7983
|
server.registerTool(
|
|
7957
7984
|
"talonic_list_fields",
|
|
7958
7985
|
{
|
|
7959
|
-
title: "List
|
|
7986
|
+
title: "List fields",
|
|
7960
7987
|
description: LIST_DESCRIPTION3,
|
|
7961
7988
|
inputSchema: listFieldsInputSchema,
|
|
7962
7989
|
annotations: {
|
|
7963
|
-
title: "List
|
|
7990
|
+
title: "List fields",
|
|
7964
7991
|
readOnlyHint: true,
|
|
7965
7992
|
destructiveHint: false,
|
|
7966
7993
|
idempotentHint: true,
|
|
@@ -7973,11 +8000,11 @@ function registerFieldTools(server, getToken, baseUrl) {
|
|
|
7973
8000
|
server.registerTool(
|
|
7974
8001
|
"talonic_get_field",
|
|
7975
8002
|
{
|
|
7976
|
-
title: "
|
|
8003
|
+
title: "Look up a field",
|
|
7977
8004
|
description: GET_DESCRIPTION2,
|
|
7978
8005
|
inputSchema: getFieldInputSchema,
|
|
7979
8006
|
annotations: {
|
|
7980
|
-
title: "
|
|
8007
|
+
title: "Look up a field",
|
|
7981
8008
|
readOnlyHint: true,
|
|
7982
8009
|
destructiveHint: false,
|
|
7983
8010
|
idempotentHint: true,
|
|
@@ -7990,11 +8017,11 @@ function registerFieldTools(server, getToken, baseUrl) {
|
|
|
7990
8017
|
server.registerTool(
|
|
7991
8018
|
"talonic_field_values",
|
|
7992
8019
|
{
|
|
7993
|
-
title: "Read
|
|
8020
|
+
title: "Read a field's values",
|
|
7994
8021
|
description: VALUES_DESCRIPTION,
|
|
7995
8022
|
inputSchema: fieldValuesInputSchema,
|
|
7996
8023
|
annotations: {
|
|
7997
|
-
title: "Read
|
|
8024
|
+
title: "Read a field's values",
|
|
7998
8025
|
readOnlyHint: true,
|
|
7999
8026
|
destructiveHint: false,
|
|
8000
8027
|
idempotentHint: true,
|
|
@@ -8061,7 +8088,7 @@ var LIST_TOOLS_DESCRIPTION = [
|
|
|
8061
8088
|
"Target API: https://talonic.com/docs/api (GET /v1/agent/tools).",
|
|
8062
8089
|
"",
|
|
8063
8090
|
"USE WHEN: you want a capability talonic_* tools do not cover directly (e.g. SQL over the structured data, a workspace overview, cohort discovery) \u2014 list here, then call talonic_invoke_agent_tool with the tool name and its args.",
|
|
8064
|
-
"NOT FOR:
|
|
8091
|
+
"NOT FOR: answering the user's question about their documents \u2014 call talonic_ask, which runs these same tools server-side in one call and returns a cited answer. Also not for discovering fields (talonic_find_data) or documents (talonic_search).",
|
|
8065
8092
|
"",
|
|
8066
8093
|
"ARGS: `only_invocable` (default true \u2014 hide tools this credential cannot run), `include_schemas` (default true \u2014 include each tool's JSON input schema).",
|
|
8067
8094
|
"RETURNS: { tools[] of { name, description, impact, capability, can_invoke, input_schema? }, invocable_count, totalCount }. Registry tools that already have their own talonic_* tool (find_data) are left out; call the dedicated tool."
|
|
@@ -8095,12 +8122,12 @@ async function handleListAgentTools(getToken, baseUrl, args) {
|
|
|
8095
8122
|
});
|
|
8096
8123
|
}
|
|
8097
8124
|
var INVOKE_DESCRIPTION = [
|
|
8098
|
-
"Invoke ONE named tool from the platform's agent tool registry directly, with no model in the loop
|
|
8125
|
+
"Invoke ONE named tool from the platform's agent tool registry directly, with no model in the loop (e.g. `query_data` for a read-only SQL SELECT over the extracted data, `describe_data` for the queryable field list, `get_document_markdown` to read a document's text).",
|
|
8099
8126
|
"READ-ONLY FOR EVERY CREDENTIAL: the platform runs each caller of this route, API key or OAuth session alike, as its least-privilege viewer role, which grants only the registry's read-only tools (capability `data.read`). Write-capable registry tools are never invocable here, however you connected, so this tool reads and never changes workspace data.",
|
|
8100
8127
|
"Target API: Talonic agent tool registry \u2014 https://talonic.com/docs/api (POST /v1/agent/tools/{name}/invoke; input schemas from talonic_list_agent_tools).",
|
|
8101
8128
|
"",
|
|
8102
8129
|
"USE WHEN: talonic_list_agent_tools showed a tool with can_invoke: true that does what you need. Pass exactly the `args` its input_schema declares.",
|
|
8103
|
-
"NOT FOR:
|
|
8130
|
+
"NOT FOR: answering a question about the documents (talonic_ask runs these tools server-side and returns one cited answer). Use this only for a query the user asked for, or when talonic_ask could not answer.",
|
|
8104
8131
|
"",
|
|
8105
8132
|
"ARGS: `name` (tool name), `args` (object matching the tool's input_schema), optional `document_ids` (hard scope for scope-aware tools).",
|
|
8106
8133
|
"RETURNS: { tool, result (the tool's parsed output), citations?, artifacts?, cards? }. Denied capabilities come back as an error naming the capability required; the platform re-checks every call."
|
|
@@ -8131,11 +8158,11 @@ function registerAgentRegistryTools(server, getToken, baseUrl, opts = {}) {
|
|
|
8131
8158
|
server.registerTool(
|
|
8132
8159
|
"talonic_find_data",
|
|
8133
8160
|
{
|
|
8134
|
-
title: "Find
|
|
8161
|
+
title: "Find where data lives",
|
|
8135
8162
|
description: FIND_DESCRIPTION,
|
|
8136
8163
|
inputSchema: findDataInputSchema,
|
|
8137
8164
|
annotations: {
|
|
8138
|
-
title: "Find
|
|
8165
|
+
title: "Find where data lives",
|
|
8139
8166
|
readOnlyHint: true,
|
|
8140
8167
|
destructiveHint: false,
|
|
8141
8168
|
idempotentHint: true,
|
|
@@ -8149,11 +8176,11 @@ function registerAgentRegistryTools(server, getToken, baseUrl, opts = {}) {
|
|
|
8149
8176
|
server.registerTool(
|
|
8150
8177
|
"talonic_list_agent_tools",
|
|
8151
8178
|
{
|
|
8152
|
-
title: "List
|
|
8179
|
+
title: "List data tools",
|
|
8153
8180
|
description: LIST_TOOLS_DESCRIPTION,
|
|
8154
8181
|
inputSchema: listAgentToolsInputSchema,
|
|
8155
8182
|
annotations: {
|
|
8156
|
-
title: "List
|
|
8183
|
+
title: "List data tools",
|
|
8157
8184
|
readOnlyHint: true,
|
|
8158
8185
|
destructiveHint: false,
|
|
8159
8186
|
idempotentHint: true,
|
|
@@ -8166,11 +8193,11 @@ function registerAgentRegistryTools(server, getToken, baseUrl, opts = {}) {
|
|
|
8166
8193
|
server.registerTool(
|
|
8167
8194
|
"talonic_invoke_agent_tool",
|
|
8168
8195
|
{
|
|
8169
|
-
title: "
|
|
8196
|
+
title: "Query workspace data",
|
|
8170
8197
|
description: INVOKE_DESCRIPTION,
|
|
8171
8198
|
inputSchema: invokeAgentToolInputSchema,
|
|
8172
8199
|
annotations: {
|
|
8173
|
-
title: "
|
|
8200
|
+
title: "Query workspace data",
|
|
8174
8201
|
readOnlyHint: true,
|
|
8175
8202
|
destructiveHint: false,
|
|
8176
8203
|
idempotentHint: false,
|
|
@@ -8185,7 +8212,7 @@ var LIST_DESCRIPTION4 = [
|
|
|
8185
8212
|
"List the workspace's Specs. A Spec is a saved extraction pipeline: an ordered list of processing steps plus the fields it produces; talonic_run_spec runs it over documents. Each row: id, name, description, schema_id (the schema the run's output rows follow \u2014 a DIFFERENT id from the Spec's), version / materialized_version (the published version runs use; null = never published), field_count, node_count, timestamps.",
|
|
8186
8213
|
"",
|
|
8187
8214
|
"USE WHEN: the user wants to run 'their pipeline' / 'the invoice Spec', or you need a spec_id for talonic_run_spec / talonic_get_spec.",
|
|
8188
|
-
"NOT FOR: ad-hoc extraction schemas (talonic_list_schemas) or discovering fields (talonic_list_fields).",
|
|
8215
|
+
"NOT FOR: ad-hoc extraction schemas (talonic_list_schemas) or discovering fields (talonic_list_fields). Not a warm-up before answering a question about the documents: call talonic_ask for that.",
|
|
8189
8216
|
"ARGS: optional `search` (name contains, case-insensitive), `limit` (1\u2013100, default 20), `cursor` (from pagination.next_cursor), `order` (asc|desc by updated_at).",
|
|
8190
8217
|
"RETURNS: { data[] of { id, name, description, schema_id, version, materialized_version, materialized_at, field_count, node_count, created_at, updated_at, links }, pagination { total, limit, has_more, next_cursor } }."
|
|
8191
8218
|
].join("\n");
|
|
@@ -8240,10 +8267,10 @@ function registerSpecTools(server, getToken, baseUrl) {
|
|
|
8240
8267
|
server.registerTool(
|
|
8241
8268
|
"talonic_list_specs",
|
|
8242
8269
|
{
|
|
8243
|
-
title: "List
|
|
8270
|
+
title: "List pipelines",
|
|
8244
8271
|
description: LIST_DESCRIPTION4,
|
|
8245
8272
|
inputSchema: listSpecsInputSchema,
|
|
8246
|
-
annotations: { title: "List
|
|
8273
|
+
annotations: { title: "List pipelines", ...READ_ONLY4 },
|
|
8247
8274
|
_meta: widgetToolMeta("listSpecs")
|
|
8248
8275
|
},
|
|
8249
8276
|
async (args) => handleListSpecs(getToken, baseUrl, args)
|
|
@@ -8251,10 +8278,10 @@ function registerSpecTools(server, getToken, baseUrl) {
|
|
|
8251
8278
|
server.registerTool(
|
|
8252
8279
|
"talonic_get_spec",
|
|
8253
8280
|
{
|
|
8254
|
-
title: "
|
|
8281
|
+
title: "Look up a pipeline",
|
|
8255
8282
|
description: GET_DESCRIPTION3,
|
|
8256
8283
|
inputSchema: getSpecInputSchema,
|
|
8257
|
-
annotations: { title: "
|
|
8284
|
+
annotations: { title: "Look up a pipeline", ...READ_ONLY4 },
|
|
8258
8285
|
_meta: widgetToolMeta("getSpec")
|
|
8259
8286
|
},
|
|
8260
8287
|
async (args) => handleGetSpec(getToken, baseUrl, args)
|
|
@@ -8480,11 +8507,11 @@ function registerRunTools(server, getToken, baseUrl) {
|
|
|
8480
8507
|
server.registerTool(
|
|
8481
8508
|
"talonic_run_spec",
|
|
8482
8509
|
{
|
|
8483
|
-
title: "Run a
|
|
8510
|
+
title: "Run a pipeline",
|
|
8484
8511
|
description: RUN_DESCRIPTION2,
|
|
8485
8512
|
inputSchema: runSpecInputSchema,
|
|
8486
8513
|
annotations: {
|
|
8487
|
-
title: "Run a
|
|
8514
|
+
title: "Run a pipeline",
|
|
8488
8515
|
readOnlyHint: false,
|
|
8489
8516
|
destructiveHint: false,
|
|
8490
8517
|
openWorldHint: true
|
|
@@ -8496,10 +8523,10 @@ function registerRunTools(server, getToken, baseUrl) {
|
|
|
8496
8523
|
server.registerTool(
|
|
8497
8524
|
"talonic_get_run",
|
|
8498
8525
|
{
|
|
8499
|
-
title: "
|
|
8526
|
+
title: "Check run progress",
|
|
8500
8527
|
description: GET_RUN_DESCRIPTION,
|
|
8501
8528
|
inputSchema: runRefInputSchema,
|
|
8502
|
-
annotations: { title: "
|
|
8529
|
+
annotations: { title: "Check run progress", ...READ_ONLY5 },
|
|
8503
8530
|
_meta: widgetToolMeta("getRun")
|
|
8504
8531
|
},
|
|
8505
8532
|
async (args) => handleGetRun(getToken, baseUrl, args)
|
|
@@ -8507,10 +8534,10 @@ function registerRunTools(server, getToken, baseUrl) {
|
|
|
8507
8534
|
server.registerTool(
|
|
8508
8535
|
"talonic_get_run_results",
|
|
8509
8536
|
{
|
|
8510
|
-
title: "Read
|
|
8537
|
+
title: "Read run results",
|
|
8511
8538
|
description: RESULTS_DESCRIPTION,
|
|
8512
8539
|
inputSchema: resultsInputSchema,
|
|
8513
|
-
annotations: { title: "Read
|
|
8540
|
+
annotations: { title: "Read run results", ...READ_ONLY5 },
|
|
8514
8541
|
_meta: widgetToolMeta("getRunResults")
|
|
8515
8542
|
},
|
|
8516
8543
|
async (args) => handleGetRunResults(getToken, baseUrl, args)
|
|
@@ -8523,7 +8550,7 @@ var POLL_HINT = "still processing \u2014 call talonic_get_answer with this ask_i
|
|
|
8523
8550
|
var ASK_DESCRIPTION = [
|
|
8524
8551
|
"Ask a natural-language question over the workspace's documents and get a cited, verified answer (markdown). The Talonic agent plans over the workspace's extracted fields, runs read-only SQL over extracted cells, reads document text, and grounds every load-bearing claim in a source span. Consumes credits.",
|
|
8525
8552
|
"",
|
|
8526
|
-
"USE WHEN: the user asks
|
|
8553
|
+
"USE WHEN (the default for questions): the user asks anything about what their documents contain \u2014 counts, totals, duplicates, comparisons, anomalies ('which vendors invoiced us twice in May?'), or a summary across documents. One call replaces exploring fields, schemas, specs and SQL yourself; skip that exploration.",
|
|
8527
8554
|
"NOT FOR: reading a known field's values (talonic_field_values, free) or filtering documents by a known value (talonic_filter, free); locating which field holds a concept (talonic_find_data).",
|
|
8528
8555
|
"ARGS: `question`; optional `scope` { document_ids[], schema_id, pipeline_id, data_product_id, document_type, source_id, tags[], ingested_after, ingested_before } (ANDed), `conversation_id` (continue a thread), `output_format` { instruction, template }, `wait_seconds` (0\u201355, default 45).",
|
|
8529
8556
|
"RETURNS: { ask_id, status ('completed'|'processing'|'error'), conversation_id, answer (markdown), citations[] { quote, document_id, kind, filename, app_url }, verification { verdict, checks_total, checks_unsupported, correction }, usage { tokens, credits_charged }, tool_calls, artifacts[], waited_ms }. If status is still 'processing' after the wait, call talonic_get_answer with the ask_id."
|
|
@@ -8623,11 +8650,11 @@ function registerAskTools(server, getToken, baseUrl) {
|
|
|
8623
8650
|
server.registerTool(
|
|
8624
8651
|
"talonic_ask",
|
|
8625
8652
|
{
|
|
8626
|
-
title: "Ask
|
|
8653
|
+
title: "Ask your documents",
|
|
8627
8654
|
description: ASK_DESCRIPTION,
|
|
8628
8655
|
inputSchema: askInputSchema,
|
|
8629
8656
|
annotations: {
|
|
8630
|
-
title: "Ask
|
|
8657
|
+
title: "Ask your documents",
|
|
8631
8658
|
readOnlyHint: false,
|
|
8632
8659
|
destructiveHint: false,
|
|
8633
8660
|
openWorldHint: false
|
|
@@ -8639,11 +8666,11 @@ function registerAskTools(server, getToken, baseUrl) {
|
|
|
8639
8666
|
server.registerTool(
|
|
8640
8667
|
"talonic_get_answer",
|
|
8641
8668
|
{
|
|
8642
|
-
title: "
|
|
8669
|
+
title: "Get the answer",
|
|
8643
8670
|
description: GET_ANSWER_DESCRIPTION,
|
|
8644
8671
|
inputSchema: { ask_id: uuid2.describe("From talonic_ask.") },
|
|
8645
8672
|
annotations: {
|
|
8646
|
-
title: "
|
|
8673
|
+
title: "Get the answer",
|
|
8647
8674
|
readOnlyHint: true,
|
|
8648
8675
|
destructiveHint: false,
|
|
8649
8676
|
idempotentHint: true,
|
|
@@ -8657,7 +8684,7 @@ function registerAskTools(server, getToken, baseUrl) {
|
|
|
8657
8684
|
|
|
8658
8685
|
// package.json
|
|
8659
8686
|
var package_default = {
|
|
8660
|
-
version: "0.1.
|
|
8687
|
+
version: "0.1.99"};
|
|
8661
8688
|
|
|
8662
8689
|
// src/version.ts
|
|
8663
8690
|
var VERSION = package_default.version;
|
|
@@ -8682,6 +8709,9 @@ function buildServerInstructions(opts) {
|
|
|
8682
8709
|
"schema-validated JSON with per-field confidence scores and source provenance, and",
|
|
8683
8710
|
"answers questions about the documents in the user's Talonic workspace.",
|
|
8684
8711
|
"Which tool for which question:",
|
|
8712
|
+
"(0) any question about what the documents contain (counts, totals, duplicates,",
|
|
8713
|
+
"comparisons, anomalies) -> talonic_ask FIRST, in one call; do not explore fields,",
|
|
8714
|
+
"schemas, specs or SQL to answer it yourself;",
|
|
8685
8715
|
"(1) a document by name or keyword -> talonic_search (literal keywords: one short term",
|
|
8686
8716
|
"or an exact filename; on an empty result retry with a shorter keyword), then use the",
|
|
8687
8717
|
"returned document_id;",
|