@talonic/mcp 0.1.75 → 0.1.77
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 +9 -0
- package/README.md +22 -4
- package/dist/content.js +1756 -180
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +676 -3
- package/dist/http-server.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +659 -1
- package/dist/index.js.map +1 -1
- package/dist/server.js +659 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/content.js
CHANGED
|
@@ -36,11 +36,24 @@ var MCP_NAV_SECTIONS = [
|
|
|
36
36
|
{ id: "talonic-get-pricing", label: "talonic_get_pricing" },
|
|
37
37
|
{ id: "talonic-get-usage", label: "talonic_get_usage" },
|
|
38
38
|
{ id: "talonic-request-upload", label: "talonic_request_upload" },
|
|
39
|
+
{ id: "talonic-list-fields", label: "talonic_list_fields" },
|
|
40
|
+
{ id: "talonic-get-field", label: "talonic_get_field" },
|
|
41
|
+
{ id: "talonic-field-values", label: "talonic_field_values" },
|
|
42
|
+
{ id: "talonic-find-data", label: "talonic_find_data" },
|
|
43
|
+
{ id: "talonic-list-agent-tools", label: "talonic_list_agent_tools" },
|
|
44
|
+
{ id: "talonic-invoke-agent-tool", label: "talonic_invoke_agent_tool" },
|
|
39
45
|
{ id: "talonic-list-agent-tasks", label: "talonic_list_agent_tasks" },
|
|
40
46
|
{ id: "talonic-get-agent-task", label: "talonic_get_agent_task" },
|
|
41
47
|
{ id: "talonic-claim-agent-task", label: "talonic_claim_agent_task" },
|
|
42
48
|
{ id: "talonic-heartbeat-agent-task", label: "talonic_heartbeat_agent_task" },
|
|
43
|
-
{ id: "talonic-submit-agent-task", label: "talonic_submit_agent_task" }
|
|
49
|
+
{ id: "talonic-submit-agent-task", label: "talonic_submit_agent_task" },
|
|
50
|
+
{ id: "talonic-list-decision-tasks", label: "talonic_list_decision_tasks" },
|
|
51
|
+
{ id: "talonic-claim-decision-task", label: "talonic_claim_decision_task" },
|
|
52
|
+
{ id: "talonic-read-decision-package", label: "talonic_read_decision_package" },
|
|
53
|
+
{ id: "talonic-heartbeat-decision-task", label: "talonic_heartbeat_decision_task" },
|
|
54
|
+
{ id: "talonic-submit-decision-task", label: "talonic_submit_decision_task" },
|
|
55
|
+
{ id: "talonic-release-decision-task", label: "talonic_release_decision_task" },
|
|
56
|
+
{ id: "talonic-fail-decision-task", label: "talonic_fail_decision_task" }
|
|
44
57
|
]
|
|
45
58
|
},
|
|
46
59
|
{
|
|
@@ -100,8 +113,8 @@ var sections = [
|
|
|
100
113
|
slug: "mcp-introduction",
|
|
101
114
|
parentSlug: "overview",
|
|
102
115
|
title: "Introduction",
|
|
103
|
-
seoTitle: "MCP Server Introduction \u2014
|
|
104
|
-
description: "Official Talonic MCP server
|
|
116
|
+
seoTitle: "Talonic MCP Server Introduction \u2014 Document Extraction",
|
|
117
|
+
description: "Official Talonic MCP server for AI agents: extract structured, schema-validated JSON from any document via the Model Context Protocol, hosted or local.",
|
|
105
118
|
content: [
|
|
106
119
|
{
|
|
107
120
|
type: "paragraph",
|
|
@@ -109,7 +122,7 @@ var sections = [
|
|
|
109
122
|
},
|
|
110
123
|
{
|
|
111
124
|
type: "paragraph",
|
|
112
|
-
text: "
|
|
125
|
+
text: "The tool set covers the full document workflow: extraction (`talonic_extract`, `talonic_to_markdown`, `talonic_request_upload`), workspace retrieval (`talonic_search`, `talonic_filter`, `talonic_get_document`), schema management (`talonic_list_schemas`, `talonic_save_schema`), cost visibility (`talonic_get_balance`, `talonic_get_pricing`, `talonic_get_usage`), the Agent-task worklist (`talonic_list_agent_tasks` through `talonic_submit_agent_task`), and the External-mode decision-task protocol for Talonic Apps (`talonic_list_decision_tasks` through `talonic_fail_decision_task`), plus the `talonic://schemas` and `talonic://webhooks/reference` resources."
|
|
113
126
|
},
|
|
114
127
|
{
|
|
115
128
|
type: "paragraph",
|
|
@@ -168,13 +181,13 @@ var sections = [
|
|
|
168
181
|
{
|
|
169
182
|
type: "callout",
|
|
170
183
|
variant: "info",
|
|
171
|
-
text: "The MCP server is open-source and published to npm as `@talonic/mcp`. You can inspect the source, report issues, and contribute on GitHub."
|
|
184
|
+
text: "The MCP server is open-source and published to npm as `@talonic/mcp`. You can inspect the source, report issues, and contribute on GitHub. Building a Node application instead of wiring up an agent? The [Talonic Node SDK](https://talonic.com/docs/sdk) exposes the same extraction API as a typed client library."
|
|
172
185
|
}
|
|
173
186
|
],
|
|
174
187
|
related: [
|
|
175
188
|
{ label: "Why Use This", slug: "why-mcp" },
|
|
176
189
|
{ label: "Claude Desktop", slug: "claude-desktop" },
|
|
177
|
-
{ label: "
|
|
190
|
+
{ label: "Install Overview", slug: "install-overview" }
|
|
178
191
|
],
|
|
179
192
|
faq: [
|
|
180
193
|
{
|
|
@@ -194,8 +207,8 @@ var sections = [
|
|
|
194
207
|
answer: "The server supports PDF, PNG, JPG, TIFF, DOCX, XLSX, and other common document formats. Documents can be invoices, contracts, receipts, forms, certificates, or any structured or semi-structured document. The extraction pipeline handles OCR, layout analysis, and field extraction server-side."
|
|
195
208
|
},
|
|
196
209
|
{
|
|
197
|
-
question: "
|
|
198
|
-
answer: "
|
|
210
|
+
question: "What tools does the Talonic MCP server expose?",
|
|
211
|
+
answer: "Tools for every step of the document workflow: extraction (talonic_extract, talonic_to_markdown, talonic_request_upload), retrieval (talonic_search, talonic_filter, talonic_get_document), schema management (talonic_list_schemas, talonic_save_schema), cost visibility (talonic_get_balance, talonic_get_pricing, talonic_get_usage), and the Agent-task worklist, plus the talonic://schemas and talonic://webhooks/reference resources. See the Tool Reference for the full, current list."
|
|
199
212
|
}
|
|
200
213
|
],
|
|
201
214
|
mentions: ["MCP", "Model Context Protocol", "AI agents", "document extraction"]
|
|
@@ -204,8 +217,8 @@ var sections = [
|
|
|
204
217
|
slug: "why-mcp",
|
|
205
218
|
parentSlug: "overview",
|
|
206
219
|
title: "Why Use This",
|
|
207
|
-
seoTitle: "Why Talonic MCP
|
|
208
|
-
description: "Why AI agents
|
|
220
|
+
seoTitle: "Why Use the Talonic MCP Server Instead of OCR + LLM",
|
|
221
|
+
description: "Why AI agents get better document extraction from the Talonic MCP server than raw OCR plus LLM calls: schema validation, confidence scores, stable IDs.",
|
|
209
222
|
content: [
|
|
210
223
|
{
|
|
211
224
|
type: "paragraph",
|
|
@@ -213,7 +226,7 @@ var sections = [
|
|
|
213
226
|
},
|
|
214
227
|
{
|
|
215
228
|
type: "paragraph",
|
|
216
|
-
text: "With this MCP server installed, the agent has a `talonic_extract` tool that returns schema-validated JSON with per-field confidence scores, a detected document type, and stable IDs for follow-up calls.
|
|
229
|
+
text: "With this MCP server installed, the agent has a `talonic_extract` tool that returns schema-validated JSON with per-field confidence scores, a detected document type, and stable IDs for follow-up calls. Companion tools cover the rest of the workflow: searching the workspace, filtering by extracted field values, fetching a document's metadata, getting OCR markdown, listing and saving schemas, requesting browser-handoff uploads, processing Agent-stage tasks, and reading the workspace credit balance, pricing catalog, and usage breakdown for budget-aware behaviour."
|
|
217
230
|
},
|
|
218
231
|
{
|
|
219
232
|
type: "paragraph",
|
|
@@ -295,8 +308,8 @@ var sections = [
|
|
|
295
308
|
slug: "agent-decision-guide",
|
|
296
309
|
parentSlug: "overview",
|
|
297
310
|
title: "Agent Decision Guide",
|
|
298
|
-
seoTitle: "Agent Decision Guide \u2014 Talonic
|
|
299
|
-
description: "How an AI agent should
|
|
311
|
+
seoTitle: "Agent Decision Guide \u2014 Choosing the Right Talonic Tool",
|
|
312
|
+
description: "How an AI agent should choose between Talonic MCP tools, handle low-confidence extractions, and avoid wasted calls that cost credits or repeat work done.",
|
|
300
313
|
content: [
|
|
301
314
|
{
|
|
302
315
|
type: "paragraph",
|
|
@@ -304,7 +317,7 @@ var sections = [
|
|
|
304
317
|
},
|
|
305
318
|
{
|
|
306
319
|
type: "paragraph",
|
|
307
|
-
text: "
|
|
320
|
+
text: "Talonic's public tools are designed for distinct use cases with minimal overlap. **`talonic_extract`** is for structured field extraction with a schema, **`talonic_request_upload`** hands the user a browser link for files too large to pass through a hosted connector (Claude.ai), **`talonic_to_markdown`** is for full-text conversion, **`talonic_search`** handles fuzzy discovery, **`talonic_filter`** handles precise field-value queries, **`talonic_get_document`** returns metadata, the schema tools (**`talonic_list_schemas`**, **`talonic_save_schema`**) manage reusable extraction templates, and the billing tools (**`talonic_get_balance`** for the remaining balance, **`talonic_get_pricing`** for per-unit rates, **`talonic_get_usage`** for per-function spend) let the agent stay budget-aware before and after large batches."
|
|
308
321
|
},
|
|
309
322
|
{
|
|
310
323
|
type: "paragraph",
|
|
@@ -389,8 +402,28 @@ var sections = [
|
|
|
389
402
|
"**The needed data is already in conversation history** from a previous tool call. Re-use it. Repeat calls cost credits and slow the response.",
|
|
390
403
|
"**The user wants to discuss or revise** an extraction you already produced. Reason over the previous result instead of re-extracting.",
|
|
391
404
|
"**Schema design iteration**. Iterate the schema with the user via `talonic_extract` with an inline schema; only call `talonic_save_schema` once they confirm.",
|
|
392
|
-
"**Cost
|
|
405
|
+
"**Cost questions have dedicated read-only tools.** If the user asks 'how much will this cost', call `talonic_get_pricing`; for 'how many credits do I have left', call `talonic_get_balance`; for 'where did my credits go', call `talonic_get_usage`. Do not guess numbers or send the user to the dashboard for questions these tools answer."
|
|
393
406
|
]
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
type: "code",
|
|
410
|
+
language: "json",
|
|
411
|
+
title: "Worked example: 'invoices over 1000 EUR' is a filter, not an extract",
|
|
412
|
+
code: `// User: "Which of my invoices are over 1000 EUR?"
|
|
413
|
+
// The documents are already extracted \u2014 do NOT re-extract. Filter instead:
|
|
414
|
+
// talonic_filter({
|
|
415
|
+
// "conditions": [
|
|
416
|
+
// { "field": "total", "op": "gt", "value": 1000 }
|
|
417
|
+
// ]
|
|
418
|
+
// })
|
|
419
|
+
// \u2192 matching documents with their extracted field values, zero credits spent
|
|
420
|
+
// on re-processing. Only fall back to talonic_search for conceptual queries
|
|
421
|
+
// like "the contract about the Berlin office lease".`
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
type: "callout",
|
|
425
|
+
variant: "info",
|
|
426
|
+
text: "Rule of thumb: read-only tools (`talonic_search`, `talonic_filter`, `talonic_get_document`, `talonic_list_schemas`, `talonic_get_balance`, `talonic_get_pricing`, `talonic_get_usage`) are safe to call whenever they help. Credit-consuming or write tools (`talonic_extract`, `talonic_to_markdown` on new files, `talonic_save_schema`) deserve a moment of doubt: is the answer already available without them?"
|
|
394
427
|
}
|
|
395
428
|
],
|
|
396
429
|
related: [
|
|
@@ -419,8 +452,8 @@ var sections = [
|
|
|
419
452
|
slug: "get-api-key",
|
|
420
453
|
parentSlug: "overview",
|
|
421
454
|
title: "Get an API Key",
|
|
422
|
-
seoTitle: "Get
|
|
423
|
-
description: "
|
|
455
|
+
seoTitle: "Get a Talonic API Key for the MCP Server in 30 Seconds",
|
|
456
|
+
description: "Create a free Talonic API key at app.talonic.com in about 30 seconds, then drop the tlnc_ value into any MCP client config. Each key has its own workspace.",
|
|
424
457
|
content: [
|
|
425
458
|
{
|
|
426
459
|
type: "paragraph",
|
|
@@ -554,8 +587,8 @@ var sections2 = [
|
|
|
554
587
|
slug: "install-overview",
|
|
555
588
|
parentSlug: "install",
|
|
556
589
|
title: "Install Overview",
|
|
557
|
-
seoTitle: "Install Talonic MCP \u2014
|
|
558
|
-
description: "Install the Talonic MCP server
|
|
590
|
+
seoTitle: "Install the Talonic MCP Server \u2014 Hosted or Local npx",
|
|
591
|
+
description: "Install the Talonic MCP server two ways: the hosted endpoint at mcp.talonic.com with OAuth or Bearer auth, or a one-line local npx run for stdio clients.",
|
|
559
592
|
content: [
|
|
560
593
|
{
|
|
561
594
|
type: "paragraph",
|
|
@@ -580,8 +613,8 @@ var sections2 = [
|
|
|
580
613
|
"URL: `https://mcp.talonic.com/mcp` \u2014 no query string, no headers.",
|
|
581
614
|
"Click **Connect**. You are redirected to Talonic to sign in.",
|
|
582
615
|
"Sign in with Google, Microsoft, or your company SSO.",
|
|
583
|
-
"Approve the consent screen. The requested scopes are `extract:write`, `documents:read`,
|
|
584
|
-
"You are returned to Claude.ai with the connector live.
|
|
616
|
+
"Approve the consent screen. The requested scopes are `extract:write`, `documents:read`, `schemas:read`, and `apps:decide` (the decision-task tools for External-mode Apps). Connectors added before `apps:decide` existed keep working; the seven decision tools show as not invocable until you remove and re-add the connector. Pick a workspace if you have multiple.",
|
|
617
|
+
"You are returned to Claude.ai with the connector live. The full Talonic tool set is available in any new conversation."
|
|
585
618
|
]
|
|
586
619
|
},
|
|
587
620
|
{
|
|
@@ -633,7 +666,7 @@ var sections2 = [
|
|
|
633
666
|
},
|
|
634
667
|
{
|
|
635
668
|
type: "paragraph",
|
|
636
|
-
text: "All three install paths expose the same
|
|
669
|
+
text: "All three install paths expose the same public tool set and two resources. The hosted server runs the latest version of `@talonic/mcp` automatically; the local `npx` install picks up the latest version on next client restart when pinned to `@latest`."
|
|
637
670
|
},
|
|
638
671
|
{
|
|
639
672
|
type: "heading",
|
|
@@ -643,7 +676,7 @@ var sections2 = [
|
|
|
643
676
|
},
|
|
644
677
|
{
|
|
645
678
|
type: "paragraph",
|
|
646
|
-
text: "After adding the config and restarting your MCP client, verify the connection by asking the agent to list your schemas. This is a lightweight read-only call that confirms the API key is valid and the server is reachable. If the call succeeds,
|
|
679
|
+
text: "After adding the config and restarting your MCP client, verify the connection by asking the agent to list your schemas. This is a lightweight read-only call that confirms the API key is valid and the server is reachable. If the call succeeds, the full tool set is ready to use."
|
|
647
680
|
},
|
|
648
681
|
{
|
|
649
682
|
type: "code",
|
|
@@ -715,8 +748,8 @@ var sections2 = [
|
|
|
715
748
|
slug: "claude-desktop",
|
|
716
749
|
parentSlug: "install",
|
|
717
750
|
title: "Claude Desktop",
|
|
718
|
-
seoTitle: "Claude Desktop
|
|
719
|
-
description: "Configure the Talonic MCP server in Claude Desktop on macOS and
|
|
751
|
+
seoTitle: "Set Up Talonic MCP in Claude Desktop on macOS & Windows",
|
|
752
|
+
description: "Configure the Talonic MCP server in Claude Desktop: edit claude_desktop_config.json on macOS or Windows, fully restart, and verify the tool set connects.",
|
|
720
753
|
content: [
|
|
721
754
|
{
|
|
722
755
|
type: "paragraph",
|
|
@@ -728,7 +761,7 @@ var sections2 = [
|
|
|
728
761
|
{ type: "code", language: "json", code: MCP_CONFIG_SNIPPET },
|
|
729
762
|
{
|
|
730
763
|
type: "paragraph",
|
|
731
|
-
text: "Fully restart Claude Desktop (Cmd+Q on macOS, not just close the window). Talonic appears in the connected servers list with
|
|
764
|
+
text: "Fully restart Claude Desktop (Cmd+Q on macOS, not just close the window). Talonic appears in the connected servers list with the full Talonic tool set."
|
|
732
765
|
},
|
|
733
766
|
{
|
|
734
767
|
type: "paragraph",
|
|
@@ -812,8 +845,8 @@ var sections2 = [
|
|
|
812
845
|
slug: "cursor",
|
|
813
846
|
parentSlug: "install",
|
|
814
847
|
title: "Cursor",
|
|
815
|
-
seoTitle: "
|
|
816
|
-
description: "
|
|
848
|
+
seoTitle: "How to Set Up the Talonic MCP Server in the Cursor IDE",
|
|
849
|
+
description: "Add the Talonic MCP server to Cursor via ~/.cursor/mcp.json, hosted or local npx, then extract structured data from files inside your project workspace.",
|
|
817
850
|
content: [
|
|
818
851
|
{
|
|
819
852
|
type: "paragraph",
|
|
@@ -877,6 +910,10 @@ var sections2 = [
|
|
|
877
910
|
type: "paragraph",
|
|
878
911
|
text: "When using the hosted MCP option in Cursor, the connection is established over HTTPS with no local process. This means Cursor starts faster and there is no Node.js dependency. For teams sharing a Cursor workspace configuration, the hosted option is simpler to standardise because every developer only needs an API key \u2014 no local Node.js version management needed."
|
|
879
912
|
},
|
|
913
|
+
{
|
|
914
|
+
type: "paragraph",
|
|
915
|
+
text: "To verify the install, open Cursor Settings \u2192 MCP: the `talonic` entry should show a green status indicator and list its tools. If it stays red or shows no tools, check that `TALONIC_API_KEY` sits inside the `env` block of `~/.cursor/mcp.json` \u2014 Cursor launches MCP servers itself and does not inherit your shell profile \u2014 then run `npx -y @talonic/mcp` once in a terminal to surface install-time errors, and reload the window so Cursor re-reads the config."
|
|
916
|
+
},
|
|
880
917
|
{
|
|
881
918
|
type: "callout",
|
|
882
919
|
variant: "info",
|
|
@@ -911,8 +948,8 @@ var sections2 = [
|
|
|
911
948
|
slug: "cline",
|
|
912
949
|
parentSlug: "install",
|
|
913
950
|
title: "Cline",
|
|
914
|
-
seoTitle: "
|
|
915
|
-
description: "Configure the Talonic MCP server in the Cline VS Code extension.",
|
|
951
|
+
seoTitle: "Set Up the Talonic MCP Server in Cline for VS Code",
|
|
952
|
+
description: "Configure the Talonic MCP server in the Cline VS Code extension, with auto-approval rules letting read-only Talonic tools run without confirmation prompts.",
|
|
916
953
|
content: [
|
|
917
954
|
{
|
|
918
955
|
type: "paragraph",
|
|
@@ -1000,8 +1037,8 @@ var sections2 = [
|
|
|
1000
1037
|
slug: "continue",
|
|
1001
1038
|
parentSlug: "install",
|
|
1002
1039
|
title: "Continue",
|
|
1003
|
-
seoTitle: "Continue
|
|
1004
|
-
description: "
|
|
1040
|
+
seoTitle: "Set Up Talonic MCP in Continue for VS Code & JetBrains",
|
|
1041
|
+
description: "Add the Talonic MCP server to Continue's mcpServers array in ~/.continue/config.json \u2014 one config shared by VS Code and JetBrains \u2014 and verify it works.",
|
|
1005
1042
|
content: [
|
|
1006
1043
|
{ type: "paragraph", text: "Edit `~/.continue/config.json`. Add to the `mcpServers` array:" },
|
|
1007
1044
|
{ type: "heading", level: 3, id: "continue-hosted", text: "Hosted (recommended)" },
|
|
@@ -1035,7 +1072,7 @@ var sections2 = [
|
|
|
1035
1072
|
},
|
|
1036
1073
|
{
|
|
1037
1074
|
type: "paragraph",
|
|
1038
|
-
text: "After saving the config, reload your IDE window to pick up the changes. Continue discovers Talonic's
|
|
1075
|
+
text: "After saving the config, reload your IDE window to pick up the changes. Continue discovers Talonic's public tools and two resources automatically. You can verify the connection by asking the agent to call `talonic_list_schemas` \u2014 it should return your saved schemas or an empty list."
|
|
1039
1076
|
},
|
|
1040
1077
|
{
|
|
1041
1078
|
type: "paragraph",
|
|
@@ -1108,8 +1145,8 @@ var sections2 = [
|
|
|
1108
1145
|
slug: "cowork",
|
|
1109
1146
|
parentSlug: "install",
|
|
1110
1147
|
title: "Cowork",
|
|
1111
|
-
seoTitle: "Cowork
|
|
1112
|
-
description: "Configure the Talonic MCP server in Cowork.",
|
|
1148
|
+
seoTitle: "Set Up the Talonic MCP Server in Cowork \u2014 Quick Guide",
|
|
1149
|
+
description: "Configure the Talonic MCP server in Cowork, browse saved schemas in the resources panel via talonic://schemas, and extract dropped files with one call.",
|
|
1113
1150
|
content: [
|
|
1114
1151
|
{ type: "paragraph", text: "Open Cowork settings \u2192 MCP Servers \u2192 Add." },
|
|
1115
1152
|
{ type: "heading", level: 3, id: "cowork-hosted", text: "Hosted (recommended)" },
|
|
@@ -1118,7 +1155,7 @@ var sections2 = [
|
|
|
1118
1155
|
{ type: "code", language: "json", code: MCP_CONFIG_SNIPPET },
|
|
1119
1156
|
{
|
|
1120
1157
|
type: "paragraph",
|
|
1121
|
-
text: "Cowork is a chat-style MCP client that supports drag-and-drop file uploads and resource browsing. After adding the Talonic config,
|
|
1158
|
+
text: "Cowork is a chat-style MCP client that supports drag-and-drop file uploads and resource browsing. After adding the Talonic config, Talonic's public tools appear in the tool picker and the `talonic://schemas` and `talonic://webhooks/reference` resources are browseable in the resources panel."
|
|
1122
1159
|
},
|
|
1123
1160
|
{
|
|
1124
1161
|
type: "paragraph",
|
|
@@ -1167,6 +1204,10 @@ var sections2 = [
|
|
|
1167
1204
|
type: "paragraph",
|
|
1168
1205
|
text: "For teams onboarding new members, Cowork's visual schema browser is especially useful. A new team member can see all available extraction templates at a glance, understand what fields each schema extracts, and start processing documents immediately without needing to learn schema IDs or ask colleagues which templates exist. Combined with drag-and-drop file uploads, the barrier to entry is as low as it gets."
|
|
1169
1206
|
},
|
|
1207
|
+
{
|
|
1208
|
+
type: "paragraph",
|
|
1209
|
+
text: "To verify the install, start a new chat and confirm Talonic's tools appear in the tool picker and `talonic://schemas` shows in the resources panel. If neither appears, re-open Cowork's MCP Servers settings to confirm the entry saved, check the API key value, and restart Cowork so it relaunches its MCP connections \u2014 config edits are only picked up on restart."
|
|
1210
|
+
},
|
|
1170
1211
|
{
|
|
1171
1212
|
type: "callout",
|
|
1172
1213
|
variant: "info",
|
|
@@ -1205,8 +1246,8 @@ var sections3 = [
|
|
|
1205
1246
|
slug: "talonic-extract",
|
|
1206
1247
|
parentSlug: "tools",
|
|
1207
1248
|
title: "talonic_extract",
|
|
1208
|
-
seoTitle: "talonic_extract
|
|
1209
|
-
description: "
|
|
1249
|
+
seoTitle: "talonic_extract \u2014 Structured Document Extraction Tool",
|
|
1250
|
+
description: "MCP tool that extracts structured, schema-validated JSON from documents with per-field confidence scores. Accepts file data, paths, URLs, or document IDs.",
|
|
1210
1251
|
content: [
|
|
1211
1252
|
{ type: "paragraph", text: "Extract structured, schema-validated data from a document." },
|
|
1212
1253
|
{
|
|
@@ -1423,8 +1464,8 @@ var sections3 = [
|
|
|
1423
1464
|
slug: "talonic-search",
|
|
1424
1465
|
parentSlug: "tools",
|
|
1425
1466
|
title: "talonic_search",
|
|
1426
|
-
seoTitle: "talonic_search
|
|
1427
|
-
description: "
|
|
1467
|
+
seoTitle: "talonic_search \u2014 Workspace Omnisearch Tool for Agents",
|
|
1468
|
+
description: "MCP omnisearch tool across documents, fields, sources, and schemas in a Talonic workspace. Handles conceptual, fuzzy queries and returns typed field matches.",
|
|
1428
1469
|
content: [
|
|
1429
1470
|
{
|
|
1430
1471
|
type: "paragraph",
|
|
@@ -1583,8 +1624,8 @@ var sections3 = [
|
|
|
1583
1624
|
slug: "talonic-filter",
|
|
1584
1625
|
parentSlug: "tools",
|
|
1585
1626
|
title: "talonic_filter",
|
|
1586
|
-
seoTitle: "talonic_filter
|
|
1587
|
-
description: "
|
|
1627
|
+
seoTitle: "talonic_filter \u2014 Filter Documents by Extracted Fields",
|
|
1628
|
+
description: "MCP tool that filters workspace documents by extracted field values with composable conditions \u2014 eq, gt, between, contains \u2014 plus typing warnings surfaced.",
|
|
1588
1629
|
content: [
|
|
1589
1630
|
{
|
|
1590
1631
|
type: "paragraph",
|
|
@@ -1788,8 +1829,8 @@ var sections3 = [
|
|
|
1788
1829
|
slug: "talonic-get-document",
|
|
1789
1830
|
parentSlug: "tools",
|
|
1790
1831
|
title: "talonic_get_document",
|
|
1791
|
-
seoTitle: "talonic_get_document
|
|
1792
|
-
description: "
|
|
1832
|
+
seoTitle: "talonic_get_document \u2014 Document Metadata & Status Tool",
|
|
1833
|
+
description: "MCP tool that fetches one document's metadata by ID: processing status, page count, and dashboard links. The polling primitive for browser-handoff uploads.",
|
|
1793
1834
|
content: [
|
|
1794
1835
|
{
|
|
1795
1836
|
type: "paragraph",
|
|
@@ -1919,8 +1960,8 @@ var sections3 = [
|
|
|
1919
1960
|
slug: "talonic-to-markdown",
|
|
1920
1961
|
parentSlug: "tools",
|
|
1921
1962
|
title: "talonic_to_markdown",
|
|
1922
|
-
seoTitle: "talonic_to_markdown
|
|
1923
|
-
description: "
|
|
1963
|
+
seoTitle: "talonic_to_markdown \u2014 OCR Documents to Clean Markdown",
|
|
1964
|
+
description: "MCP tool that returns OCR-converted markdown for a whole document. Accepts document_id, file_data plus filename, file_path, or file_url \u2014 no schema needed.",
|
|
1924
1965
|
content: [
|
|
1925
1966
|
{
|
|
1926
1967
|
type: "paragraph",
|
|
@@ -2071,8 +2112,8 @@ Payment terms: Net 30`
|
|
|
2071
2112
|
slug: "talonic-list-schemas",
|
|
2072
2113
|
parentSlug: "tools",
|
|
2073
2114
|
title: "talonic_list_schemas",
|
|
2074
|
-
seoTitle: "talonic_list_schemas
|
|
2075
|
-
description: "
|
|
2115
|
+
seoTitle: "talonic_list_schemas \u2014 List Saved Extraction Schemas",
|
|
2116
|
+
description: "MCP tool that lists every saved schema in your Talonic workspace with IDs, names, and full field definitions, so agents reuse schemas instead of redesigning.",
|
|
2076
2117
|
content: [
|
|
2077
2118
|
{
|
|
2078
2119
|
type: "paragraph",
|
|
@@ -2215,8 +2256,8 @@ Payment terms: Net 30`
|
|
|
2215
2256
|
slug: "talonic-save-schema",
|
|
2216
2257
|
parentSlug: "tools",
|
|
2217
2258
|
title: "talonic_save_schema",
|
|
2218
|
-
seoTitle: "talonic_save_schema
|
|
2219
|
-
description: "
|
|
2259
|
+
seoTitle: "talonic_save_schema \u2014 Save Reusable Extraction Schemas",
|
|
2260
|
+
description: "MCP tool that persists a JSON Schema for reuse across extractions. Returns a schema_id (UUID or SCH-XXXXXXXX) to pass on every future talonic_extract call.",
|
|
2220
2261
|
content: [
|
|
2221
2262
|
{
|
|
2222
2263
|
type: "paragraph",
|
|
@@ -2412,8 +2453,8 @@ Payment terms: Net 30`
|
|
|
2412
2453
|
slug: "talonic-get-balance",
|
|
2413
2454
|
parentSlug: "tools",
|
|
2414
2455
|
title: "talonic_get_balance",
|
|
2415
|
-
seoTitle: "talonic_get_balance
|
|
2416
|
-
description: "MCP tool
|
|
2456
|
+
seoTitle: "talonic_get_balance \u2014 Check Credits, Burn Rate, Runway",
|
|
2457
|
+
description: "MCP tool returning your Talonic credit balance, EUR value, 30-day burn rate, projected runway, tier, and next tier reset \u2014 for budget-aware agent behaviour.",
|
|
2417
2458
|
content: [
|
|
2418
2459
|
{
|
|
2419
2460
|
type: "paragraph",
|
|
@@ -2521,11 +2562,17 @@ Payment terms: Net 30`
|
|
|
2521
2562
|
{
|
|
2522
2563
|
type: "paragraph",
|
|
2523
2564
|
text: "The `burn_rate_30d_credits` field shows total consumption over the trailing 30 days, not a daily average. Agents can divide by 30 to estimate daily usage. Combined with `balance_credits`, this provides a clear picture of workspace sustainability. A high burn rate with a low balance signals the need for a plan upgrade or reduced usage before the next tier reset."
|
|
2565
|
+
},
|
|
2566
|
+
{
|
|
2567
|
+
type: "callout",
|
|
2568
|
+
variant: "info",
|
|
2569
|
+
text: "`talonic_get_balance` is read-only and never consumes credits, so it is always safe to call. Top-ups and plan changes are deliberately not exposed at the MCP layer \u2014 for those, send the user to the dashboard at [app.talonic.com](https://app.talonic.com) or the plan overview at [talonic.com/pricing](https://talonic.com/pricing)."
|
|
2524
2570
|
}
|
|
2525
2571
|
],
|
|
2526
2572
|
related: [
|
|
2527
2573
|
{ label: "talonic_extract", slug: "talonic-extract" },
|
|
2528
|
-
{ label: "
|
|
2574
|
+
{ label: "talonic_get_pricing", slug: "talonic-get-pricing" },
|
|
2575
|
+
{ label: "talonic_get_usage", slug: "talonic-get-usage" }
|
|
2529
2576
|
],
|
|
2530
2577
|
faq: [
|
|
2531
2578
|
{
|
|
@@ -2551,8 +2598,8 @@ Payment terms: Net 30`
|
|
|
2551
2598
|
slug: "talonic-get-pricing",
|
|
2552
2599
|
parentSlug: "tools",
|
|
2553
2600
|
title: "talonic_get_pricing",
|
|
2554
|
-
seoTitle: "talonic_get_pricing
|
|
2555
|
-
description: "MCP tool that returns
|
|
2601
|
+
seoTitle: "talonic_get_pricing \u2014 Credit Pricing Catalog for Agents",
|
|
2602
|
+
description: "MCP tool that returns Talonic's public credit pricing catalog: per-unit rates, EUR equivalents, and batch multipliers, so agents can predict spend upfront.",
|
|
2556
2603
|
content: [
|
|
2557
2604
|
{
|
|
2558
2605
|
type: "paragraph",
|
|
@@ -2651,6 +2698,15 @@ Payment terms: Net 30`
|
|
|
2651
2698
|
{
|
|
2652
2699
|
type: "paragraph",
|
|
2653
2700
|
text: "The catalog distinguishes billable units from free ones. Document page ingestion, structuring cells filled by fresh model reasoning, and intelligence operations carry a cost; Field Registry resolved cells, delivery, and validation are free. A document whose fields are answered entirely from the Field Registry therefore incurs only its page-ingestion cost, which an agent can surface as a reason to reuse schemas across similar documents."
|
|
2701
|
+
},
|
|
2702
|
+
{
|
|
2703
|
+
type: "paragraph",
|
|
2704
|
+
text: "Pricing pairs naturally with the other two cost tools. Before a job, quote it from the catalog; afterwards, verify what it actually cost with `talonic_get_usage`, whose `operation_type` values match the catalog's unit identifiers, and check the remaining headroom with `talonic_get_balance`. Because every estimate is derived from the live catalog rather than numbers baked into the agent's prompt, quotes stay correct even when Talonic adjusts a rate or adds a new billable unit."
|
|
2705
|
+
},
|
|
2706
|
+
{
|
|
2707
|
+
type: "callout",
|
|
2708
|
+
variant: "info",
|
|
2709
|
+
text: "Rates are fixed per unit rather than token-based, so a quote computed from the catalog is exact, not an estimate band. The only variables the agent needs are the unit counts (pages, cells, operations) and the processing mode."
|
|
2654
2710
|
}
|
|
2655
2711
|
],
|
|
2656
2712
|
related: [
|
|
@@ -2685,8 +2741,8 @@ Payment terms: Net 30`
|
|
|
2685
2741
|
slug: "talonic-get-usage",
|
|
2686
2742
|
parentSlug: "tools",
|
|
2687
2743
|
title: "talonic_get_usage",
|
|
2688
|
-
seoTitle: "talonic_get_usage
|
|
2689
|
-
description: "MCP tool that
|
|
2744
|
+
seoTitle: "talonic_get_usage \u2014 Per-Function Credit Usage Reports",
|
|
2745
|
+
description: "MCP tool that breaks down Talonic credit consumption by platform function over a trailing window (default 30 days), ordered by spend to show cost drivers.",
|
|
2690
2746
|
content: [
|
|
2691
2747
|
{
|
|
2692
2748
|
type: "paragraph",
|
|
@@ -2772,6 +2828,15 @@ Payment terms: Net 30`
|
|
|
2772
2828
|
{
|
|
2773
2829
|
type: "paragraph",
|
|
2774
2830
|
text: "The figures read from the credit transaction ledger, so they reconcile exactly with the balance and history reported elsewhere. The `operation_type` values match the unit identifiers in the pricing catalog, which lets an agent join usage to rates and explain not just how many credits a function consumed but why. To express any figure in euros, divide by the credits-per-EUR rate from the pricing catalog."
|
|
2831
|
+
},
|
|
2832
|
+
{
|
|
2833
|
+
type: "paragraph",
|
|
2834
|
+
text: "A practical reporting pattern: call `talonic_get_usage` with `days: 7` for a weekly report, join each `operation_type` row to its catalog line from `talonic_get_pricing`, and present spend per function in both credits and euros alongside the operation counts. Because the window is clamped to 1\u2013365 days, month-over-month comparisons are two calls with different `days` values \u2014 no client-side bookkeeping or stored history is needed."
|
|
2835
|
+
},
|
|
2836
|
+
{
|
|
2837
|
+
type: "callout",
|
|
2838
|
+
variant: "info",
|
|
2839
|
+
text: "`talonic_get_usage` is read-only and free to call. An empty `by_function` breakdown usually means no billable operations were charged in the window \u2014 see the FAQ below on shadow-mode metering \u2014 so treat it as 'nothing charged', not as an error."
|
|
2775
2840
|
}
|
|
2776
2841
|
],
|
|
2777
2842
|
related: [
|
|
@@ -2805,8 +2870,8 @@ Payment terms: Net 30`
|
|
|
2805
2870
|
slug: "talonic-request-upload",
|
|
2806
2871
|
parentSlug: "tools",
|
|
2807
2872
|
title: "talonic_request_upload",
|
|
2808
|
-
seoTitle: "talonic_request_upload
|
|
2809
|
-
description: "
|
|
2873
|
+
seoTitle: "talonic_request_upload \u2014 Browser-Handoff File Uploads",
|
|
2874
|
+
description: "MCP tool that mints a browser upload link for files too large for tool-call arguments. Returns a document_id, upload URL, and expiry for hosted connectors.",
|
|
2810
2875
|
content: [
|
|
2811
2876
|
{
|
|
2812
2877
|
type: "paragraph",
|
|
@@ -2966,13 +3031,21 @@ Payment terms: Net 30`
|
|
|
2966
3031
|
slug: "talonic-list-agent-tasks",
|
|
2967
3032
|
parentSlug: "tools",
|
|
2968
3033
|
title: "talonic_list_agent_tasks",
|
|
2969
|
-
seoTitle: "talonic_list_agent_tasks
|
|
2970
|
-
description: "
|
|
3034
|
+
seoTitle: "talonic_list_agent_tasks \u2014 Agent Worklist for Documents",
|
|
3035
|
+
description: "MCP tool that lists Agent-stage tasks awaiting external processing in your Talonic workspace \u2014 metadata only, with status filters and cursor pagination.",
|
|
2971
3036
|
content: [
|
|
2972
3037
|
{
|
|
2973
3038
|
type: "paragraph",
|
|
2974
3039
|
text: "List Agent-stage tasks visible to the current workspace credential. The response contains task metadata and cursor pagination; payload data is deliberately fetched one task at a time so each disclosure can be audited."
|
|
2975
3040
|
},
|
|
3041
|
+
{
|
|
3042
|
+
type: "paragraph",
|
|
3043
|
+
text: "Agent stages are pipeline steps that park a running document until an external agent supplies a set of declared output fields \u2014 a risk assessment, an enrichment lookup, a judgment call the pipeline cannot make itself. When a document reaches an enabled Agent stage, the platform captures an immutable input snapshot, creates a task, and waits. This tool is the entry point of the pull workflow: it shows what work exists without exposing any document data."
|
|
3044
|
+
},
|
|
3045
|
+
{
|
|
3046
|
+
type: "paragraph",
|
|
3047
|
+
text: "Each row in `data[]` carries identifiers (`id`, `document_id`, `pipeline_id`, `stage_id`), the lifecycle `status` (`available`, `claimed`, `submitted`, `timed_out`, or `cancelled`), the current `execution_epoch`, and the timing fields `claimed_at`, `lease_expires_at`, `timeout_at`, `submitted_at`, and `created_at`. That is enough to decide which task to inspect next \u2014 and nothing more, by design. `pagination.has_more` and `pagination.next_cursor` drive paging."
|
|
3048
|
+
},
|
|
2976
3049
|
{
|
|
2977
3050
|
type: "heading",
|
|
2978
3051
|
level: 3,
|
|
@@ -3009,6 +3082,32 @@ Payment terms: Net 30`
|
|
|
3009
3082
|
}
|
|
3010
3083
|
]
|
|
3011
3084
|
},
|
|
3085
|
+
{
|
|
3086
|
+
type: "code",
|
|
3087
|
+
language: "json",
|
|
3088
|
+
title: "Tool input and response",
|
|
3089
|
+
code: `// talonic_list_agent_tasks({ "status": "available", "limit": 2 })
|
|
3090
|
+
{
|
|
3091
|
+
"data": [
|
|
3092
|
+
{
|
|
3093
|
+
"id": "11111111-1111-4111-8111-111111111111",
|
|
3094
|
+
"document_id": "22222222-2222-4222-8222-222222222222",
|
|
3095
|
+
"stage_id": "33333333-3333-4333-8333-333333333333",
|
|
3096
|
+
"status": "available",
|
|
3097
|
+
"execution_epoch": 1,
|
|
3098
|
+
"claimed_at": null,
|
|
3099
|
+
"lease_expires_at": null,
|
|
3100
|
+
"timeout_at": "2026-08-30T12:00:00.000Z",
|
|
3101
|
+
"created_at": "2026-08-29T09:15:00.000Z"
|
|
3102
|
+
}
|
|
3103
|
+
],
|
|
3104
|
+
"pagination": { "has_more": false, "next_cursor": null }
|
|
3105
|
+
}`
|
|
3106
|
+
},
|
|
3107
|
+
{
|
|
3108
|
+
type: "paragraph",
|
|
3109
|
+
text: 'For a long-running worker loop, list with `status: "available"` on a modest interval rather than a tight poll, and page with `cursor` only when `has_more` is true. Filtering by `claimed` or `timed_out` is useful for supervision \u2014 spotting tasks another worker abandoned (their lease expired but they were never resubmitted) that are now eligible for reclaiming via `talonic_claim_agent_task`.'
|
|
3110
|
+
},
|
|
3012
3111
|
{
|
|
3013
3112
|
type: "callout",
|
|
3014
3113
|
text: "An empty worklist is normal: tasks exist only when a running document reaches an enabled Agent stage and the credential's Sources-IAM rules allow it."
|
|
@@ -3016,12 +3115,21 @@ Payment terms: Net 30`
|
|
|
3016
3115
|
],
|
|
3017
3116
|
related: [
|
|
3018
3117
|
{ label: "talonic_get_agent_task", slug: "talonic-get-agent-task" },
|
|
3019
|
-
{ label: "talonic_claim_agent_task", slug: "talonic-claim-agent-task" }
|
|
3118
|
+
{ label: "talonic_claim_agent_task", slug: "talonic-claim-agent-task" },
|
|
3119
|
+
{ label: "talonic_submit_agent_task", slug: "talonic-submit-agent-task" }
|
|
3020
3120
|
],
|
|
3021
3121
|
faq: [
|
|
3022
3122
|
{
|
|
3023
3123
|
question: "Does listing Agent tasks expose document data?",
|
|
3024
3124
|
answer: "No. The list returns metadata only. Fetching one task's immutable input snapshot uses talonic_get_agent_task and is recorded as an audited disclosure."
|
|
3125
|
+
},
|
|
3126
|
+
{
|
|
3127
|
+
question: "What do the Agent task statuses mean?",
|
|
3128
|
+
answer: "available means no one holds the task; claimed means an agent holds a live lease; submitted means outputs were accepted and the document resumed; timed_out means the stage's deadline passed without a submission; cancelled means the platform withdrew the task, for example because the document was removed or the stage was reconfigured."
|
|
3129
|
+
},
|
|
3130
|
+
{
|
|
3131
|
+
question: "How does pagination work on the Agent-task worklist?",
|
|
3132
|
+
answer: "Pass limit (1-100, default 50) to size the page. When pagination.has_more is true, pass the opaque pagination.next_cursor value as cursor on the next call. Cursors encode a position, not a filter, so keep the same status filter across pages."
|
|
3025
3133
|
}
|
|
3026
3134
|
],
|
|
3027
3135
|
mentions: ["Agent stage", "worklist", "MCP agent", "cursor pagination"]
|
|
@@ -3030,13 +3138,21 @@ Payment terms: Net 30`
|
|
|
3030
3138
|
slug: "talonic-get-agent-task",
|
|
3031
3139
|
parentSlug: "tools",
|
|
3032
3140
|
title: "talonic_get_agent_task",
|
|
3033
|
-
seoTitle: "talonic_get_agent_task
|
|
3034
|
-
description: "
|
|
3141
|
+
seoTitle: "talonic_get_agent_task \u2014 Fetch an Agent Task's Payload",
|
|
3142
|
+
description: "MCP tool that fetches one Agent task's immutable input snapshot, instructions, and declared output contract. Every payload fetch is an audited disclosure.",
|
|
3035
3143
|
content: [
|
|
3036
3144
|
{
|
|
3037
3145
|
type: "paragraph",
|
|
3038
3146
|
text: "Fetch the immutable input snapshot captured when one document reached an Agent stage. The payload also carries stage instructions, timeout policy, and the only output fields the agent may return."
|
|
3039
3147
|
},
|
|
3148
|
+
{
|
|
3149
|
+
type: "paragraph",
|
|
3150
|
+
text: "The payload extends the metadata from `talonic_list_agent_tasks` with four fields. `input_snapshot` is the frozen view of the document's extracted data at the moment it entered the stage \u2014 later edits to the document do not leak into a running task. `output_contract` declares every field the agent may submit, each with a key, a `dataType`, and a `required` flag. `instructions` is the stage author's free-text brief. `timeout_fallthrough` (`hold`, `skip`, or `route_to_review`) says what happens to the document if nobody submits before `timeout_at`."
|
|
3151
|
+
},
|
|
3152
|
+
{
|
|
3153
|
+
type: "paragraph",
|
|
3154
|
+
text: "Fetching a task does not lease it: another agent can still claim the work while you are reading it. Treat get as the inspection step \u2014 confirm the instructions and contract are something you can actually fulfil \u2014 then take the lease with `talonic_claim_agent_task` before doing any real processing. If a claim races you to it, pick another task from the list rather than waiting on that one."
|
|
3155
|
+
},
|
|
3040
3156
|
{
|
|
3041
3157
|
type: "param-table",
|
|
3042
3158
|
params: [
|
|
@@ -3048,6 +3164,16 @@ Payment terms: Net 30`
|
|
|
3048
3164
|
}
|
|
3049
3165
|
]
|
|
3050
3166
|
},
|
|
3167
|
+
{
|
|
3168
|
+
type: "code",
|
|
3169
|
+
language: "json",
|
|
3170
|
+
title: "Tool input",
|
|
3171
|
+
code: `{ "task_id": "11111111-1111-4111-8111-111111111111" }`
|
|
3172
|
+
},
|
|
3173
|
+
{
|
|
3174
|
+
type: "paragraph",
|
|
3175
|
+
text: "Payload access is deliberately narrow. The worklist never includes snapshots, and each `talonic_get_agent_task` call is recorded as an audited disclosure of that document's data to the calling credential. Fetch payloads for tasks you actually intend to process rather than sweeping the queue \u2014 it keeps the audit trail meaningful and avoids disclosing document contents your workflow never needed."
|
|
3176
|
+
},
|
|
3051
3177
|
{
|
|
3052
3178
|
type: "code",
|
|
3053
3179
|
language: "json",
|
|
@@ -3077,6 +3203,14 @@ Payment terms: Net 30`
|
|
|
3077
3203
|
{
|
|
3078
3204
|
question: "Can the snapshot change while an agent processes it?",
|
|
3079
3205
|
answer: "No. It is captured when the document enters the Agent stage and remains immutable for that task. Results are validated against the accompanying output_contract."
|
|
3206
|
+
},
|
|
3207
|
+
{
|
|
3208
|
+
question: "Does fetching an Agent task claim it?",
|
|
3209
|
+
answer: "No. talonic_get_agent_task is read-only; the task stays available and another agent can claim it while you inspect. Call talonic_claim_agent_task to take the lease before processing."
|
|
3210
|
+
},
|
|
3211
|
+
{
|
|
3212
|
+
question: "What does timeout_fallthrough mean?",
|
|
3213
|
+
answer: "It is the stage's policy for a task nobody submits before timeout_at: hold keeps the document parked, skip lets the document continue without the agent outputs, and route_to_review sends it to human review. Use it to judge how urgent a task is."
|
|
3080
3214
|
}
|
|
3081
3215
|
],
|
|
3082
3216
|
mentions: ["immutable snapshot", "output contract", "audit trail", "document task"]
|
|
@@ -3085,13 +3219,17 @@ Payment terms: Net 30`
|
|
|
3085
3219
|
slug: "talonic-claim-agent-task",
|
|
3086
3220
|
parentSlug: "tools",
|
|
3087
3221
|
title: "talonic_claim_agent_task",
|
|
3088
|
-
seoTitle: "talonic_claim_agent_task
|
|
3089
|
-
description: "
|
|
3222
|
+
seoTitle: "talonic_claim_agent_task \u2014 Lease an Agent Task Safely",
|
|
3223
|
+
description: "MCP tool that claims an available Agent task before processing. Returns the payload plus an execution epoch and lease so two agents never collide on a task.",
|
|
3090
3224
|
content: [
|
|
3091
3225
|
{
|
|
3092
3226
|
type: "paragraph",
|
|
3093
3227
|
text: "Claim a task before processing. A successful claim returns the full payload plus a new `execution_epoch` and `lease_expires_at`; both prevent two agents from writing results for the same task."
|
|
3094
3228
|
},
|
|
3229
|
+
{
|
|
3230
|
+
type: "paragraph",
|
|
3231
|
+
text: "The claim is the concurrency boundary of the Agent-task workflow. Listing and fetching are read-only and race-free; the moment real work starts, exactly one actor must own the task. The lease makes ownership crash-safe \u2014 if the claimant dies, the lease simply expires and the task becomes reclaimable \u2014 while the epoch makes ownership unambiguous: whichever claim is newest wins, and everything an older claimant tries to write afterwards is rejected."
|
|
3232
|
+
},
|
|
3095
3233
|
{
|
|
3096
3234
|
type: "param-table",
|
|
3097
3235
|
params: [
|
|
@@ -3103,6 +3241,22 @@ Payment terms: Net 30`
|
|
|
3103
3241
|
}
|
|
3104
3242
|
]
|
|
3105
3243
|
},
|
|
3244
|
+
{
|
|
3245
|
+
type: "code",
|
|
3246
|
+
language: "json",
|
|
3247
|
+
title: "Tool input and response (payload fields elided)",
|
|
3248
|
+
code: `// talonic_claim_agent_task({ "task_id": "11111111-1111-4111-8111-111111111111" })
|
|
3249
|
+
{
|
|
3250
|
+
"id": "11111111-1111-4111-8111-111111111111",
|
|
3251
|
+
"status": "claimed",
|
|
3252
|
+
"execution_epoch": 2,
|
|
3253
|
+
"claimed_at": "2026-08-29T10:00:00.000Z",
|
|
3254
|
+
"lease_expires_at": "2026-08-29T10:10:00.000Z",
|
|
3255
|
+
"input_snapshot": { "...": "full payload, same shape as talonic_get_agent_task" },
|
|
3256
|
+
"output_contract": [{ "key": "risk_score", "dataType": "number", "required": true }],
|
|
3257
|
+
"instructions": "Assess supplier risk from the supplied evidence."
|
|
3258
|
+
}`
|
|
3259
|
+
},
|
|
3106
3260
|
{
|
|
3107
3261
|
type: "callout",
|
|
3108
3262
|
variant: "warning",
|
|
@@ -3111,6 +3265,10 @@ Payment terms: Net 30`
|
|
|
3111
3265
|
{
|
|
3112
3266
|
type: "paragraph",
|
|
3113
3267
|
text: "Save the returned `execution_epoch`. Every heartbeat and submit must echo that exact epoch. Reclaiming an expired lease increments it, permanently invalidating work from the earlier claimant."
|
|
3268
|
+
},
|
|
3269
|
+
{
|
|
3270
|
+
type: "paragraph",
|
|
3271
|
+
text: "Because a successful claim returns the complete payload, a worker that goes straight from the list to a claim never needs a separate `talonic_get_agent_task` call \u2014 inspect-then-claim is for when you want to read before committing, claim-directly is for when the worklist row is enough. After claiming, do the work, heartbeat if the lease is running short, and finish with a single `talonic_submit_agent_task` call."
|
|
3114
3272
|
}
|
|
3115
3273
|
],
|
|
3116
3274
|
related: [
|
|
@@ -3121,6 +3279,14 @@ Payment terms: Net 30`
|
|
|
3121
3279
|
{
|
|
3122
3280
|
question: "What is an execution epoch?",
|
|
3123
3281
|
answer: "It is the claim generation. Each successful claim or reclaim receives a new integer; stale epochs are rejected so an expired worker cannot overwrite a newer worker's result."
|
|
3282
|
+
},
|
|
3283
|
+
{
|
|
3284
|
+
question: "Can I claim a task that is already claimed?",
|
|
3285
|
+
answer: "Only once its lease has expired. A live claim by another actor returns HTTP 409; after lease_expires_at passes without a heartbeat, the same claim call succeeds as a reclaim and increments the execution epoch."
|
|
3286
|
+
},
|
|
3287
|
+
{
|
|
3288
|
+
question: "What happens if I claim a task and never finish it?",
|
|
3289
|
+
answer: "Nothing is written. The lease expires, the task becomes reclaimable, and if timeout_at passes with no submission the stage's timeout_fallthrough policy (hold, skip, or route_to_review) decides what happens to the document. Abandoning a claim never corrupts data \u2014 it only delays the document."
|
|
3124
3290
|
}
|
|
3125
3291
|
],
|
|
3126
3292
|
mentions: ["claim lease", "execution epoch", "conflict", "reclaim"]
|
|
@@ -3129,13 +3295,41 @@ Payment terms: Net 30`
|
|
|
3129
3295
|
slug: "talonic-heartbeat-agent-task",
|
|
3130
3296
|
parentSlug: "tools",
|
|
3131
3297
|
title: "talonic_heartbeat_agent_task",
|
|
3132
|
-
seoTitle: "talonic_heartbeat_agent_task
|
|
3133
|
-
description: "
|
|
3298
|
+
seoTitle: "talonic_heartbeat_agent_task \u2014 Keep a Task Lease Alive",
|
|
3299
|
+
description: "MCP tool that extends the lease on a claimed Agent task using its execution epoch, so long-running work is not reassigned to another agent mid-processing.",
|
|
3134
3300
|
content: [
|
|
3135
3301
|
{
|
|
3136
3302
|
type: "paragraph",
|
|
3137
3303
|
text: "Extend the lease for a task you already claimed. Heartbeat before `lease_expires_at` when processing may take longer than the remaining lease window."
|
|
3138
3304
|
},
|
|
3305
|
+
{
|
|
3306
|
+
type: "paragraph",
|
|
3307
|
+
text: "A heartbeat is a cheap, targeted call: it echoes the `task_id` and the `execution_epoch` from your claim, and the platform pushes `lease_expires_at` forward. The response is the task's refreshed metadata \u2014 no payload \u2014 so the field to read is the new `lease_expires_at`, which becomes your next deadline. Heartbeat only while genuine processing is under way; a worker that heartbeats forever without submitting is indistinguishable from a stuck one and holds the document hostage until `timeout_at`."
|
|
3308
|
+
},
|
|
3309
|
+
{
|
|
3310
|
+
type: "code",
|
|
3311
|
+
language: "json",
|
|
3312
|
+
title: "Tool input and response (metadata only)",
|
|
3313
|
+
code: `// talonic_heartbeat_agent_task({
|
|
3314
|
+
// "task_id": "11111111-1111-4111-8111-111111111111",
|
|
3315
|
+
// "execution_epoch": 2
|
|
3316
|
+
// })
|
|
3317
|
+
{
|
|
3318
|
+
"id": "11111111-1111-4111-8111-111111111111",
|
|
3319
|
+
"status": "claimed",
|
|
3320
|
+
"execution_epoch": 2,
|
|
3321
|
+
"lease_expires_at": "2026-08-29T10:20:00.000Z",
|
|
3322
|
+
"timeout_at": "2026-08-30T12:00:00.000Z"
|
|
3323
|
+
}`
|
|
3324
|
+
},
|
|
3325
|
+
{
|
|
3326
|
+
type: "paragraph",
|
|
3327
|
+
text: "Treat a failed heartbeat as a hard stop. HTTP 409 means the epoch is stale \u2014 the lease lapsed and someone reclaimed the task \u2014 so any result you were computing now belongs to a claim that no longer exists and will be rejected on submit. Discard the work, return to `talonic_list_agent_tasks`, and pick up something new rather than racing the current owner."
|
|
3328
|
+
},
|
|
3329
|
+
{
|
|
3330
|
+
type: "paragraph",
|
|
3331
|
+
text: "The lease and the stage timeout are separate clocks. Heartbeats move `lease_expires_at`, which governs who owns the task; they never move `timeout_at`, the stage-level deadline after which the platform applies the task's `timeout_fallthrough` policy. A worker can therefore hold a perfectly healthy lease and still lose the task to a stage timeout if processing drags on too long \u2014 budget the work against `timeout_at`, not just the lease."
|
|
3332
|
+
},
|
|
3139
3333
|
{
|
|
3140
3334
|
type: "param-table",
|
|
3141
3335
|
params: [
|
|
@@ -3167,6 +3361,14 @@ Payment terms: Net 30`
|
|
|
3167
3361
|
{
|
|
3168
3362
|
question: "How often should an agent heartbeat?",
|
|
3169
3363
|
answer: "Only when needed, comfortably before lease_expires_at. Use the updated lease expiry returned by each successful heartbeat rather than a fixed client-side assumption."
|
|
3364
|
+
},
|
|
3365
|
+
{
|
|
3366
|
+
question: "What does a heartbeat return?",
|
|
3367
|
+
answer: "The task's refreshed metadata, including the new lease_expires_at and the current execution_epoch. It never returns the payload \u2014 the input snapshot was already delivered by the claim."
|
|
3368
|
+
},
|
|
3369
|
+
{
|
|
3370
|
+
question: "My heartbeat returned HTTP 409 \u2014 can I still submit?",
|
|
3371
|
+
answer: "No. A 409 means your execution epoch is stale: the lease expired and the task was reclaimed or withdrawn. Submits with that epoch will also be rejected, so discard the in-flight work and claim a different task."
|
|
3170
3372
|
}
|
|
3171
3373
|
],
|
|
3172
3374
|
mentions: ["heartbeat", "lease expiry", "execution epoch", "long-running task"]
|
|
@@ -3175,13 +3377,17 @@ Payment terms: Net 30`
|
|
|
3175
3377
|
slug: "talonic-submit-agent-task",
|
|
3176
3378
|
parentSlug: "tools",
|
|
3177
3379
|
title: "talonic_submit_agent_task",
|
|
3178
|
-
seoTitle: "talonic_submit_agent_task
|
|
3179
|
-
description: "
|
|
3380
|
+
seoTitle: "talonic_submit_agent_task \u2014 Submit Typed Task Outputs",
|
|
3381
|
+
description: "MCP tool that submits declared, typed outputs for a claimed Agent task in one transaction, validated against the output contract, resuming the document.",
|
|
3180
3382
|
content: [
|
|
3181
3383
|
{
|
|
3182
3384
|
type: "paragraph",
|
|
3183
3385
|
text: "Return the result of a claimed Agent task. Output keys must match `output_contract` exactly, required fields must be present, and every value must match its declared data type. The platform validates the entire result before writing any cell."
|
|
3184
3386
|
},
|
|
3387
|
+
{
|
|
3388
|
+
type: "paragraph",
|
|
3389
|
+
text: "Submit is the last call of the pull workflow \u2014 list, get, claim, heartbeat, submit \u2014 and the only one that changes the document. It requires the `task_id` plus the exact `execution_epoch` from your claim; a stale epoch is rejected with HTTP 409 just as it is on heartbeats, which is what makes the workflow safe to run from several workers at once."
|
|
3390
|
+
},
|
|
3185
3391
|
{
|
|
3186
3392
|
type: "param-table",
|
|
3187
3393
|
params: [
|
|
@@ -3222,6 +3428,14 @@ Payment terms: Net 30`
|
|
|
3222
3428
|
"summary": "Supplier requires enhanced review."
|
|
3223
3429
|
}`
|
|
3224
3430
|
},
|
|
3431
|
+
{
|
|
3432
|
+
type: "paragraph",
|
|
3433
|
+
text: "Validation is all-or-nothing. Every output key must exist in the task's `output_contract`, every `required` field must be present, and every `value` must match its declared data type. If any check fails, the platform rejects the whole submission and writes nothing \u2014 there is no partially-filled result to clean up. On success the task's status moves to `submitted`, the response returns the task's metadata, and the parked document resumes through the rest of its pipeline with your values in place."
|
|
3434
|
+
},
|
|
3435
|
+
{
|
|
3436
|
+
type: "paragraph",
|
|
3437
|
+
text: "The optional `confidence` (0\u20131) and `reasoning` (up to 4,000 characters) accompany each value into the document's audit trail, and `summary` describes the result as a whole. Filling them in is worth the tokens: reviewers see them next to the value when deciding whether to trust it, and they are the only trace of why the agent answered as it did once the conversation that produced the answer is gone."
|
|
3438
|
+
},
|
|
3225
3439
|
{
|
|
3226
3440
|
type: "callout",
|
|
3227
3441
|
text: "Successful outputs are attributed to `AI Agent (MCP)` in the audit trail and stored with `mcp_agent` provenance. They do not receive human-review authority in v1."
|
|
@@ -3229,145 +3443,1474 @@ Payment terms: Net 30`
|
|
|
3229
3443
|
],
|
|
3230
3444
|
related: [
|
|
3231
3445
|
{ label: "talonic_get_agent_task", slug: "talonic-get-agent-task" },
|
|
3446
|
+
{ label: "talonic_claim_agent_task", slug: "talonic-claim-agent-task" },
|
|
3232
3447
|
{ label: "talonic_heartbeat_agent_task", slug: "talonic-heartbeat-agent-task" }
|
|
3233
3448
|
],
|
|
3234
3449
|
faq: [
|
|
3235
3450
|
{
|
|
3236
3451
|
question: "Can an Agent task return extra fields it discovered?",
|
|
3237
3452
|
answer: "No. Undeclared fields and invalid types are rejected before any value is written. Add desired outputs to the Agent stage contract first, then run a new document task."
|
|
3453
|
+
},
|
|
3454
|
+
{
|
|
3455
|
+
question: "What happens if my submission fails validation?",
|
|
3456
|
+
answer: "Nothing is written \u2014 the submit is transactional. The task stays claimed under your execution epoch, so fix the outputs to match the contract and submit again before the lease expires."
|
|
3457
|
+
},
|
|
3458
|
+
{
|
|
3459
|
+
question: "Can I resubmit or amend after a successful submit?",
|
|
3460
|
+
answer: "No. A successful submit is terminal for that task: the status becomes submitted and the document resumes. Corrections happen downstream \u2014 in review or by rerunning the document \u2014 not by a second submit."
|
|
3238
3461
|
}
|
|
3239
3462
|
],
|
|
3240
3463
|
mentions: ["transactional submit", "AI Agent (MCP)", "mcp_agent", "typed outputs"]
|
|
3241
|
-
}
|
|
3242
|
-
];
|
|
3243
|
-
|
|
3244
|
-
// src/content/sections/features.ts
|
|
3245
|
-
var sections4 = [
|
|
3464
|
+
},
|
|
3246
3465
|
{
|
|
3247
|
-
slug: "
|
|
3248
|
-
parentSlug: "
|
|
3249
|
-
title: "
|
|
3250
|
-
seoTitle: "
|
|
3251
|
-
description: "
|
|
3466
|
+
slug: "talonic-list-decision-tasks",
|
|
3467
|
+
parentSlug: "tools",
|
|
3468
|
+
title: "talonic_list_decision_tasks",
|
|
3469
|
+
seoTitle: "talonic_list_decision_tasks \u2014 External-Mode App Inbox",
|
|
3470
|
+
description: "MCP tool that lists one External-mode app's decision tasks \u2014 runs parked for an outside agent to decide \u2014 with status filters and cursor pagination, metadata only.",
|
|
3252
3471
|
content: [
|
|
3253
3472
|
{
|
|
3254
3473
|
type: "paragraph",
|
|
3255
|
-
text: "
|
|
3256
|
-
},
|
|
3257
|
-
{
|
|
3258
|
-
type: "paragraph",
|
|
3259
|
-
text: "`@talonic/mcp@0.1.4` and later solve this by accepting **`file_data`** (base64-encoded file bytes) and **`filename`** on `talonic_extract` and `talonic_to_markdown`. The agent reads the file bytes from the conversation, base64-encodes them, and passes them through the MCP tool call. The MCP server decodes, infers MIME type from the filename, and uploads to the Talonic API."
|
|
3474
|
+
text: "List the decision tasks of one Talonic App, newest first. A decision task is how an **External-mode** app hands a run's decision to an agent outside the platform: the run assembles its input package, freezes it, enters `awaiting_decision`, and offers a task. This tool is the polling alternative to the `app.decision_task.offered` webhook and the entry point of the decision workflow."
|
|
3260
3475
|
},
|
|
3261
3476
|
{
|
|
3262
3477
|
type: "paragraph",
|
|
3263
|
-
text: "
|
|
3478
|
+
text: "Each row in `data[]` carries identifiers (`id`, `run_id`, `app_id`), the lifecycle `status`, the current `execution_epoch`, the lease settings (`lease_seconds`, `claimed_by`, `claimed_at`, `lease_expires_at`, `heartbeat_at`), the hard `sla_deadline_at`, and `submitted_at` / `created_at`. The input package is never inlined here: it is read page by page after a claim, and every page read is journaled onto the run."
|
|
3264
3479
|
},
|
|
3265
3480
|
{
|
|
3266
|
-
type: "
|
|
3267
|
-
text:
|
|
3481
|
+
type: "callout",
|
|
3482
|
+
text: 'Every one of these tools runs at the platform\'s `decide` tier. A `tlnc_` workspace API key needs a `decide` grant on the app. An OAuth connector session (Claude.ai) needs the `apps:decide` scope \u2014 consented in person when the connector is added, never pre-consented \u2014 plus a live workspace role of `senior_member` or above; the claim is then recorded as the client acting for that person ("Claude for Jane Doe"). Web sessions are refused. A 403 names what is missing (`decide_grant_required`, `insufficient_scope`, `insufficient_tier`); the agent should report it rather than retry.'
|
|
3268
3483
|
},
|
|
3269
3484
|
{
|
|
3270
3485
|
type: "heading",
|
|
3271
3486
|
level: 3,
|
|
3272
|
-
id: "
|
|
3273
|
-
text: "
|
|
3487
|
+
id: "list-decision-tasks-workflow",
|
|
3488
|
+
text: "The decision workflow"
|
|
3274
3489
|
},
|
|
3275
3490
|
{
|
|
3276
|
-
type: "
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3491
|
+
type: "list",
|
|
3492
|
+
ordered: true,
|
|
3493
|
+
items: [
|
|
3494
|
+
'Call `talonic_list_decision_tasks` with the `app_id` and `status: "available"`.',
|
|
3495
|
+
"Claim a task with `talonic_claim_decision_task`; the claim returns the output contract, precedents and the package descriptor.",
|
|
3496
|
+
"Read the frozen input package with `talonic_read_decision_package`, page by page from `package.first_cursor`.",
|
|
3497
|
+
"Heartbeat with `talonic_heartbeat_decision_task` while deciding, then finish with `talonic_submit_decision_task` \u2014 or `talonic_release_decision_task` / `talonic_fail_decision_task`."
|
|
3498
|
+
]
|
|
3499
|
+
},
|
|
3500
|
+
{
|
|
3501
|
+
type: "param-table",
|
|
3502
|
+
params: [
|
|
3503
|
+
{
|
|
3504
|
+
name: "app_id",
|
|
3505
|
+
type: "UUID",
|
|
3506
|
+
required: true,
|
|
3507
|
+
description: "The External-mode app whose inbox to read."
|
|
3508
|
+
},
|
|
3509
|
+
{
|
|
3510
|
+
name: "status",
|
|
3511
|
+
type: "available | claimed | submitted | released | failed | timed_out | cancelled",
|
|
3512
|
+
description: "Optional lifecycle-state filter. Start with `available` when looking for work."
|
|
3513
|
+
},
|
|
3514
|
+
{
|
|
3515
|
+
name: "limit",
|
|
3516
|
+
type: "integer",
|
|
3517
|
+
description: "Page size from 1 to 100. Defaults to 50."
|
|
3518
|
+
},
|
|
3519
|
+
{
|
|
3520
|
+
name: "cursor",
|
|
3521
|
+
type: "string",
|
|
3522
|
+
description: "Opaque `pagination.next_cursor` from the previous page."
|
|
3523
|
+
}
|
|
3524
|
+
]
|
|
3296
3525
|
},
|
|
3297
3526
|
{
|
|
3298
3527
|
type: "code",
|
|
3299
3528
|
language: "json",
|
|
3300
|
-
title: "
|
|
3301
|
-
code:
|
|
3302
|
-
|
|
3303
|
-
"
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3529
|
+
title: "Tool input and response",
|
|
3530
|
+
code: `// talonic_list_decision_tasks({ "app_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa", "status": "available", "limit": 1 })
|
|
3531
|
+
{
|
|
3532
|
+
"data": [
|
|
3533
|
+
{
|
|
3534
|
+
"id": "11111111-1111-4111-8111-111111111111",
|
|
3535
|
+
"customer_id": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
|
|
3536
|
+
"run_id": "22222222-2222-4222-8222-222222222222",
|
|
3537
|
+
"app_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
|
|
3538
|
+
"status": "available",
|
|
3539
|
+
"execution_epoch": 0,
|
|
3540
|
+
"input_package_ref": "run",
|
|
3541
|
+
"lease_seconds": 120,
|
|
3542
|
+
"claimed_by": null,
|
|
3543
|
+
"claimed_at": null,
|
|
3544
|
+
"lease_expires_at": null,
|
|
3545
|
+
"heartbeat_at": null,
|
|
3546
|
+
"sla_deadline_at": "2026-09-22T10:10:00.000Z",
|
|
3547
|
+
"submitted_at": null,
|
|
3548
|
+
"created_at": "2026-09-22T10:00:00.000Z",
|
|
3549
|
+
"updated_at": "2026-09-22T10:00:00.000Z"
|
|
3550
|
+
}
|
|
3551
|
+
],
|
|
3552
|
+
"pagination": { "has_more": false, "next_cursor": null }
|
|
3316
3553
|
}`
|
|
3317
3554
|
},
|
|
3318
3555
|
{
|
|
3319
3556
|
type: "paragraph",
|
|
3320
|
-
text: "
|
|
3321
|
-
},
|
|
3322
|
-
{
|
|
3323
|
-
type: "paragraph",
|
|
3324
|
-
text: "This `file_data` path works without limit in local-stdio installs (Claude Desktop, Cursor, Cline, Continue, Cowork). It does **not** work in the **Claude.ai hosted connector**, which caps tool-call arguments at ~32 KB decoded (~43 KB base64, measured against production) \u2014 a real PDF is silently truncated. In hosted connectors, use **`talonic_request_upload`**: it returns a browser link (`https://app.talonic.com/u/<token>`) the user opens to drop the file, after which the agent polls `talonic_get_document` until `status` is `completed` and then calls `talonic_extract` by `document_id`. `file_url` (a publicly reachable URL) and a pre-uploaded `document_id` also work."
|
|
3325
|
-
},
|
|
3326
|
-
{
|
|
3327
|
-
type: "callout",
|
|
3328
|
-
text: "Tool descriptions advertise `file_data` as the recommended input for chat-style clients, so well-trained agents reach for it automatically. No client-side configuration required."
|
|
3557
|
+
text: "`sla_deadline_at` is the decision SLA (default 10 minutes, configurable per app): if no valid decision arrives by then, the platform applies the app's declared fallback policy \u2014 a resident rule set decides, the run parks as a system-raised review, or the run fails. Filtering by `claimed` or `timed_out` is useful for supervision; a task whose lease expired is eligible for reclaiming."
|
|
3329
3558
|
}
|
|
3330
3559
|
],
|
|
3331
3560
|
related: [
|
|
3332
|
-
{ label: "
|
|
3333
|
-
{ label: "
|
|
3334
|
-
{ label: "
|
|
3561
|
+
{ label: "talonic_claim_decision_task", slug: "talonic-claim-decision-task" },
|
|
3562
|
+
{ label: "talonic_read_decision_package", slug: "talonic-read-decision-package" },
|
|
3563
|
+
{ label: "talonic_submit_decision_task", slug: "talonic-submit-decision-task" },
|
|
3564
|
+
{ label: "talonic_list_agent_tasks", slug: "talonic-list-agent-tasks" }
|
|
3335
3565
|
],
|
|
3336
3566
|
faq: [
|
|
3337
3567
|
{
|
|
3338
|
-
question: "
|
|
3339
|
-
answer: "
|
|
3340
|
-
},
|
|
3341
|
-
{
|
|
3342
|
-
question: "What file types can I drag and drop?",
|
|
3343
|
-
answer: "PDF, PNG, JPG, TIFF, DOCX, XLSX, and other common document formats. The MCP server infers the MIME type from the filename extension."
|
|
3344
|
-
},
|
|
3345
|
-
{
|
|
3346
|
-
question: "Why does drag-and-drop fail with an unsupported_file_type error?",
|
|
3347
|
-
answer: "The filename is missing a recognisable extension. Make sure the original filename with its extension is passed in the filename parameter alongside file_data."
|
|
3568
|
+
question: "How is a decision task different from an Agent task?",
|
|
3569
|
+
answer: "An Agent task parks one document at a pipeline stage and asks for declared output fields. A decision task parks one App run and asks for the run's decision: the outcome is validated against the app's output contract, must cite evidence from the frozen input package, and is written to the app's ledger with decided_by.type external_agent. The two protocols share the lease, heartbeat and execution-epoch mechanics."
|
|
3348
3570
|
},
|
|
3349
3571
|
{
|
|
3350
|
-
question: "
|
|
3351
|
-
answer: "
|
|
3572
|
+
question: "Why does the tool return 403, or show as NOT INVOCABLE IN THIS SESSION?",
|
|
3573
|
+
answer: "The decide tier is an independent grant: operate does not imply it. A tlnc_ key needs a decide grant on that app, granted by a workspace owner. An OAuth connector session needs the apps:decide scope and a senior_member role or above, read live on every call. If the connector was added before the scope existed, its token lacks it: the hosted server then lists the seven tools marked NOT INVOCABLE IN THIS SESSION, and the fix is to remove and re-add the Talonic connector so the consent screen offers 'Claim and decide tasks'."
|
|
3352
3574
|
},
|
|
3353
3575
|
{
|
|
3354
|
-
question: "
|
|
3355
|
-
answer: "
|
|
3576
|
+
question: "What do the decision task statuses mean?",
|
|
3577
|
+
answer: "available means no one holds the task; claimed means an agent holds a live lease; submitted means a decision was accepted and the run resumed; released means the claimant gave it back (it returns to available); failed means the claimant declared it undecidable and the fallback applied; timed_out means the SLA passed; cancelled means the run was cancelled or the task withdrawn."
|
|
3356
3578
|
}
|
|
3357
3579
|
],
|
|
3358
|
-
mentions: [
|
|
3580
|
+
mentions: [
|
|
3581
|
+
"decision task",
|
|
3582
|
+
"External mode",
|
|
3583
|
+
"Talonic Apps",
|
|
3584
|
+
"decide grant",
|
|
3585
|
+
"cursor pagination"
|
|
3586
|
+
]
|
|
3359
3587
|
},
|
|
3360
3588
|
{
|
|
3361
|
-
slug: "
|
|
3362
|
-
parentSlug: "
|
|
3363
|
-
title: "
|
|
3364
|
-
seoTitle: "
|
|
3365
|
-
description: "
|
|
3589
|
+
slug: "talonic-claim-decision-task",
|
|
3590
|
+
parentSlug: "tools",
|
|
3591
|
+
title: "talonic_claim_decision_task",
|
|
3592
|
+
seoTitle: "talonic_claim_decision_task \u2014 Lease a Run's Decision",
|
|
3593
|
+
description: "MCP tool that claims an External-mode decision task and returns the decision bundle: task metadata with a fresh execution epoch, the output contract, precedents and the package descriptor.",
|
|
3366
3594
|
content: [
|
|
3367
3595
|
{
|
|
3368
|
-
type: "
|
|
3369
|
-
|
|
3370
|
-
|
|
3596
|
+
type: "paragraph",
|
|
3597
|
+
text: "Take the exclusive lease on a decision task. A successful claim bumps `execution_epoch`, sets `lease_expires_at`, and returns everything needed to decide except the records themselves: the `task` metadata, the `output_contract` the decision must satisfy, the `precedents` reference block (resolved reviews on similar runs), and a `package` descriptor."
|
|
3598
|
+
},
|
|
3599
|
+
{
|
|
3600
|
+
type: "paragraph",
|
|
3601
|
+
text: "There is no separate fetch step in this protocol: claiming **is** the payload disclosure, and it is journaled onto the run. The claim is an exclusive lease with a default TTL of 120 seconds (configurable per app), clamped by the task's SLA deadline. A task whose lease lapsed can be reclaimed; the epoch moves on and the previous claimant's submit is rejected."
|
|
3602
|
+
},
|
|
3603
|
+
{
|
|
3604
|
+
type: "param-table",
|
|
3605
|
+
params: [
|
|
3606
|
+
{
|
|
3607
|
+
name: "task_id",
|
|
3608
|
+
type: "UUID",
|
|
3609
|
+
required: true,
|
|
3610
|
+
description: "Task ID from `talonic_list_decision_tasks` or the offered webhook."
|
|
3611
|
+
}
|
|
3612
|
+
]
|
|
3613
|
+
},
|
|
3614
|
+
{
|
|
3615
|
+
type: "code",
|
|
3616
|
+
language: "json",
|
|
3617
|
+
title: "Claim response",
|
|
3618
|
+
code: `// talonic_claim_decision_task({ "task_id": "11111111-1111-4111-8111-111111111111" })
|
|
3619
|
+
{
|
|
3620
|
+
"task": {
|
|
3621
|
+
"id": "11111111-1111-4111-8111-111111111111",
|
|
3622
|
+
"run_id": "22222222-2222-4222-8222-222222222222",
|
|
3623
|
+
"app_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
|
|
3624
|
+
"status": "claimed",
|
|
3625
|
+
"execution_epoch": 1,
|
|
3626
|
+
"lease_seconds": 120,
|
|
3627
|
+
"claimed_by": "kkkkkkkk-kkkk-4kkk-8kkk-kkkkkkkkkkkk",
|
|
3628
|
+
"lease_expires_at": "2026-09-22T10:02:00.000Z",
|
|
3629
|
+
"sla_deadline_at": "2026-09-22T10:10:00.000Z",
|
|
3630
|
+
"...": "remaining metadata as in the list"
|
|
3631
|
+
},
|
|
3632
|
+
"output_contract": {
|
|
3633
|
+
"type": "object",
|
|
3634
|
+
"required": ["approve"],
|
|
3635
|
+
"properties": {
|
|
3636
|
+
"approve": { "type": "boolean" },
|
|
3637
|
+
"hold_reason": { "type": "string" }
|
|
3638
|
+
}
|
|
3639
|
+
},
|
|
3640
|
+
"precedents": [],
|
|
3641
|
+
"package": {
|
|
3642
|
+
"package_kind": "records",
|
|
3643
|
+
"record_count": 3,
|
|
3644
|
+
"page_size": 500,
|
|
3645
|
+
"first_cursor": "eyJvZmZzZXQiOjB9",
|
|
3646
|
+
"documents": [
|
|
3647
|
+
{
|
|
3648
|
+
"document_id": "dddddddd-dddd-4ddd-8ddd-dddddddddddd",
|
|
3649
|
+
"filename": "invoice-4711.pdf",
|
|
3650
|
+
"mime_type": "application/pdf",
|
|
3651
|
+
"file_url": "/v1/documents/dddddddd-dddd-4ddd-8ddd-dddddddddddd/file"
|
|
3652
|
+
}
|
|
3653
|
+
]
|
|
3654
|
+
}
|
|
3655
|
+
}`
|
|
3656
|
+
},
|
|
3657
|
+
{
|
|
3658
|
+
type: "paragraph",
|
|
3659
|
+
text: "`output_contract` arrives in the manifest's own convention: a plain contract is the bare JSON Schema the `outcome` validates against; a `verdict_matrix` or `record_set` contract is wrapped with its `kind` so the agent knows which envelope to submit. `package.first_cursor` is `null` when the package has no records. `package_kind` is `mining_round` for a rule-mining round driven from outside, whose package is one record holding the round's prompts and tool listing."
|
|
3660
|
+
},
|
|
3661
|
+
{
|
|
3662
|
+
type: "callout",
|
|
3663
|
+
text: "Save `execution_epoch` from the claim. Heartbeat, submit, release and fail all require it; a stale epoch is HTTP 409 and never enters the ledger."
|
|
3664
|
+
}
|
|
3665
|
+
],
|
|
3666
|
+
related: [
|
|
3667
|
+
{ label: "talonic_read_decision_package", slug: "talonic-read-decision-package" },
|
|
3668
|
+
{ label: "talonic_heartbeat_decision_task", slug: "talonic-heartbeat-decision-task" },
|
|
3669
|
+
{ label: "talonic_submit_decision_task", slug: "talonic-submit-decision-task" }
|
|
3670
|
+
],
|
|
3671
|
+
faq: [
|
|
3672
|
+
{
|
|
3673
|
+
question: "Can I inspect a decision task before claiming it?",
|
|
3674
|
+
answer: "Only its metadata, through the list. The platform discloses the output contract, precedents and package only to the claimant, and journals that disclosure. Claim, read, and release it if it is not yours to decide."
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
question: "What happens when two agents claim the same task?",
|
|
3678
|
+
answer: "The second claim returns HTTP 409 while the first lease is live. Once the lease expires without a heartbeat, the task can be reclaimed; the epoch is bumped and any submit carrying the old epoch is rejected."
|
|
3679
|
+
}
|
|
3680
|
+
],
|
|
3681
|
+
mentions: ["claim", "exclusive lease", "execution epoch", "output contract", "precedents"]
|
|
3682
|
+
},
|
|
3683
|
+
{
|
|
3684
|
+
slug: "talonic-read-decision-package",
|
|
3685
|
+
parentSlug: "tools",
|
|
3686
|
+
title: "talonic_read_decision_package",
|
|
3687
|
+
seoTitle: "talonic_read_decision_package \u2014 Read a Frozen Input Package",
|
|
3688
|
+
description: "MCP tool that reads one page of a claimed decision task's frozen input package \u2014 the records and provenance locators the decision must be made from \u2014 with opaque cursor pagination.",
|
|
3689
|
+
content: [
|
|
3690
|
+
{
|
|
3691
|
+
type: "paragraph",
|
|
3692
|
+
text: "Read the run's frozen input package, one page at a time. The package was assembled and enriched when the run started and is served exactly as persisted; nothing is added at read time, so every claimant of the same task sees the same bytes. Only the client holding the live claim may read it (anyone else gets HTTP 409), and each page read journals a `package_read` event onto the run."
|
|
3693
|
+
},
|
|
3694
|
+
{
|
|
3695
|
+
type: "paragraph",
|
|
3696
|
+
text: "Each record in `data[]` is `{ binding, index, record }` \u2014 the input binding alias, the record's position within it, and the record with its cells and their provenance locators. The first page (no `cursor`) additionally carries `documents`, the source documents behind the package's cells, so a surface can offer the originals without walking every page."
|
|
3697
|
+
},
|
|
3698
|
+
{
|
|
3699
|
+
type: "param-table",
|
|
3700
|
+
params: [
|
|
3701
|
+
{ name: "task_id", type: "UUID", required: true, description: "Claimed task ID." },
|
|
3702
|
+
{
|
|
3703
|
+
name: "cursor",
|
|
3704
|
+
type: "string",
|
|
3705
|
+
description: "Opaque package cursor: `package.first_cursor` from the claim, then `pagination.next_cursor`. Omit for the first page."
|
|
3706
|
+
},
|
|
3707
|
+
{
|
|
3708
|
+
name: "limit",
|
|
3709
|
+
type: "integer",
|
|
3710
|
+
description: "Records per page, 1 to 2,000. Defaults to the platform page size reported as `package.page_size` on the claim (500 unless the deployment configures otherwise)."
|
|
3711
|
+
}
|
|
3712
|
+
]
|
|
3713
|
+
},
|
|
3714
|
+
{
|
|
3715
|
+
type: "code",
|
|
3716
|
+
language: "json",
|
|
3717
|
+
title: "First page",
|
|
3718
|
+
code: `// talonic_read_decision_package({ "task_id": "11111111-1111-4111-8111-111111111111", "limit": 2 })
|
|
3719
|
+
{
|
|
3720
|
+
"task_id": "11111111-1111-4111-8111-111111111111",
|
|
3721
|
+
"run_id": "22222222-2222-4222-8222-222222222222",
|
|
3722
|
+
"record_count": 3,
|
|
3723
|
+
"page_size": 2,
|
|
3724
|
+
"documents": [
|
|
3725
|
+
{
|
|
3726
|
+
"document_id": "dddddddd-dddd-4ddd-8ddd-dddddddddddd",
|
|
3727
|
+
"filename": "invoice-4711.pdf",
|
|
3728
|
+
"mime_type": "application/pdf",
|
|
3729
|
+
"file_url": "/v1/documents/dddddddd-dddd-4ddd-8ddd-dddddddddddd/file"
|
|
3730
|
+
}
|
|
3731
|
+
],
|
|
3732
|
+
"data": [
|
|
3733
|
+
{
|
|
3734
|
+
"binding": "invoice",
|
|
3735
|
+
"index": 0,
|
|
3736
|
+
"record": {
|
|
3737
|
+
"invoice_total": {
|
|
3738
|
+
"value": 1250.0,
|
|
3739
|
+
"locator": "dp:pppppppp-pppp-4ppp-8ppp-pppppppppppp:rrrrrrrr-rrrr-4rrr-8rrr-rrrrrrrrrrrr:invoice_total",
|
|
3740
|
+
"confidence": 0.97,
|
|
3741
|
+
"document_id": "dddddddd-dddd-4ddd-8ddd-dddddddddddd"
|
|
3742
|
+
},
|
|
3743
|
+
"supplier_name": {
|
|
3744
|
+
"value": "Acme GmbH",
|
|
3745
|
+
"locator": "dp:pppppppp-pppp-4ppp-8ppp-pppppppppppp:rrrrrrrr-rrrr-4rrr-8rrr-rrrrrrrrrrrr:supplier_name",
|
|
3746
|
+
"confidence": 0.99,
|
|
3747
|
+
"document_id": "dddddddd-dddd-4ddd-8ddd-dddddddddddd"
|
|
3748
|
+
}
|
|
3749
|
+
}
|
|
3750
|
+
}
|
|
3751
|
+
],
|
|
3752
|
+
"pagination": { "has_more": true, "next_cursor": "eyJvZmZzZXQiOjJ9" }
|
|
3753
|
+
}`
|
|
3754
|
+
},
|
|
3755
|
+
{
|
|
3756
|
+
type: "paragraph",
|
|
3757
|
+
text: "Keep the locators. The submit's `evidence` block must cite the package references the decision relied on, and the platform checks each one against this package \u2014 copy them verbatim rather than reconstructing them. Walk pages while `pagination.has_more` is true; the cursor is an offset into the frozen record order, so a walk is stable even across a release and reclaim."
|
|
3758
|
+
},
|
|
3759
|
+
{
|
|
3760
|
+
type: "callout",
|
|
3761
|
+
text: "For a rule-mining round driven from outside (`package_kind: mining_round`), the package is a single record `{ system_prompt, first_turn, tools }` \u2014 what the hosted model would have seen. The round's tools are called over the platform's REST routes; this MCP surface does not wrap them yet."
|
|
3762
|
+
}
|
|
3763
|
+
],
|
|
3764
|
+
related: [
|
|
3765
|
+
{ label: "talonic_claim_decision_task", slug: "talonic-claim-decision-task" },
|
|
3766
|
+
{ label: "talonic_submit_decision_task", slug: "talonic-submit-decision-task" }
|
|
3767
|
+
],
|
|
3768
|
+
faq: [
|
|
3769
|
+
{
|
|
3770
|
+
question: "Why does reading the package return HTTP 409?",
|
|
3771
|
+
answer: "The package is readable by the current claimant only. Either the task was never claimed by this credential, or the lease lapsed and another agent reclaimed it. Claim (or reclaim) the task first, then read."
|
|
3772
|
+
},
|
|
3773
|
+
{
|
|
3774
|
+
question: "Is reading the package a side effect?",
|
|
3775
|
+
answer: "It changes nothing in the task or run, but each page read is journaled as package_read with the offset and count, so the run's ledger shows what the deciding agent actually looked at."
|
|
3776
|
+
}
|
|
3777
|
+
],
|
|
3778
|
+
mentions: [
|
|
3779
|
+
"input package",
|
|
3780
|
+
"provenance locator",
|
|
3781
|
+
"package_read",
|
|
3782
|
+
"evidence",
|
|
3783
|
+
"cursor pagination"
|
|
3784
|
+
]
|
|
3785
|
+
},
|
|
3786
|
+
{
|
|
3787
|
+
slug: "talonic-heartbeat-decision-task",
|
|
3788
|
+
parentSlug: "tools",
|
|
3789
|
+
title: "talonic_heartbeat_decision_task",
|
|
3790
|
+
seoTitle: "talonic_heartbeat_decision_task \u2014 Keep a Decision Lease",
|
|
3791
|
+
description: "MCP tool that extends the lease on a claimed decision task using the execution epoch from the claim \u2014 never past the task's SLA deadline.",
|
|
3792
|
+
content: [
|
|
3793
|
+
{
|
|
3794
|
+
type: "paragraph",
|
|
3795
|
+
text: "Extend the lease on a claimed decision task. The lease is short by design (120 seconds by default) so an abandoned claim frees quickly; a decision that takes longer keeps its claim alive by heartbeating before `lease_expires_at`. The lease never extends past `sla_deadline_at` \u2014 that is the hard decision deadline, after which the app's fallback policy applies."
|
|
3796
|
+
},
|
|
3797
|
+
{
|
|
3798
|
+
type: "param-table",
|
|
3799
|
+
params: [
|
|
3800
|
+
{ name: "task_id", type: "UUID", required: true, description: "Claimed task ID." },
|
|
3801
|
+
{
|
|
3802
|
+
name: "execution_epoch",
|
|
3803
|
+
type: "integer",
|
|
3804
|
+
required: true,
|
|
3805
|
+
description: "Exact epoch from the current claim."
|
|
3806
|
+
}
|
|
3807
|
+
]
|
|
3808
|
+
},
|
|
3809
|
+
{
|
|
3810
|
+
type: "code",
|
|
3811
|
+
language: "json",
|
|
3812
|
+
title: "Heartbeat response",
|
|
3813
|
+
code: `// talonic_heartbeat_decision_task({ "task_id": "11111111-1111-4111-8111-111111111111", "execution_epoch": 1 })
|
|
3814
|
+
{
|
|
3815
|
+
"id": "11111111-1111-4111-8111-111111111111",
|
|
3816
|
+
"status": "claimed",
|
|
3817
|
+
"execution_epoch": 1,
|
|
3818
|
+
"heartbeat_at": "2026-09-22T10:01:30.000Z",
|
|
3819
|
+
"lease_expires_at": "2026-09-22T10:03:30.000Z",
|
|
3820
|
+
"sla_deadline_at": "2026-09-22T10:10:00.000Z",
|
|
3821
|
+
"...": "remaining metadata as in the list"
|
|
3822
|
+
}`
|
|
3823
|
+
},
|
|
3824
|
+
{
|
|
3825
|
+
type: "paragraph",
|
|
3826
|
+
text: "Treat a failed heartbeat as a hard stop. HTTP 409 means the epoch is stale \u2014 the lease lapsed and the task was reclaimed, released, cancelled or timed out \u2014 so any decision you were forming belongs to a claim that no longer exists and will be rejected on submit. Discard it and return to `talonic_list_decision_tasks`."
|
|
3827
|
+
}
|
|
3828
|
+
],
|
|
3829
|
+
related: [
|
|
3830
|
+
{ label: "talonic_claim_decision_task", slug: "talonic-claim-decision-task" },
|
|
3831
|
+
{ label: "talonic_submit_decision_task", slug: "talonic-submit-decision-task" },
|
|
3832
|
+
{ label: "talonic_release_decision_task", slug: "talonic-release-decision-task" }
|
|
3833
|
+
],
|
|
3834
|
+
faq: [
|
|
3835
|
+
{
|
|
3836
|
+
question: "How often should an agent heartbeat a decision task?",
|
|
3837
|
+
answer: "Comfortably inside the lease: with the default 120-second lease, roughly every 60 seconds while the decision is still being worked on. Stop once the task is submitted, released or failed."
|
|
3838
|
+
},
|
|
3839
|
+
{
|
|
3840
|
+
question: "Can a heartbeat extend past the SLA deadline?",
|
|
3841
|
+
answer: "No. The lease is clamped to sla_deadline_at. If the decision cannot be made before then, submit what you have with an honest confidence, release the task, or fail it with a reason so the fallback policy runs deliberately rather than by timeout."
|
|
3842
|
+
}
|
|
3843
|
+
],
|
|
3844
|
+
mentions: ["heartbeat", "lease expiry", "SLA deadline", "execution epoch"]
|
|
3845
|
+
},
|
|
3846
|
+
{
|
|
3847
|
+
slug: "talonic-submit-decision-task",
|
|
3848
|
+
parentSlug: "tools",
|
|
3849
|
+
title: "talonic_submit_decision_task",
|
|
3850
|
+
seoTitle: "talonic_submit_decision_task \u2014 Submit an Evidenced Decision",
|
|
3851
|
+
description: "MCP tool that submits the decision for a claimed External-mode task \u2014 outcome validated against the output contract, evidence checked against the frozen input package, a mandatory rationale \u2014 and resumes the run.",
|
|
3852
|
+
content: [
|
|
3853
|
+
{
|
|
3854
|
+
type: "paragraph",
|
|
3855
|
+
text: "Return the decision for a claimed task. The platform verifies three things transactionally before writing anything: the `outcome` against the task's `output_contract`, every `evidence` locator against the run's frozen input package, and the presence of a `rationale`. On success the task becomes `submitted`, the run resumes through the app's threshold checks and action layer, and the sealed record names `decided_by.type: external_agent`. Talonic writes the ledger; the agent never does."
|
|
3856
|
+
},
|
|
3857
|
+
{
|
|
3858
|
+
type: "param-table",
|
|
3859
|
+
params: [
|
|
3860
|
+
{ name: "task_id", type: "UUID", required: true, description: "Claimed task ID." },
|
|
3861
|
+
{
|
|
3862
|
+
name: "execution_epoch",
|
|
3863
|
+
type: "integer",
|
|
3864
|
+
required: true,
|
|
3865
|
+
description: "Exact epoch from the current claim."
|
|
3866
|
+
},
|
|
3867
|
+
{
|
|
3868
|
+
name: "outcome",
|
|
3869
|
+
type: "object",
|
|
3870
|
+
required: true,
|
|
3871
|
+
description: "The decision. For a plain contract, the object its JSON Schema validates. For a `verdict_matrix` contract, `{ subjects: [{ subject_key, rule_outcomes, auto?, detail? }] }`. For a `record_set` contract, its fields-and-rows envelope."
|
|
3872
|
+
},
|
|
3873
|
+
{
|
|
3874
|
+
name: "evidence",
|
|
3875
|
+
type: "string[]",
|
|
3876
|
+
required: true,
|
|
3877
|
+
description: "Provenance locators the decision relied on, copied verbatim from the package (or `db:` / `ref:` locators the app holds a read grant on). Up to 10,000 entries of at most 512 characters. An empty array is accepted only when the app allows unevidenced decisions."
|
|
3878
|
+
},
|
|
3879
|
+
{
|
|
3880
|
+
name: "rationale",
|
|
3881
|
+
type: "string",
|
|
3882
|
+
required: true,
|
|
3883
|
+
description: "A short summary of why \u2014 never private chain-of-thought. At most 4,000 characters."
|
|
3884
|
+
},
|
|
3885
|
+
{
|
|
3886
|
+
name: "confidence",
|
|
3887
|
+
type: "number",
|
|
3888
|
+
description: "Optional confidence from 0 to 1; the app's confidence floor may route a low value to review."
|
|
3889
|
+
},
|
|
3890
|
+
{
|
|
3891
|
+
name: "service_version",
|
|
3892
|
+
type: "string",
|
|
3893
|
+
description: "Optional build identifier of the deciding service (at most 64 characters); recorded as `decided_by.label`."
|
|
3894
|
+
}
|
|
3895
|
+
]
|
|
3896
|
+
},
|
|
3897
|
+
{
|
|
3898
|
+
type: "code",
|
|
3899
|
+
language: "json",
|
|
3900
|
+
title: "Submit a decision",
|
|
3901
|
+
code: `// talonic_submit_decision_task({
|
|
3902
|
+
// "task_id": "11111111-1111-4111-8111-111111111111",
|
|
3903
|
+
// "execution_epoch": 1,
|
|
3904
|
+
// "outcome": { "approve": true },
|
|
3905
|
+
// "evidence": [
|
|
3906
|
+
// "dp:pppppppp-pppp-4ppp-8ppp-pppppppppppp:rrrrrrrr-rrrr-4rrr-8rrr-rrrrrrrrrrrr:invoice_total",
|
|
3907
|
+
// "dp:pppppppp-pppp-4ppp-8ppp-pppppppppppp:rrrrrrrr-rrrr-4rrr-8rrr-rrrrrrrrrrrr:supplier_name"
|
|
3908
|
+
// ],
|
|
3909
|
+
// "rationale": "Total matches the purchase order and the supplier is on the approved list.",
|
|
3910
|
+
// "confidence": 0.93
|
|
3911
|
+
// })
|
|
3912
|
+
{
|
|
3913
|
+
"id": "11111111-1111-4111-8111-111111111111",
|
|
3914
|
+
"run_id": "22222222-2222-4222-8222-222222222222",
|
|
3915
|
+
"status": "submitted",
|
|
3916
|
+
"execution_epoch": 1,
|
|
3917
|
+
"submitted_at": "2026-09-22T10:02:10.000Z",
|
|
3918
|
+
"...": "remaining metadata as in the list"
|
|
3919
|
+
}`
|
|
3920
|
+
},
|
|
3921
|
+
{
|
|
3922
|
+
type: "paragraph",
|
|
3923
|
+
text: "A refused submission is HTTP 422 with the reason (`Decision violates the output contract: \u2026`, `An evidence block is required \u2026`, a locator outside the package, or a malformed matrix envelope), is journaled as `rejected`, and changes nothing: the task stays `claimed` under your epoch, so fix the payload and submit again before the lease ends. A stale epoch is HTTP 409. A successful submit is terminal \u2014 corrections happen downstream in review, not by a second submit."
|
|
3924
|
+
},
|
|
3925
|
+
{
|
|
3926
|
+
type: "callout",
|
|
3927
|
+
text: "The rationale is a summary for the ledger and for the humans who review it, not a transcript. For a rule-mining round driven from outside, the round's long summary travels in `outcome.summary` and the rationale is one line."
|
|
3928
|
+
}
|
|
3929
|
+
],
|
|
3930
|
+
related: [
|
|
3931
|
+
{ label: "talonic_claim_decision_task", slug: "talonic-claim-decision-task" },
|
|
3932
|
+
{ label: "talonic_read_decision_package", slug: "talonic-read-decision-package" },
|
|
3933
|
+
{ label: "talonic_release_decision_task", slug: "talonic-release-decision-task" },
|
|
3934
|
+
{ label: "talonic_fail_decision_task", slug: "talonic-fail-decision-task" }
|
|
3935
|
+
],
|
|
3936
|
+
faq: [
|
|
3937
|
+
{
|
|
3938
|
+
question: "Can the evidence cite something outside the input package?",
|
|
3939
|
+
answer: "Only a db: or ref: locator naming a source connection or reference table the app holds a read grant on; those are accepted as attestations and journaled. Any other off-package locator, and the reserved api: prefix, is rejected. Everything else must appear verbatim in the package."
|
|
3940
|
+
},
|
|
3941
|
+
{
|
|
3942
|
+
question: "What if the app's thresholds disagree with my decision?",
|
|
3943
|
+
answer: "The submit is still accepted. Thresholds \u2014 the confidence floor for auto-execution and value ceilings requiring approval \u2014 are enforced by the platform after the decision and before execution, for every mode. A breach routes the run to a human review; it never fails silently."
|
|
3944
|
+
}
|
|
3945
|
+
],
|
|
3946
|
+
mentions: [
|
|
3947
|
+
"evidence block",
|
|
3948
|
+
"rationale",
|
|
3949
|
+
"output contract",
|
|
3950
|
+
"external_agent",
|
|
3951
|
+
"transactional submit"
|
|
3952
|
+
]
|
|
3953
|
+
},
|
|
3954
|
+
{
|
|
3955
|
+
slug: "talonic-release-decision-task",
|
|
3956
|
+
parentSlug: "tools",
|
|
3957
|
+
title: "talonic_release_decision_task",
|
|
3958
|
+
seoTitle: "talonic_release_decision_task \u2014 Give a Decision Task Back",
|
|
3959
|
+
description: "MCP tool that releases a claimed decision task back to available without deciding it, so another claimant can pick it up; the next claim bumps the execution epoch.",
|
|
3960
|
+
content: [
|
|
3961
|
+
{
|
|
3962
|
+
type: "paragraph",
|
|
3963
|
+
text: "Give a claimed decision task back. The task returns to `available` with its row intact, the release is journaled, and the next claim bumps the epoch. Use it when you cannot finish within the lease or the SLA but another agent \u2014 or you, later \u2014 could still decide it; the task is not failed and no review is raised."
|
|
3964
|
+
},
|
|
3965
|
+
{
|
|
3966
|
+
type: "param-table",
|
|
3967
|
+
params: [
|
|
3968
|
+
{ name: "task_id", type: "UUID", required: true, description: "Claimed task ID." },
|
|
3969
|
+
{
|
|
3970
|
+
name: "execution_epoch",
|
|
3971
|
+
type: "integer",
|
|
3972
|
+
required: true,
|
|
3973
|
+
description: "Exact epoch from the current claim."
|
|
3974
|
+
}
|
|
3975
|
+
]
|
|
3976
|
+
},
|
|
3977
|
+
{
|
|
3978
|
+
type: "code",
|
|
3979
|
+
language: "json",
|
|
3980
|
+
title: "Release response",
|
|
3981
|
+
code: `// talonic_release_decision_task({ "task_id": "11111111-1111-4111-8111-111111111111", "execution_epoch": 1 })
|
|
3982
|
+
{
|
|
3983
|
+
"id": "11111111-1111-4111-8111-111111111111",
|
|
3984
|
+
"status": "available",
|
|
3985
|
+
"execution_epoch": 1,
|
|
3986
|
+
"claimed_by": null,
|
|
3987
|
+
"lease_expires_at": null,
|
|
3988
|
+
"...": "remaining metadata as in the list"
|
|
3989
|
+
}`
|
|
3990
|
+
},
|
|
3991
|
+
{
|
|
3992
|
+
type: "paragraph",
|
|
3993
|
+
text: "Releasing is cheaper than letting the lease lapse: the task is immediately claimable instead of waiting out the lease, and the ledger records a deliberate give-back rather than a silent timeout. The SLA clock keeps running throughout, so a task released late in its window may time out before anyone reclaims it."
|
|
3994
|
+
}
|
|
3995
|
+
],
|
|
3996
|
+
related: [
|
|
3997
|
+
{ label: "talonic_claim_decision_task", slug: "talonic-claim-decision-task" },
|
|
3998
|
+
{ label: "talonic_fail_decision_task", slug: "talonic-fail-decision-task" }
|
|
3999
|
+
],
|
|
4000
|
+
faq: [
|
|
4001
|
+
{
|
|
4002
|
+
question: "Release or fail \u2014 which one?",
|
|
4003
|
+
answer: "Release when the task is decidable but not by you right now: another claimant gets the same package and contract. Fail when no claimant could decide it from this package: that raises a Human Review with your reason and applies the app's fallback policy."
|
|
4004
|
+
}
|
|
4005
|
+
],
|
|
4006
|
+
mentions: ["release", "give-back", "execution epoch"]
|
|
4007
|
+
},
|
|
4008
|
+
{
|
|
4009
|
+
slug: "talonic-fail-decision-task",
|
|
4010
|
+
parentSlug: "tools",
|
|
4011
|
+
title: "talonic_fail_decision_task",
|
|
4012
|
+
seoTitle: "talonic_fail_decision_task \u2014 Declare a Task Undecidable",
|
|
4013
|
+
description: "MCP tool that reports a claimed decision task cannot be decided: raises a Human Review with the agent's reason and applies the app's declared fallback policy.",
|
|
4014
|
+
content: [
|
|
4015
|
+
{
|
|
4016
|
+
type: "paragraph",
|
|
4017
|
+
text: "Declare that the claimed task cannot be decided. The platform raises a Human Review carrying your `reason` and applies the app's declared **fallback policy**: `rules` (a resident rule set decides \u2014 the only policy with a deterministic safety net), `hold` (the run parks as a system-raised review) or `none` (the run fails explicitly). The task ends in status `failed`; the ledger records the fallback decision with `fallback: true`."
|
|
4018
|
+
},
|
|
4019
|
+
{
|
|
4020
|
+
type: "param-table",
|
|
4021
|
+
params: [
|
|
4022
|
+
{ name: "task_id", type: "UUID", required: true, description: "Claimed task ID." },
|
|
4023
|
+
{
|
|
4024
|
+
name: "execution_epoch",
|
|
4025
|
+
type: "integer",
|
|
4026
|
+
required: true,
|
|
4027
|
+
description: "Exact epoch from the current claim."
|
|
4028
|
+
},
|
|
4029
|
+
{
|
|
4030
|
+
name: "reason",
|
|
4031
|
+
type: "string",
|
|
4032
|
+
required: true,
|
|
4033
|
+
description: "Why the task cannot be decided, at most 2,000 characters. Becomes the review's question context, so name the missing or contradictory evidence."
|
|
4034
|
+
}
|
|
4035
|
+
]
|
|
4036
|
+
},
|
|
4037
|
+
{
|
|
4038
|
+
type: "code",
|
|
4039
|
+
language: "json",
|
|
4040
|
+
title: "Fail response",
|
|
4041
|
+
code: `// talonic_fail_decision_task({
|
|
4042
|
+
// "task_id": "11111111-1111-4111-8111-111111111111",
|
|
4043
|
+
// "execution_epoch": 1,
|
|
4044
|
+
// "reason": "The package carries two supplier names for one invoice and neither matches the purchase order."
|
|
4045
|
+
// })
|
|
4046
|
+
{
|
|
4047
|
+
"id": "11111111-1111-4111-8111-111111111111",
|
|
4048
|
+
"status": "failed",
|
|
4049
|
+
"execution_epoch": 1,
|
|
4050
|
+
"...": "remaining metadata as in the list"
|
|
4051
|
+
}`
|
|
4052
|
+
},
|
|
4053
|
+
{
|
|
4054
|
+
type: "paragraph",
|
|
4055
|
+
text: "Fail is for genuinely undecidable tasks \u2014 contradictory or insufficient input that no claimant could resolve. A decision you can make with low confidence is better submitted with `confidence` set: the app's confidence floor routes it to review if needed, and the reviewer sees your outcome and rationale instead of an empty slot. For a rule-mining round driven from outside, fail seals the round as `interrupted` with your reason and raises no review."
|
|
4056
|
+
}
|
|
4057
|
+
],
|
|
4058
|
+
related: [
|
|
4059
|
+
{ label: "talonic_release_decision_task", slug: "talonic-release-decision-task" },
|
|
4060
|
+
{ label: "talonic_submit_decision_task", slug: "talonic-submit-decision-task" }
|
|
4061
|
+
],
|
|
4062
|
+
faq: [
|
|
4063
|
+
{
|
|
4064
|
+
question: "Is failing a decision task destructive?",
|
|
4065
|
+
answer: "No data is deleted. The task moves to failed, a review is raised with your reason, and the fallback policy the app declared runs \u2014 which under the rules policy still produces a decision. It cannot be undone, though: a failed task is not reclaimable."
|
|
4066
|
+
}
|
|
4067
|
+
],
|
|
4068
|
+
mentions: ["fail", "fallback policy", "Human Review", "undecidable"]
|
|
4069
|
+
},
|
|
4070
|
+
{
|
|
4071
|
+
slug: "talonic-list-fields",
|
|
4072
|
+
parentSlug: "tools",
|
|
4073
|
+
title: "talonic_list_fields",
|
|
4074
|
+
seoTitle: "talonic_list_fields \u2014 List Field Registry Concepts",
|
|
4075
|
+
description: "MCP tool that lists the workspace's Field Registry: every canonical concept Talonic discovered across documents, with stable ids, maturity level, synonyms and occurrence counts.",
|
|
4076
|
+
content: [
|
|
4077
|
+
{
|
|
4078
|
+
type: "paragraph",
|
|
4079
|
+
text: "List the workspace's **Field Registry** \u2014 the canonical concepts Talonic has discovered across every ingested document. Each entry carries a stable `id`, `canonical_name`, `data_type`, a named `maturity` level, `synonyms`, a curated `description`, `occurrence_count` and `superseded_by` when the row was merged into another concept."
|
|
4080
|
+
},
|
|
4081
|
+
{ type: "heading", level: 3, id: "list-fields-use-when", text: "When to use" },
|
|
4082
|
+
{
|
|
4083
|
+
type: "list",
|
|
4084
|
+
items: [
|
|
4085
|
+
"You need to know WHAT data exists before querying it.",
|
|
4086
|
+
"You want the exact field id for `talonic_get_field` or `talonic_field_values`.",
|
|
4087
|
+
"You are choosing between similar concepts and want their maturity and occurrence counts side by side."
|
|
4088
|
+
]
|
|
4089
|
+
},
|
|
4090
|
+
{ type: "heading", level: 3, id: "list-fields-do-not-use", text: "When not to use" },
|
|
4091
|
+
{
|
|
4092
|
+
type: "list",
|
|
4093
|
+
items: [
|
|
4094
|
+
"To locate a specific document by name \u2014 use `talonic_search`.",
|
|
4095
|
+
"To filter documents by a field value \u2014 use `talonic_filter`.",
|
|
4096
|
+
"When you are unsure which field holds a concept \u2014 call `talonic_find_data` first; it matches by meaning."
|
|
4097
|
+
]
|
|
4098
|
+
},
|
|
4099
|
+
{ type: "heading", level: 3, id: "list-fields-params", text: "Parameters" },
|
|
4100
|
+
{
|
|
4101
|
+
type: "param-table",
|
|
4102
|
+
params: [
|
|
4103
|
+
{
|
|
4104
|
+
name: "search",
|
|
4105
|
+
type: "string",
|
|
4106
|
+
description: "Case-insensitive contains match on canonical_name / display_name."
|
|
4107
|
+
},
|
|
4108
|
+
{
|
|
4109
|
+
name: "maturity",
|
|
4110
|
+
type: "string",
|
|
4111
|
+
description: "`core`, `proven` or `candidate`. Prefer `core`/`proven` for anything you build on."
|
|
4112
|
+
},
|
|
4113
|
+
{
|
|
4114
|
+
name: "include_superseded",
|
|
4115
|
+
type: "boolean",
|
|
4116
|
+
description: "Include rows merged into a survivor (they carry `superseded_by`). Default false."
|
|
4117
|
+
},
|
|
4118
|
+
{ name: "limit", type: "number", description: "Page size (default 20, max 100)." },
|
|
4119
|
+
{
|
|
4120
|
+
name: "cursor",
|
|
4121
|
+
type: "string",
|
|
4122
|
+
description: "Opaque cursor from `pagination.next_cursor`."
|
|
4123
|
+
}
|
|
4124
|
+
]
|
|
4125
|
+
},
|
|
4126
|
+
{ type: "heading", level: 3, id: "list-fields-response", text: "Response shape" },
|
|
4127
|
+
{
|
|
4128
|
+
type: "param-table",
|
|
4129
|
+
title: "Fields",
|
|
4130
|
+
params: [
|
|
4131
|
+
{ name: "data[].id", type: "string", description: "Stable field UUID." },
|
|
4132
|
+
{
|
|
4133
|
+
name: "data[].canonical_name",
|
|
4134
|
+
type: "string",
|
|
4135
|
+
description: "Normalized concept name."
|
|
4136
|
+
},
|
|
4137
|
+
{
|
|
4138
|
+
name: "data[].maturity",
|
|
4139
|
+
type: "string",
|
|
4140
|
+
description: "`core` (fully trusted), `proven` (recurring, stable id) or `candidate` (new; may still be merged or renamed)."
|
|
4141
|
+
},
|
|
4142
|
+
{
|
|
4143
|
+
name: "data[].synonyms",
|
|
4144
|
+
type: "string[]",
|
|
4145
|
+
description: "Names folded onto the concept by merges and cleanup."
|
|
4146
|
+
},
|
|
4147
|
+
{
|
|
4148
|
+
name: "data[].superseded_by",
|
|
4149
|
+
type: "object|null",
|
|
4150
|
+
description: "Set when the row was merged into a survivor; follow `superseded_by.id`."
|
|
4151
|
+
},
|
|
4152
|
+
{
|
|
4153
|
+
name: "pagination",
|
|
4154
|
+
type: "object",
|
|
4155
|
+
description: "`total`, `limit`, `has_more`, `next_cursor`."
|
|
4156
|
+
}
|
|
4157
|
+
]
|
|
4158
|
+
},
|
|
4159
|
+
{
|
|
4160
|
+
type: "code",
|
|
4161
|
+
language: "json",
|
|
4162
|
+
title: "Tool input",
|
|
4163
|
+
code: `{ "search": "invoice", "maturity": "proven", "limit": 5 }`
|
|
4164
|
+
},
|
|
4165
|
+
{
|
|
4166
|
+
type: "code",
|
|
4167
|
+
language: "json",
|
|
4168
|
+
title: "Tool response",
|
|
4169
|
+
code: `{
|
|
4170
|
+
"data": [
|
|
4171
|
+
{
|
|
4172
|
+
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
4173
|
+
"canonical_name": "invoice_number",
|
|
4174
|
+
"display_name": "Invoice Number",
|
|
4175
|
+
"data_type": "string",
|
|
4176
|
+
"maturity": "proven",
|
|
4177
|
+
"tier": 2,
|
|
4178
|
+
"synonyms": ["inv_no", "invoice no"],
|
|
4179
|
+
"description": "The supplier's invoice identifier",
|
|
4180
|
+
"occurrence_count": 412,
|
|
4181
|
+
"superseded_by": null,
|
|
4182
|
+
"links": { "self": "/v1/fields/a1b2\u2026", "card": "/v1/fields/a1b2\u2026/card", "values": "/v1/fields/a1b2\u2026/values" }
|
|
4183
|
+
}
|
|
4184
|
+
],
|
|
4185
|
+
"pagination": { "total": 1, "limit": 5, "has_more": false, "next_cursor": null }
|
|
4186
|
+
}`
|
|
4187
|
+
}
|
|
4188
|
+
],
|
|
4189
|
+
related: [
|
|
4190
|
+
{ label: "talonic_search", slug: "talonic-search" },
|
|
4191
|
+
{ label: "talonic_filter", slug: "talonic-filter" }
|
|
4192
|
+
],
|
|
4193
|
+
faq: [
|
|
4194
|
+
{
|
|
4195
|
+
question: "What does maturity mean and which level should I build on?",
|
|
4196
|
+
answer: "`core` (tier 1) is universal and fully trusted; `proven` (tier 2) recurs and has a stable id; `candidate` (tier 3) is newly discovered and may still be merged or renamed. Build on `core` or `proven`; treat `candidate` as a hint."
|
|
4197
|
+
}
|
|
4198
|
+
],
|
|
4199
|
+
mentions: [
|
|
4200
|
+
"field registry",
|
|
4201
|
+
"list fields",
|
|
4202
|
+
"maturity",
|
|
4203
|
+
"canonical fields",
|
|
4204
|
+
"superseded_by",
|
|
4205
|
+
"field ids"
|
|
4206
|
+
]
|
|
4207
|
+
},
|
|
4208
|
+
{
|
|
4209
|
+
slug: "talonic-get-field",
|
|
4210
|
+
parentSlug: "tools",
|
|
4211
|
+
title: "talonic_get_field",
|
|
4212
|
+
seoTitle: "talonic_get_field \u2014 Field Concept Card",
|
|
4213
|
+
description: "MCP tool that returns a Field Registry concept card: definition, synonyms and aliases, maturity, occurrence statistics, value distribution with examples, schema usage and identity links.",
|
|
4214
|
+
content: [
|
|
4215
|
+
{
|
|
4216
|
+
type: "paragraph",
|
|
4217
|
+
text: "Get the **concept card** for one field: what it means (curated description and extraction instruction), its synonyms and merge aliases, maturity, where it occurs (document and occurrence counts, first/last seen, document-type spread), its value distribution (top values with counts, distinct count, examples), schema usage, and identity links (`superseded_by`, absorbed concepts). Accepts a field `name` in the user's own words \u2014 it is resolved through canonical name, synonyms, merge aliases and the registry's spelling fold, then followed to the live concept."
|
|
4218
|
+
},
|
|
4219
|
+
{ type: "heading", level: 3, id: "get-field-use-when", text: "When to use" },
|
|
4220
|
+
{
|
|
4221
|
+
type: "list",
|
|
4222
|
+
items: [
|
|
4223
|
+
"You must decide whether a field is the right concept for a question.",
|
|
4224
|
+
"You need example values or the value shape before writing a filter or a query.",
|
|
4225
|
+
"The user names a field ('Invoice No', 'Vertragsnummer') and you need the live concept behind it."
|
|
4226
|
+
]
|
|
4227
|
+
},
|
|
4228
|
+
{ type: "heading", level: 3, id: "get-field-do-not-use", text: "When not to use" },
|
|
4229
|
+
{
|
|
4230
|
+
type: "list",
|
|
4231
|
+
items: [
|
|
4232
|
+
"To list many fields \u2014 use `talonic_list_fields`.",
|
|
4233
|
+
"To read every value of a field \u2014 use `talonic_field_values`."
|
|
4234
|
+
]
|
|
4235
|
+
},
|
|
4236
|
+
{ type: "heading", level: 3, id: "get-field-params", text: "Parameters" },
|
|
4237
|
+
{
|
|
4238
|
+
type: "param-table",
|
|
4239
|
+
params: [
|
|
4240
|
+
{
|
|
4241
|
+
name: "field_id",
|
|
4242
|
+
type: "string",
|
|
4243
|
+
description: "Field UUID. Provide either `field_id` or `name`."
|
|
4244
|
+
},
|
|
4245
|
+
{
|
|
4246
|
+
name: "name",
|
|
4247
|
+
type: "string",
|
|
4248
|
+
description: "Field name to resolve (canonical \u2192 synonyms \u2192 aliases \u2192 spelling fold, redirects followed)."
|
|
4249
|
+
},
|
|
4250
|
+
{
|
|
4251
|
+
name: "include_history",
|
|
4252
|
+
type: "boolean",
|
|
4253
|
+
description: "Append the curation trail (tier changes, merges, renames), newest first."
|
|
4254
|
+
}
|
|
4255
|
+
]
|
|
4256
|
+
},
|
|
4257
|
+
{ type: "heading", level: 3, id: "get-field-response", text: "Response shape" },
|
|
4258
|
+
{
|
|
4259
|
+
type: "param-table",
|
|
4260
|
+
title: "Fields",
|
|
4261
|
+
params: [
|
|
4262
|
+
{
|
|
4263
|
+
name: "definition",
|
|
4264
|
+
type: "object",
|
|
4265
|
+
description: "`description`, `instruction`, `synonyms[]`, `aliases[]`."
|
|
4266
|
+
},
|
|
4267
|
+
{
|
|
4268
|
+
name: "identity",
|
|
4269
|
+
type: "object",
|
|
4270
|
+
description: "`pinned`, `source`, `superseded_by`, `absorbed[]`."
|
|
4271
|
+
},
|
|
4272
|
+
{
|
|
4273
|
+
name: "occurrence",
|
|
4274
|
+
type: "object",
|
|
4275
|
+
description: "`occurrence_count`, `document_count`, `first_seen_at`, `last_seen_at`, `document_type_distribution`."
|
|
4276
|
+
},
|
|
4277
|
+
{
|
|
4278
|
+
name: "values",
|
|
4279
|
+
type: "object",
|
|
4280
|
+
description: "`total`, `distinct_count`, `top[]` (value, count, share), `examples[]`."
|
|
4281
|
+
},
|
|
4282
|
+
{ name: "usage", type: "object", description: "`schema_count`, `schema_field_count`." },
|
|
4283
|
+
{
|
|
4284
|
+
name: "resolution",
|
|
4285
|
+
type: "object",
|
|
4286
|
+
description: "Present when `name` was given: `matched_by` and `redirected_from[]`."
|
|
4287
|
+
},
|
|
4288
|
+
{
|
|
4289
|
+
name: "history",
|
|
4290
|
+
type: "object",
|
|
4291
|
+
description: "Present when `include_history` is true."
|
|
4292
|
+
}
|
|
4293
|
+
]
|
|
4294
|
+
},
|
|
4295
|
+
{
|
|
4296
|
+
type: "code",
|
|
4297
|
+
language: "json",
|
|
4298
|
+
title: "Tool input",
|
|
4299
|
+
code: `{ "name": "Invoice No", "include_history": true }`
|
|
4300
|
+
},
|
|
4301
|
+
{
|
|
4302
|
+
type: "code",
|
|
4303
|
+
language: "json",
|
|
4304
|
+
title: "Tool response",
|
|
4305
|
+
code: `{
|
|
4306
|
+
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
4307
|
+
"canonical_name": "invoice_number",
|
|
4308
|
+
"maturity": "proven",
|
|
4309
|
+
"data_type": "string",
|
|
4310
|
+
"definition": { "description": "The supplier's invoice identifier", "instruction": "Extract the invoice number as printed", "synonyms": ["inv_no"], "aliases": [{ "name": "invoice no", "source": "merge" }] },
|
|
4311
|
+
"identity": { "pinned": false, "source": null, "superseded_by": null, "absorbed": [] },
|
|
4312
|
+
"occurrence": { "occurrence_count": 412, "document_count": 398, "first_seen_at": "2026-03-02T09:14:00.000Z", "last_seen_at": "2026-09-04T16:02:11.000Z", "document_type_distribution": { "invoice": 398 } },
|
|
4313
|
+
"values": { "total": 412, "distinct_count": 405, "top": [{ "value": "INV-2026-0001", "count": 2, "share": 0.0049 }], "examples": ["INV-2026-0001", "RE-88231"] },
|
|
4314
|
+
"usage": { "schema_count": 2, "schema_field_count": 2 },
|
|
4315
|
+
"resolution": { "matched_by": "synonym", "redirected_from": [] },
|
|
4316
|
+
"history": { "total": 1, "data": [{ "kind": "tier_changed", "at": "2026-04-01T00:00:00.000Z", "detail": { "direction": "promoted", "from_maturity": "candidate", "to_maturity": "proven" } }] }
|
|
4317
|
+
}`
|
|
4318
|
+
}
|
|
4319
|
+
],
|
|
4320
|
+
related: [
|
|
4321
|
+
{ label: "talonic_search", slug: "talonic-search" },
|
|
4322
|
+
{ label: "talonic_filter", slug: "talonic-filter" }
|
|
4323
|
+
],
|
|
4324
|
+
faq: [
|
|
4325
|
+
{
|
|
4326
|
+
question: "Can I pass the user's wording instead of an id?",
|
|
4327
|
+
answer: "Yes. `name` is resolved through the canonical name, synonyms, merge aliases and the registry's spelling fold, then followed to the live concept; the response's `resolution.matched_by` says which arm matched."
|
|
4328
|
+
}
|
|
4329
|
+
],
|
|
4330
|
+
mentions: [
|
|
4331
|
+
"concept card",
|
|
4332
|
+
"field definition",
|
|
4333
|
+
"field by name",
|
|
4334
|
+
"resolve field",
|
|
4335
|
+
"example values",
|
|
4336
|
+
"field history"
|
|
4337
|
+
]
|
|
4338
|
+
},
|
|
4339
|
+
{
|
|
4340
|
+
slug: "talonic-field-values",
|
|
4341
|
+
parentSlug: "tools",
|
|
4342
|
+
title: "talonic_field_values",
|
|
4343
|
+
seoTitle: "talonic_field_values \u2014 Read a Field Across Documents",
|
|
4344
|
+
description: "MCP tool that reads a Field Registry concept's current values across all documents with provenance: document, value, confidence, raw name, source text and resolution band.",
|
|
4345
|
+
content: [
|
|
4346
|
+
{
|
|
4347
|
+
type: "paragraph",
|
|
4348
|
+
text: "Read a field's **current values across documents**, with provenance \u2014 one row per bound occurrence: document id, filename and type, the value, its confidence, the raw name it was captured under, the verbatim source text, and the resolution band that bound it. Rows are Sources-IAM filtered for the caller and cursor-paginated newest first."
|
|
4349
|
+
},
|
|
4350
|
+
{ type: "heading", level: 3, id: "field-values-use-when", text: "When to use" },
|
|
4351
|
+
{
|
|
4352
|
+
type: "list",
|
|
4353
|
+
items: [
|
|
4354
|
+
"The user asks 'what are all the X across my documents'.",
|
|
4355
|
+
"You need to tabulate or aggregate one concept across the corpus.",
|
|
4356
|
+
"You want the evidence (source text plus document) behind a value."
|
|
4357
|
+
]
|
|
4358
|
+
},
|
|
4359
|
+
{ type: "heading", level: 3, id: "field-values-do-not-use", text: "When not to use" },
|
|
4360
|
+
{
|
|
4361
|
+
type: "list",
|
|
4362
|
+
items: [
|
|
4363
|
+
"Multi-field, row-shaped queries over documents \u2014 use `talonic_filter`.",
|
|
4364
|
+
"One document's full field set \u2014 use `talonic_get_document`."
|
|
4365
|
+
]
|
|
4366
|
+
},
|
|
4367
|
+
{ type: "heading", level: 3, id: "field-values-params", text: "Parameters" },
|
|
4368
|
+
{
|
|
4369
|
+
type: "param-table",
|
|
4370
|
+
params: [
|
|
4371
|
+
{
|
|
4372
|
+
name: "field_id",
|
|
4373
|
+
type: "string",
|
|
4374
|
+
description: "Field UUID. Provide either `field_id` or `name`."
|
|
4375
|
+
},
|
|
4376
|
+
{
|
|
4377
|
+
name: "name",
|
|
4378
|
+
type: "string",
|
|
4379
|
+
description: "Field name (resolved like `talonic_get_field`)."
|
|
4380
|
+
},
|
|
4381
|
+
{
|
|
4382
|
+
name: "document_id",
|
|
4383
|
+
type: "string",
|
|
4384
|
+
description: "Only occurrences on this document."
|
|
4385
|
+
},
|
|
4386
|
+
{
|
|
4387
|
+
name: "value",
|
|
4388
|
+
type: "string",
|
|
4389
|
+
description: "Case-insensitive contains filter on the value text."
|
|
4390
|
+
},
|
|
4391
|
+
{ name: "limit", type: "number", description: "Page size (default 20, max 100)." },
|
|
4392
|
+
{
|
|
4393
|
+
name: "cursor",
|
|
4394
|
+
type: "string",
|
|
4395
|
+
description: "Opaque cursor from `pagination.next_cursor`."
|
|
4396
|
+
}
|
|
4397
|
+
]
|
|
4398
|
+
},
|
|
4399
|
+
{ type: "heading", level: 3, id: "field-values-response", text: "Response shape" },
|
|
4400
|
+
{
|
|
4401
|
+
type: "param-table",
|
|
4402
|
+
title: "Fields",
|
|
4403
|
+
params: [
|
|
4404
|
+
{
|
|
4405
|
+
name: "data[].document_id",
|
|
4406
|
+
type: "string",
|
|
4407
|
+
description: "Document the value came from (`document_filename`, `document_type` alongside)."
|
|
4408
|
+
},
|
|
4409
|
+
{
|
|
4410
|
+
name: "data[].value",
|
|
4411
|
+
type: "any",
|
|
4412
|
+
description: "The current bound value as captured."
|
|
4413
|
+
},
|
|
4414
|
+
{
|
|
4415
|
+
name: "data[].confidence",
|
|
4416
|
+
type: "number|null",
|
|
4417
|
+
description: "Capture confidence 0\u20131."
|
|
4418
|
+
},
|
|
4419
|
+
{
|
|
4420
|
+
name: "data[].provenance",
|
|
4421
|
+
type: "object",
|
|
4422
|
+
description: "`raw_field_name`, `source_text`, `resolved_by` (`exact`, `cluster`, `semantic_auto`, `llm_rescue`, \u2026), `needs_confirmation`, `via_redirect`."
|
|
4423
|
+
},
|
|
4424
|
+
{
|
|
4425
|
+
name: "concept_ids",
|
|
4426
|
+
type: "string[]",
|
|
4427
|
+
description: "The concept plus absorbed redirects whose occurrences are included."
|
|
4428
|
+
},
|
|
4429
|
+
{ name: "pagination", type: "object", description: "`total` counts the visible set." }
|
|
4430
|
+
]
|
|
4431
|
+
},
|
|
4432
|
+
{
|
|
4433
|
+
type: "code",
|
|
4434
|
+
language: "json",
|
|
4435
|
+
title: "Tool input",
|
|
4436
|
+
code: `{ "name": "invoice_number", "value": "2026", "limit": 2 }`
|
|
4437
|
+
},
|
|
4438
|
+
{
|
|
4439
|
+
type: "code",
|
|
4440
|
+
language: "json",
|
|
4441
|
+
title: "Tool response",
|
|
4442
|
+
code: `{
|
|
4443
|
+
"field_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
4444
|
+
"canonical_name": "invoice_number",
|
|
4445
|
+
"concept_ids": ["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],
|
|
4446
|
+
"data": [
|
|
4447
|
+
{
|
|
4448
|
+
"occurrence_id": "0f1e2d3c-\u2026",
|
|
4449
|
+
"document_id": "f0e1d2c3-\u2026",
|
|
4450
|
+
"document_filename": "RE-2026-0142.pdf",
|
|
4451
|
+
"document_type": "invoice",
|
|
4452
|
+
"value": "INV-2026-0142",
|
|
4453
|
+
"confidence": 0.97,
|
|
4454
|
+
"provenance": { "raw_field_name": "Rechnungsnummer", "source_text": "Rechnungsnummer: INV-2026-0142", "resolved_by": "exact", "needs_confirmation": false, "via_redirect": false },
|
|
4455
|
+
"links": { "document": "/v1/documents/f0e1\u2026", "document_fields": "/v1/documents/f0e1\u2026/fields" }
|
|
4456
|
+
}
|
|
4457
|
+
],
|
|
4458
|
+
"pagination": { "total": 37, "limit": 2, "has_more": true, "next_cursor": "MGYx\u2026" }
|
|
4459
|
+
}`
|
|
4460
|
+
}
|
|
4461
|
+
],
|
|
4462
|
+
related: [
|
|
4463
|
+
{ label: "talonic_search", slug: "talonic-search" },
|
|
4464
|
+
{ label: "talonic_filter", slug: "talonic-filter" }
|
|
4465
|
+
],
|
|
4466
|
+
faq: [
|
|
4467
|
+
{
|
|
4468
|
+
question: "Are the values filtered by the caller's document visibility?",
|
|
4469
|
+
answer: "Yes. Rows and `pagination.total` are Sources-IAM filtered as the API key's minting user, exactly like the other document reads."
|
|
4470
|
+
}
|
|
4471
|
+
],
|
|
4472
|
+
mentions: [
|
|
4473
|
+
"field values",
|
|
4474
|
+
"values across documents",
|
|
4475
|
+
"provenance",
|
|
4476
|
+
"source text",
|
|
4477
|
+
"resolution band",
|
|
4478
|
+
"cross-document"
|
|
4479
|
+
]
|
|
4480
|
+
},
|
|
4481
|
+
{
|
|
4482
|
+
slug: "talonic-find-data",
|
|
4483
|
+
parentSlug: "tools",
|
|
4484
|
+
title: "talonic_find_data",
|
|
4485
|
+
seoTitle: "talonic_find_data \u2014 Locate Data Behind a Concept",
|
|
4486
|
+
description: "MCP tool that resolves a natural-language concept to the registry fields, values, documents and passages that carry it, by meaning \u2014 the same retrieval the in-product Talonic agent uses.",
|
|
4487
|
+
content: [
|
|
4488
|
+
{
|
|
4489
|
+
type: "paragraph",
|
|
4490
|
+
text: "Locate the **real data behind a concept** before querying anything. Semantic plus lexical retrieval resolves a phrase in the user's words ('payment volume per transaction', 'Vertragslaufzeit') to the registry fields, values, documents and text passages that carry it \u2014 even when the field was captured under a different name. It is the same `find_data` primitive the in-product Talonic agent calls first, exposed with no model in the loop."
|
|
4491
|
+
},
|
|
4492
|
+
{ type: "heading", level: 3, id: "find-data-use-when", text: "When to use" },
|
|
4493
|
+
{
|
|
4494
|
+
type: "list",
|
|
4495
|
+
items: [
|
|
4496
|
+
"The user asks about a concept and you are unsure which field holds it.",
|
|
4497
|
+
"`talonic_list_fields` or `talonic_search` came back empty or ambiguous.",
|
|
4498
|
+
"The answer may live in document prose rather than a captured cell."
|
|
4499
|
+
]
|
|
4500
|
+
},
|
|
4501
|
+
{ type: "heading", level: 3, id: "find-data-do-not-use", text: "When not to use" },
|
|
4502
|
+
{
|
|
4503
|
+
type: "list",
|
|
4504
|
+
items: [
|
|
4505
|
+
"Reading a known field's values \u2014 use `talonic_field_values`.",
|
|
4506
|
+
"Filtering by a known field \u2014 use `talonic_filter`."
|
|
4507
|
+
]
|
|
4508
|
+
},
|
|
4509
|
+
{ type: "heading", level: 3, id: "find-data-params", text: "Parameters" },
|
|
4510
|
+
{
|
|
4511
|
+
type: "param-table",
|
|
4512
|
+
params: [
|
|
4513
|
+
{ name: "query", type: "string", description: "The concept, in the user's words." },
|
|
4514
|
+
{
|
|
4515
|
+
name: "top_k",
|
|
4516
|
+
type: "number",
|
|
4517
|
+
description: "Max results per plane (1\u201325, default 10)."
|
|
4518
|
+
},
|
|
4519
|
+
{
|
|
4520
|
+
name: "document_ids",
|
|
4521
|
+
type: "string[]",
|
|
4522
|
+
description: "Hard scope: restrict every plane to these documents."
|
|
4523
|
+
}
|
|
4524
|
+
]
|
|
4525
|
+
},
|
|
4526
|
+
{ type: "heading", level: 3, id: "find-data-response", text: "Response shape" },
|
|
4527
|
+
{
|
|
4528
|
+
type: "param-table",
|
|
4529
|
+
title: "Fields",
|
|
4530
|
+
params: [
|
|
4531
|
+
{
|
|
4532
|
+
name: "result.fields",
|
|
4533
|
+
type: "array",
|
|
4534
|
+
description: "Matching concepts: canonical_name, field ids/keys, tier, occurrence_count, sample values with their documents."
|
|
4535
|
+
},
|
|
4536
|
+
{
|
|
4537
|
+
name: "result.values / result.documents / result.passages",
|
|
4538
|
+
type: "array",
|
|
4539
|
+
description: "Value, document and passage planes \u2014 each item a ready handle for the next call."
|
|
4540
|
+
},
|
|
4541
|
+
{
|
|
4542
|
+
name: "citations",
|
|
4543
|
+
type: "array",
|
|
4544
|
+
description: "Provenance the platform attached to the result."
|
|
4545
|
+
}
|
|
4546
|
+
]
|
|
4547
|
+
},
|
|
4548
|
+
{
|
|
4549
|
+
type: "code",
|
|
4550
|
+
language: "json",
|
|
4551
|
+
title: "Tool input",
|
|
4552
|
+
code: `{ "query": "contract end date", "top_k": 5 }`
|
|
4553
|
+
},
|
|
4554
|
+
{
|
|
4555
|
+
type: "code",
|
|
4556
|
+
language: "json",
|
|
4557
|
+
title: "Tool response",
|
|
4558
|
+
code: `{
|
|
4559
|
+
"tool": "find_data",
|
|
4560
|
+
"result": {
|
|
4561
|
+
"fields": [{ "canonical_name": "contract_end_date", "field_key": "contract_end_date", "tier": 2, "occurrence_count": 88, "samples": [{ "value": "2027-12-31", "document_id": "f0e1\u2026" }] }],
|
|
4562
|
+
"documents": [{ "document_id": "f0e1\u2026", "filename": "Vertrag-GETEC-2024.pdf", "score": 0.81 }],
|
|
4563
|
+
"passages": []
|
|
4564
|
+
},
|
|
4565
|
+
"citations": [{ "document_id": "f0e1\u2026" }]
|
|
4566
|
+
}`
|
|
4567
|
+
}
|
|
4568
|
+
],
|
|
4569
|
+
related: [
|
|
4570
|
+
{ label: "talonic_search", slug: "talonic-search" },
|
|
4571
|
+
{ label: "talonic_filter", slug: "talonic-filter" }
|
|
4572
|
+
],
|
|
4573
|
+
faq: [
|
|
4574
|
+
{
|
|
4575
|
+
question: "How is this different from talonic_search?",
|
|
4576
|
+
answer: "`talonic_search` matches literal keywords across documents, fields, sources and schemas. `talonic_find_data` matches by MEANING against the field registry and document text and returns ready handles (field ids, document ids, passages) for the next call."
|
|
4577
|
+
}
|
|
4578
|
+
],
|
|
4579
|
+
mentions: [
|
|
4580
|
+
"find data",
|
|
4581
|
+
"semantic retrieval",
|
|
4582
|
+
"concept to field",
|
|
4583
|
+
"which field holds",
|
|
4584
|
+
"locate data",
|
|
4585
|
+
"passages"
|
|
4586
|
+
]
|
|
4587
|
+
},
|
|
4588
|
+
{
|
|
4589
|
+
slug: "talonic-list-agent-tools",
|
|
4590
|
+
parentSlug: "tools",
|
|
4591
|
+
title: "talonic_list_agent_tools",
|
|
4592
|
+
seoTitle: "talonic_list_agent_tools \u2014 Platform Agent Tool Registry",
|
|
4593
|
+
description: "MCP tool that lists the platform's agent tool registry \u2014 every retrieval, provenance and analysis primitive the in-product Talonic agent runs on \u2014 with input schemas and per-credential invocability.",
|
|
4594
|
+
content: [
|
|
4595
|
+
{
|
|
4596
|
+
type: "paragraph",
|
|
4597
|
+
text: "List the platform's **agent tool registry**: every retrieval, provenance and analysis primitive the in-product Talonic agent runs on (`find_data`, `describe_data`, `query_data` for read-only SQL over the extracted data, `get_document_markdown`, `workspace_overview`, \u2026), each with its JSON input schema and whether **this** credential may invoke it. An API key reaches the read-only subset; the platform enforces the capability matrix on every call."
|
|
4598
|
+
},
|
|
4599
|
+
{ type: "heading", level: 3, id: "list-agent-tools-use-when", text: "When to use" },
|
|
4600
|
+
{
|
|
4601
|
+
type: "list",
|
|
4602
|
+
items: [
|
|
4603
|
+
"You need a capability the dedicated `talonic_*` tools do not cover (SQL over structured data, a workspace overview, cohort discovery).",
|
|
4604
|
+
"You want to see exactly what the in-product agent can do before driving it yourself with `talonic_invoke_agent_tool`."
|
|
4605
|
+
]
|
|
4606
|
+
},
|
|
4607
|
+
{ type: "heading", level: 3, id: "list-agent-tools-do-not-use", text: "When not to use" },
|
|
4608
|
+
{
|
|
4609
|
+
type: "list",
|
|
4610
|
+
items: [
|
|
4611
|
+
"Anything a dedicated `talonic_*` tool already does \u2014 prefer those, they are shaped for you."
|
|
4612
|
+
]
|
|
4613
|
+
},
|
|
4614
|
+
{ type: "heading", level: 3, id: "list-agent-tools-params", text: "Parameters" },
|
|
4615
|
+
{
|
|
4616
|
+
type: "param-table",
|
|
4617
|
+
params: [
|
|
4618
|
+
{
|
|
4619
|
+
name: "only_invocable",
|
|
4620
|
+
type: "boolean",
|
|
4621
|
+
description: "Hide tools this credential cannot invoke. Default true."
|
|
4622
|
+
},
|
|
4623
|
+
{
|
|
4624
|
+
name: "include_schemas",
|
|
4625
|
+
type: "boolean",
|
|
4626
|
+
description: "Include each tool's JSON input schema. Default true."
|
|
4627
|
+
}
|
|
4628
|
+
]
|
|
4629
|
+
},
|
|
4630
|
+
{ type: "heading", level: 3, id: "list-agent-tools-response", text: "Response shape" },
|
|
4631
|
+
{
|
|
4632
|
+
type: "param-table",
|
|
4633
|
+
title: "Fields",
|
|
4634
|
+
params: [
|
|
4635
|
+
{
|
|
4636
|
+
name: "tools[].name",
|
|
4637
|
+
type: "string",
|
|
4638
|
+
description: "Tool name to pass to `talonic_invoke_agent_tool`."
|
|
4639
|
+
},
|
|
4640
|
+
{
|
|
4641
|
+
name: "tools[].can_invoke",
|
|
4642
|
+
type: "boolean",
|
|
4643
|
+
description: "Whether this credential's role may run it."
|
|
4644
|
+
},
|
|
4645
|
+
{
|
|
4646
|
+
name: "tools[].input_schema",
|
|
4647
|
+
type: "object",
|
|
4648
|
+
description: "JSON Schema of the tool's `args`."
|
|
4649
|
+
},
|
|
4650
|
+
{
|
|
4651
|
+
name: "invocable_count / totalCount",
|
|
4652
|
+
type: "number",
|
|
4653
|
+
description: "Counts over the full registry."
|
|
4654
|
+
}
|
|
4655
|
+
]
|
|
4656
|
+
},
|
|
4657
|
+
{
|
|
4658
|
+
type: "code",
|
|
4659
|
+
language: "json",
|
|
4660
|
+
title: "Tool input",
|
|
4661
|
+
code: `{ "only_invocable": true, "include_schemas": false }`
|
|
4662
|
+
},
|
|
4663
|
+
{
|
|
4664
|
+
type: "code",
|
|
4665
|
+
language: "json",
|
|
4666
|
+
title: "Tool response",
|
|
4667
|
+
code: `{
|
|
4668
|
+
"tools": [
|
|
4669
|
+
{ "name": "find_data", "description": "CALL THIS FIRST to locate the real data behind a natural-language concept\u2026", "impact": "read", "capability": "data.read", "can_invoke": true },
|
|
4670
|
+
{ "name": "query_data", "description": "Run a read-only SQL SELECT over the extracted data\u2026", "impact": "read", "capability": "data.read", "can_invoke": true }
|
|
4671
|
+
],
|
|
4672
|
+
"invocable_count": 12,
|
|
4673
|
+
"totalCount": 48
|
|
4674
|
+
}`
|
|
4675
|
+
}
|
|
4676
|
+
],
|
|
4677
|
+
related: [
|
|
4678
|
+
{ label: "talonic_search", slug: "talonic-search" },
|
|
4679
|
+
{ label: "talonic_filter", slug: "talonic-filter" }
|
|
4680
|
+
],
|
|
4681
|
+
faq: [
|
|
4682
|
+
{
|
|
4683
|
+
question: "Why are some tools listed with can_invoke false?",
|
|
4684
|
+
answer: "An API key runs as a read-only principal, so tools above the `data.read` capability (anything that spends credits or writes) are listed for transparency but cannot be invoked through the API."
|
|
4685
|
+
}
|
|
4686
|
+
],
|
|
4687
|
+
mentions: [
|
|
4688
|
+
"agent tools",
|
|
4689
|
+
"tool registry",
|
|
4690
|
+
"query_data",
|
|
4691
|
+
"describe_data",
|
|
4692
|
+
"capabilities",
|
|
4693
|
+
"can_invoke"
|
|
4694
|
+
]
|
|
4695
|
+
},
|
|
4696
|
+
{
|
|
4697
|
+
slug: "talonic-invoke-agent-tool",
|
|
4698
|
+
parentSlug: "tools",
|
|
4699
|
+
title: "talonic_invoke_agent_tool",
|
|
4700
|
+
seoTitle: "talonic_invoke_agent_tool \u2014 Run a Platform Agent Tool",
|
|
4701
|
+
description: "MCP tool that invokes one named platform agent tool directly with caller-chosen arguments \u2014 read-only SQL over extracted data, document text, workspace overviews \u2014 with no model in the loop.",
|
|
4702
|
+
content: [
|
|
4703
|
+
{
|
|
4704
|
+
type: "paragraph",
|
|
4705
|
+
text: "Invoke **one named tool** from the platform's agent tool registry directly, with no model in the loop \u2014 you choose the arguments. This is how an external agent uses Talonic's retrieval and provenance while driving control flow itself: `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. Denied capabilities come back as an error naming the capability required; the platform re-checks every call."
|
|
4706
|
+
},
|
|
4707
|
+
{ type: "heading", level: 3, id: "invoke-agent-tool-use-when", text: "When to use" },
|
|
4708
|
+
{
|
|
4709
|
+
type: "list",
|
|
4710
|
+
items: [
|
|
4711
|
+
"`talonic_list_agent_tools` showed a tool with `can_invoke: true` that does what you need."
|
|
4712
|
+
]
|
|
4713
|
+
},
|
|
4714
|
+
{ type: "heading", level: 3, id: "invoke-agent-tool-do-not-use", text: "When not to use" },
|
|
4715
|
+
{
|
|
4716
|
+
type: "list",
|
|
4717
|
+
items: ["Anything a dedicated `talonic_*` tool already does \u2014 prefer those."]
|
|
4718
|
+
},
|
|
4719
|
+
{ type: "heading", level: 3, id: "invoke-agent-tool-params", text: "Parameters" },
|
|
4720
|
+
{
|
|
4721
|
+
type: "param-table",
|
|
4722
|
+
params: [
|
|
4723
|
+
{ name: "name", type: "string", description: "Tool name, e.g. `query_data`." },
|
|
4724
|
+
{
|
|
4725
|
+
name: "args",
|
|
4726
|
+
type: "object",
|
|
4727
|
+
description: "Arguments matching the tool's `input_schema`."
|
|
4728
|
+
},
|
|
4729
|
+
{
|
|
4730
|
+
name: "document_ids",
|
|
4731
|
+
type: "string[]",
|
|
4732
|
+
description: "Hard scope for scope-aware tools."
|
|
4733
|
+
}
|
|
4734
|
+
]
|
|
4735
|
+
},
|
|
4736
|
+
{ type: "heading", level: 3, id: "invoke-agent-tool-response", text: "Response shape" },
|
|
4737
|
+
{
|
|
4738
|
+
type: "param-table",
|
|
4739
|
+
title: "Fields",
|
|
4740
|
+
params: [
|
|
4741
|
+
{ name: "tool", type: "string", description: "The tool that ran." },
|
|
4742
|
+
{ name: "result", type: "any", description: "The tool's parsed output." },
|
|
4743
|
+
{
|
|
4744
|
+
name: "citations / artifacts / cards",
|
|
4745
|
+
type: "array",
|
|
4746
|
+
description: "Present when the tool attached them."
|
|
4747
|
+
}
|
|
4748
|
+
]
|
|
4749
|
+
},
|
|
4750
|
+
{
|
|
4751
|
+
type: "code",
|
|
4752
|
+
language: "json",
|
|
4753
|
+
title: "Tool input",
|
|
4754
|
+
code: `{ "name": "query_data", "args": { "sql": "SELECT field_key, count(*) FROM cells GROUP BY 1 ORDER BY 2 DESC LIMIT 5" } }`
|
|
4755
|
+
},
|
|
4756
|
+
{
|
|
4757
|
+
type: "code",
|
|
4758
|
+
language: "json",
|
|
4759
|
+
title: "Tool response",
|
|
4760
|
+
code: `{
|
|
4761
|
+
"tool": "query_data",
|
|
4762
|
+
"result": { "rows": [{ "field_key": "invoice_number", "count": 412 }], "row_count": 1 }
|
|
4763
|
+
}`
|
|
4764
|
+
}
|
|
4765
|
+
],
|
|
4766
|
+
related: [
|
|
4767
|
+
{ label: "talonic_search", slug: "talonic-search" },
|
|
4768
|
+
{ label: "talonic_filter", slug: "talonic-filter" }
|
|
4769
|
+
],
|
|
4770
|
+
faq: [
|
|
4771
|
+
{
|
|
4772
|
+
question: "Does invoking a tool cost credits?",
|
|
4773
|
+
answer: "No. Every tool an API key can reach is LLM-free, so there is no model call to meter; the route is bounded by its own rate-limit namespace instead."
|
|
4774
|
+
}
|
|
4775
|
+
],
|
|
4776
|
+
mentions: [
|
|
4777
|
+
"invoke tool",
|
|
4778
|
+
"query_data",
|
|
4779
|
+
"sql over extracted data",
|
|
4780
|
+
"document markdown",
|
|
4781
|
+
"agent tool",
|
|
4782
|
+
"no model in the loop"
|
|
4783
|
+
]
|
|
4784
|
+
}
|
|
4785
|
+
];
|
|
4786
|
+
|
|
4787
|
+
// src/content/sections/features.ts
|
|
4788
|
+
var sections4 = [
|
|
4789
|
+
{
|
|
4790
|
+
slug: "drag-and-drop",
|
|
4791
|
+
parentSlug: "features",
|
|
4792
|
+
title: "Drag & Drop Files",
|
|
4793
|
+
seoTitle: "Drag & Drop File Extraction with the Talonic MCP Server",
|
|
4794
|
+
description: "Drop PDFs and other documents straight into Claude Desktop, Cursor, or Cowork and extract structured data \u2014 no file paths, no upload configuration needed.",
|
|
4795
|
+
content: [
|
|
4796
|
+
{
|
|
4797
|
+
type: "paragraph",
|
|
4798
|
+
text: "When the user drag-drops a PDF (or any supported file) into a chat-style MCP host such as Claude Desktop, Cowork, or Cursor, the file lands in a host-owned sandbox directory the MCP server cannot read. The path the host hands the agent is meaningless to a separately-running `npx` MCP process."
|
|
4799
|
+
},
|
|
4800
|
+
{
|
|
4801
|
+
type: "paragraph",
|
|
4802
|
+
text: "`@talonic/mcp@0.1.4` and later solve this by accepting **`file_data`** (base64-encoded file bytes) and **`filename`** on `talonic_extract` and `talonic_to_markdown`. The agent reads the file bytes from the conversation, base64-encodes them, and passes them through the MCP tool call. The MCP server decodes, infers MIME type from the filename, and uploads to the Talonic API."
|
|
4803
|
+
},
|
|
4804
|
+
{
|
|
4805
|
+
type: "paragraph",
|
|
4806
|
+
text: "This approach works transparently across all chat-style MCP clients. The agent does not need to know where the file is stored on disk, and the user does not need to configure file paths or directory permissions. The entire flow \u2014 from drop to structured extraction \u2014 happens in a single conversation turn."
|
|
4807
|
+
},
|
|
4808
|
+
{
|
|
4809
|
+
type: "paragraph",
|
|
4810
|
+
text: "Supported file types include PDF, PNG, JPG, TIFF, DOCX, XLSX, and other common document formats. The MCP server infers the MIME type from the `filename` extension, so always include the original file extension when passing `file_data`. If the extension is missing or unusual, the server may reject the upload with an `unsupported_file_type` error."
|
|
4811
|
+
},
|
|
4812
|
+
{
|
|
4813
|
+
type: "heading",
|
|
4814
|
+
level: 3,
|
|
4815
|
+
id: "drag-drop-example",
|
|
4816
|
+
text: "Example: drag-and-drop extraction flow"
|
|
4817
|
+
},
|
|
4818
|
+
{
|
|
4819
|
+
type: "code",
|
|
4820
|
+
language: "json",
|
|
4821
|
+
title: "What the agent sends when a user drops a PDF",
|
|
4822
|
+
code: `// User drops "receipt-2026-05.pdf" into the chat
|
|
4823
|
+
// The MCP client base64-encodes the file bytes automatically
|
|
4824
|
+
// Agent calls talonic_extract:
|
|
4825
|
+
{
|
|
4826
|
+
"file_data": "JVBERi0xLjQKJcOkw7zDtsO8...",
|
|
4827
|
+
"filename": "receipt-2026-05.pdf",
|
|
4828
|
+
"schema": {
|
|
4829
|
+
"type": "object",
|
|
4830
|
+
"properties": {
|
|
4831
|
+
"merchant": { "type": "string" },
|
|
4832
|
+
"date": { "type": "string", "format": "date" },
|
|
4833
|
+
"total": { "type": "number" },
|
|
4834
|
+
"payment_method": { "type": "string" }
|
|
4835
|
+
},
|
|
4836
|
+
"required": ["merchant", "total"]
|
|
4837
|
+
}
|
|
4838
|
+
}`
|
|
4839
|
+
},
|
|
4840
|
+
{
|
|
4841
|
+
type: "code",
|
|
4842
|
+
language: "json",
|
|
4843
|
+
title: "Extraction response from dropped file",
|
|
4844
|
+
code: `{
|
|
4845
|
+
"status": "complete",
|
|
4846
|
+
"document": {
|
|
4847
|
+
"id": "doc_f1e2...",
|
|
4848
|
+
"filename": "receipt-2026-05.pdf",
|
|
4849
|
+
"pages": 1,
|
|
4850
|
+
"type_detected": "receipt"
|
|
4851
|
+
},
|
|
4852
|
+
"data": {
|
|
4853
|
+
"merchant": "Coffee House Berlin",
|
|
4854
|
+
"date": "2026-05-07",
|
|
4855
|
+
"total": 14.80,
|
|
4856
|
+
"payment_method": "Visa ending 4242"
|
|
4857
|
+
},
|
|
4858
|
+
"confidence": { "overall": 0.95 }
|
|
4859
|
+
}`
|
|
4860
|
+
},
|
|
4861
|
+
{
|
|
4862
|
+
type: "paragraph",
|
|
4863
|
+
text: "The drag-and-drop flow works identically across Claude Desktop, Cowork, and other chat-style MCP clients that support file attachments. The key requirement is that the client encodes the file as base64 and passes it in the `file_data` parameter alongside the original `filename`. The MCP server uses the filename extension to determine the MIME type, decodes the base64 bytes, and uploads the file to the Talonic API in a single request."
|
|
4864
|
+
},
|
|
4865
|
+
{
|
|
4866
|
+
type: "paragraph",
|
|
4867
|
+
text: "This `file_data` path works without limit in local-stdio installs (Claude Desktop, Cursor, Cline, Continue, Cowork). It does **not** work in the **Claude.ai hosted connector**, which caps tool-call arguments at ~32 KB decoded (~43 KB base64, measured against production) \u2014 a real PDF is silently truncated. In hosted connectors, use **`talonic_request_upload`**: it returns a browser link (`https://app.talonic.com/u/<token>`) the user opens to drop the file, after which the agent polls `talonic_get_document` until `status` is `completed` and then calls `talonic_extract` by `document_id`. `file_url` (a publicly reachable URL) and a pre-uploaded `document_id` also work."
|
|
4868
|
+
},
|
|
4869
|
+
{
|
|
4870
|
+
type: "callout",
|
|
4871
|
+
text: "Tool descriptions advertise `file_data` as the recommended input for chat-style clients, so well-trained agents reach for it automatically. No client-side configuration required."
|
|
4872
|
+
}
|
|
4873
|
+
],
|
|
4874
|
+
related: [
|
|
4875
|
+
{ label: "talonic_extract", slug: "talonic-extract" },
|
|
4876
|
+
{ label: "talonic_to_markdown", slug: "talonic-to-markdown" },
|
|
4877
|
+
{ label: "Common Issues", slug: "common-issues" }
|
|
4878
|
+
],
|
|
4879
|
+
faq: [
|
|
4880
|
+
{
|
|
4881
|
+
question: "Can I drag and drop files into Claude Desktop with Talonic?",
|
|
4882
|
+
answer: "Yes. Since @talonic/mcp@0.1.4, talonic_extract and talonic_to_markdown accept base64 file data directly, so you can drop a PDF into Claude Desktop and extract data without file path setup."
|
|
4883
|
+
},
|
|
4884
|
+
{
|
|
4885
|
+
question: "What file types can I drag and drop?",
|
|
4886
|
+
answer: "PDF, PNG, JPG, TIFF, DOCX, XLSX, and other common document formats. The MCP server infers the MIME type from the filename extension."
|
|
4887
|
+
},
|
|
4888
|
+
{
|
|
4889
|
+
question: "Why does drag-and-drop fail with an unsupported_file_type error?",
|
|
4890
|
+
answer: "The filename is missing a recognisable extension. Make sure the original filename with its extension is passed in the filename parameter alongside file_data."
|
|
4891
|
+
},
|
|
4892
|
+
{
|
|
4893
|
+
question: "What happens if the dropped file is too large?",
|
|
4894
|
+
answer: "Base64 encoding increases payload size by about 33%. Most local MCP clients handle this fine, but hosted connectors may have payload limits. For large files (over 10 MB), use file_url with a public URL or upload via the Talonic dashboard and reference by document_id instead."
|
|
4895
|
+
},
|
|
4896
|
+
{
|
|
4897
|
+
question: "Do I need to configure anything for drag-and-drop to work?",
|
|
4898
|
+
answer: "No. The file_data parameter is advertised in the tool descriptions, so MCP clients that support file attachments automatically encode and pass the file. Just drop the file into the chat and provide a schema \u2014 the agent handles the rest."
|
|
4899
|
+
}
|
|
4900
|
+
],
|
|
4901
|
+
mentions: ["drag-and-drop", "file_data", "base64", "Claude Desktop"]
|
|
4902
|
+
},
|
|
4903
|
+
{
|
|
4904
|
+
slug: "how-it-works",
|
|
4905
|
+
parentSlug: "features",
|
|
4906
|
+
title: "How It Works",
|
|
4907
|
+
seoTitle: "How the Talonic MCP Server Works \u2014 Architecture Guide",
|
|
4908
|
+
description: "Architecture of the Talonic MCP server: MCP over stdio or Streamable HTTP on the agent side, HTTPS calls with Bearer auth to api.talonic.com on the other.",
|
|
4909
|
+
content: [
|
|
4910
|
+
{
|
|
4911
|
+
type: "code",
|
|
4912
|
+
language: "text",
|
|
4913
|
+
title: "Architecture",
|
|
3371
4914
|
code: `Agent (Claude Desktop / Cursor / Cline / etc.)
|
|
3372
4915
|
\u2193 MCP protocol over stdio
|
|
3373
4916
|
Talonic MCP server (this package)
|
|
@@ -3380,7 +4923,7 @@ api.talonic.com`
|
|
|
3380
4923
|
},
|
|
3381
4924
|
{
|
|
3382
4925
|
type: "paragraph",
|
|
3383
|
-
text: "The MCP server acts as a thin translation layer between the MCP protocol and the Talonic REST API. It receives tool calls from the agent over **stdio** (local mode) or **streamable HTTP** (hosted mode), validates parameters, constructs the appropriate API request, and returns the response in the MCP-standard `content` format the agent expects."
|
|
4926
|
+
text: "The MCP server acts as a thin translation layer between the MCP protocol and the Talonic REST API \u2014 the same API the [Talonic Node SDK](https://talonic.com/docs/sdk) wraps for application code. It receives tool calls from the agent over **stdio** (local mode) or **streamable HTTP** (hosted mode), validates parameters, constructs the appropriate API request, and returns the response in the MCP-standard `content` format the agent expects."
|
|
3384
4927
|
},
|
|
3385
4928
|
{
|
|
3386
4929
|
type: "paragraph",
|
|
@@ -3446,7 +4989,7 @@ api.talonic.com`
|
|
|
3446
4989
|
],
|
|
3447
4990
|
related: [
|
|
3448
4991
|
{ label: "Environment Variables", slug: "env-variables" },
|
|
3449
|
-
{ label: "
|
|
4992
|
+
{ label: "Common Issues", slug: "common-issues" },
|
|
3450
4993
|
{ label: "Install Overview", slug: "install-overview" }
|
|
3451
4994
|
],
|
|
3452
4995
|
faq: [
|
|
@@ -3481,8 +5024,8 @@ var sections5 = [
|
|
|
3481
5024
|
slug: "env-variables",
|
|
3482
5025
|
parentSlug: "configuration",
|
|
3483
5026
|
title: "Environment Variables",
|
|
3484
|
-
seoTitle: "
|
|
3485
|
-
description: "
|
|
5027
|
+
seoTitle: "Environment Variables \u2014 Talonic MCP Server Reference",
|
|
5028
|
+
description: "Configure the Talonic MCP server with environment variables: the required TALONIC_API_KEY, the optional TALONIC_BASE_URL override, and hosted-mode Bearer auth.",
|
|
3486
5029
|
content: [
|
|
3487
5030
|
{ type: "paragraph", text: "Set via the `env` block in your MCP client config:" },
|
|
3488
5031
|
{
|
|
@@ -3504,7 +5047,7 @@ var sections5 = [
|
|
|
3504
5047
|
},
|
|
3505
5048
|
{
|
|
3506
5049
|
type: "paragraph",
|
|
3507
|
-
text: "The `TALONIC_API_KEY` is the only required configuration. It authenticates every API call the MCP server makes on your behalf.
|
|
5050
|
+
text: "The `TALONIC_API_KEY` is the only required configuration. It authenticates every API call the MCP server makes on your behalf. Talonic keys start with `tlnc_`. The server checks only that the variable is set \u2014 it does not validate the prefix at startup, so a malformed or revoked key boots normally and then fails on the first tool call with a `401`."
|
|
3508
5051
|
},
|
|
3509
5052
|
{
|
|
3510
5053
|
type: "paragraph",
|
|
@@ -3516,7 +5059,7 @@ var sections5 = [
|
|
|
3516
5059
|
},
|
|
3517
5060
|
{
|
|
3518
5061
|
type: "paragraph",
|
|
3519
|
-
text: "If the MCP server cannot read the API key at startup, it exits with a
|
|
5062
|
+
text: "If the MCP server cannot read the API key at startup, it exits immediately with `Error: TALONIC_API_KEY environment variable is required.` and a pointer to `https://app.talonic.com`. Common causes include a malformed `env` block in the JSON config, a typo in the variable name, or the MCP client not passing environment variables through to the spawned process. Always fully restart the client after editing the config."
|
|
3520
5063
|
},
|
|
3521
5064
|
{
|
|
3522
5065
|
type: "heading",
|
|
@@ -3575,6 +5118,39 @@ var sections5 = [
|
|
|
3575
5118
|
type: "paragraph",
|
|
3576
5119
|
text: "When using the hosted server at `mcp.talonic.com`, environment variables are not used at all. Instead, the API key is passed in the `Authorization` header as a `Bearer` token. This means the `env` block is irrelevant for hosted configurations \u2014 only the `url` and `headers` fields matter. If you switch from local to hosted, remove the `env`, `command`, and `args` fields and replace them with `url` and `headers`."
|
|
3577
5120
|
},
|
|
5121
|
+
{
|
|
5122
|
+
type: "heading",
|
|
5123
|
+
level: 3,
|
|
5124
|
+
id: "env-self-hosting",
|
|
5125
|
+
text: "Self-hosting the HTTP transport"
|
|
5126
|
+
},
|
|
5127
|
+
{
|
|
5128
|
+
type: "paragraph",
|
|
5129
|
+
text: "The two variables above are everything a local `npx` install reads. If you self-host the streamable-HTTP transport (`npm run start:http`) instead of using `mcp.talonic.com`, a few more variables shape how the server advertises itself to OAuth clients. These are irrelevant for stdio installs and for anyone using the hosted endpoint."
|
|
5130
|
+
},
|
|
5131
|
+
{
|
|
5132
|
+
type: "param-table",
|
|
5133
|
+
params: [
|
|
5134
|
+
{
|
|
5135
|
+
name: "PORT",
|
|
5136
|
+
type: "number",
|
|
5137
|
+
description: "Port the HTTP transport listens on.",
|
|
5138
|
+
default: "3000"
|
|
5139
|
+
},
|
|
5140
|
+
{
|
|
5141
|
+
name: "MCP_RESOURCE_URL",
|
|
5142
|
+
type: "string",
|
|
5143
|
+
description: "Public URL this deployment advertises as its OAuth protected-resource identifier.",
|
|
5144
|
+
default: "https://mcp.talonic.com"
|
|
5145
|
+
},
|
|
5146
|
+
{
|
|
5147
|
+
name: "OAUTH_AUTHORIZATION_SERVER",
|
|
5148
|
+
type: "string",
|
|
5149
|
+
description: "Authorization server clients are pointed at during OAuth discovery.",
|
|
5150
|
+
default: "https://api.talonic.com"
|
|
5151
|
+
}
|
|
5152
|
+
]
|
|
5153
|
+
},
|
|
3578
5154
|
{
|
|
3579
5155
|
type: "callout",
|
|
3580
5156
|
variant: "warning",
|
|
@@ -3597,7 +5173,7 @@ var sections5 = [
|
|
|
3597
5173
|
},
|
|
3598
5174
|
{
|
|
3599
5175
|
question: "What happens if the API key is missing or invalid?",
|
|
3600
|
-
answer: "
|
|
5176
|
+
answer: "A missing key exits at startup with 'Error: TALONIC_API_KEY environment variable is required.' An invalid key is different: the server does not validate the prefix at startup, so it boots normally and the first tool call fails with a 401. Check that the env block is correctly formatted, then restart the client."
|
|
3601
5177
|
},
|
|
3602
5178
|
{
|
|
3603
5179
|
question: "Can I set the API key in my shell profile instead of the config file?",
|
|
@@ -3618,8 +5194,8 @@ var sections6 = [
|
|
|
3618
5194
|
slug: "common-issues",
|
|
3619
5195
|
parentSlug: "troubleshooting",
|
|
3620
5196
|
title: "Common Issues",
|
|
3621
|
-
seoTitle: "
|
|
3622
|
-
description: "
|
|
5197
|
+
seoTitle: "Common Issues \u2014 Talonic MCP Server Troubleshooting",
|
|
5198
|
+
description: "Fix the most common Talonic MCP server problems: a missing API key, tools not appearing in the client, extract schema errors, and filter validation failures.",
|
|
3623
5199
|
content: [
|
|
3624
5200
|
{
|
|
3625
5201
|
type: "paragraph",
|
|
@@ -3792,16 +5368,16 @@ var sections6 = [
|
|
|
3792
5368
|
slug: "known-limitations",
|
|
3793
5369
|
parentSlug: "troubleshooting",
|
|
3794
5370
|
title: "Known Limitations",
|
|
3795
|
-
seoTitle: "Known Limitations
|
|
3796
|
-
description: "
|
|
5371
|
+
seoTitle: "Known Limitations of the Talonic MCP Server and Tools",
|
|
5372
|
+
description: "Limitations of the Talonic MCP server: the extract schema requirement, filter typing rules, the Claude.ai drag-and-drop stall, and header-based cost reporting.",
|
|
3797
5373
|
content: [
|
|
3798
5374
|
{
|
|
3799
5375
|
type: "paragraph",
|
|
3800
|
-
text: "The Talonic MCP server
|
|
5376
|
+
text: "The Talonic MCP server is production-ready but has a number of known limitations that are planned for future releases. Understanding these limitations helps agents make better decisions about when and how to use each tool."
|
|
3801
5377
|
},
|
|
3802
5378
|
{
|
|
3803
5379
|
type: "paragraph",
|
|
3804
|
-
text: "Most limitations relate to the
|
|
5380
|
+
text: "Most limitations relate to the maturity of the extraction pipeline. Certain filter operators, cost reporting, and per-field provenance have constraints. These are documented here so agent developers can set accurate expectations and build appropriate fallbacks."
|
|
3805
5381
|
},
|
|
3806
5382
|
{
|
|
3807
5383
|
type: "list",
|
|
@@ -3812,12 +5388,12 @@ var sections6 = [
|
|
|
3812
5388
|
"**Schema field type affects filter operators.** Numeric operators (`gt`, `gte`, `lt`, `lte`, `between`) only work on fields typed as `number` in the schema. Numeric values stored as strings (with currency symbols, locale formatting, etc.) silently return zero results. Type your schema fields appropriately at design time.",
|
|
3813
5389
|
"**`is_not_empty` filter checks materialized data.** Results reflect values within seconds of extraction completing. For batch-mode documents, values are materialized after the batch poll cycle completes.",
|
|
3814
5390
|
"**Dragging a file directly into a Claude.ai chat does not work through the hosted connector** \u2014 use `talonic_request_upload` instead. A base64-encoded real PDF exceeds Claude.ai's tool-call argument cap (~32 KB decoded / ~43 KB base64, measured against production), so `file_data` is silently truncated and the API returns `null` fields. This is a structural platform limit, not a Talonic bug. The supported path is the browser-handoff flow: `talonic_request_upload` returns an `app.talonic.com/u/<token>` link the user opens to drop the file; poll `talonic_get_document` until `status` is `completed`, then `talonic_extract` by `document_id`. Alternatives: `file_url` or a pre-uploaded `document_id`. Local-stdio installs (Claude Desktop, Cursor, Cline, Continue, Cowork) have no cap and use `file_data` directly.",
|
|
3815
|
-
"**Cost
|
|
5391
|
+
"**Cost reporting depends on response headers.** `talonic_extract` returns a `cost` object (`costCredits`, `costEur`, `balanceCredits`, and the registry-vs-AI cell split) parsed from the `X-Talonic-*` response headers. It is `null` for non-extract calls and may be absent against older API deployments that do not send those headers, so treat it as optional and fall back to `talonic_get_balance` rather than assuming it is present."
|
|
3816
5392
|
]
|
|
3817
5393
|
},
|
|
3818
5394
|
{
|
|
3819
5395
|
type: "paragraph",
|
|
3820
|
-
text: "Agents should handle these limitations gracefully. For the schema requirement, always construct or reference a schema before calling `talonic_extract`.
|
|
5396
|
+
text: "Agents should handle these limitations gracefully. For the schema requirement, always construct or reference a schema before calling `talonic_extract`. When a user asks what a run cost, read the `cost` object off the extract response and fall back to `talonic_get_balance` if it is absent; for rates and historical spend, use `talonic_get_pricing` and `talonic_get_usage` rather than guessing."
|
|
3821
5397
|
},
|
|
3822
5398
|
{
|
|
3823
5399
|
type: "paragraph",
|
|
@@ -3869,7 +5445,7 @@ var sections6 = [
|
|
|
3869
5445
|
faq: [
|
|
3870
5446
|
{
|
|
3871
5447
|
question: "What are the known limitations of Talonic MCP?",
|
|
3872
|
-
answer: "talonic_extract needs fields specified via schema, schema_id, or auto_schema: true (open capture). Filter requires filterable: true fields (use talonic_search first to discover them). Numeric filter operators require schema fields typed as number. Drag-and-drop file uploads in Claude.ai currently stall via the hosted MCP; use file_url or document_id instead, or use the local stdio install.
|
|
5448
|
+
answer: "talonic_extract needs fields specified via schema, schema_id, or auto_schema: true (open capture). Filter requires filterable: true fields (use talonic_search first to discover them). Numeric filter operators require schema fields typed as number. Drag-and-drop file uploads in Claude.ai currently stall via the hosted MCP; use file_url or document_id instead, or use the local stdio install. The cost object on an extract response is header-derived, so it can be absent against older API deployments."
|
|
3873
5449
|
},
|
|
3874
5450
|
{
|
|
3875
5451
|
question: "Can I extract without knowing the fields up front (schema-less)?",
|
|
@@ -3877,7 +5453,7 @@ var sections6 = [
|
|
|
3877
5453
|
},
|
|
3878
5454
|
{
|
|
3879
5455
|
question: "How do I check my credit balance or costs?",
|
|
3880
|
-
answer: "
|
|
5456
|
+
answer: "For a single extraction, read the cost object on the talonic_extract response: costCredits, costEur, and balanceCredits. For workspace-level figures, call talonic_get_balance for the remaining balance, talonic_get_pricing for per-unit rates, and talonic_get_usage for what has already been spent."
|
|
3881
5457
|
},
|
|
3882
5458
|
{
|
|
3883
5459
|
question: "How do I report a new limitation or bug?",
|
|
@@ -3901,8 +5477,8 @@ var sections6 = [
|
|
|
3901
5477
|
slug: "upgrading",
|
|
3902
5478
|
parentSlug: "troubleshooting",
|
|
3903
5479
|
title: "Upgrading",
|
|
3904
|
-
seoTitle: "Upgrading from Older Versions
|
|
3905
|
-
description: "
|
|
5480
|
+
seoTitle: "Upgrading the Talonic MCP Server from Older Versions",
|
|
5481
|
+
description: "Upgrade @talonic/mcp from versions before 0.1.3, where a silent-bin bug stopped the server from launching through the npm symlink that every MCP client uses.",
|
|
3906
5482
|
content: [
|
|
3907
5483
|
{
|
|
3908
5484
|
type: "paragraph",
|