@talonic/mcp 0.1.75 → 0.1.76
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 +7 -0
- package/README.md +7 -1
- package/dist/content.js +1131 -167
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +384 -1
- package/dist/http-server.js.map +1 -1
- package/dist/index.js +384 -1
- package/dist/index.js.map +1 -1
- package/dist/server.js +384 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/content.js
CHANGED
|
@@ -36,6 +36,12 @@ 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" },
|
|
@@ -100,8 +106,8 @@ var sections = [
|
|
|
100
106
|
slug: "mcp-introduction",
|
|
101
107
|
parentSlug: "overview",
|
|
102
108
|
title: "Introduction",
|
|
103
|
-
seoTitle: "MCP Server Introduction \u2014
|
|
104
|
-
description: "Official Talonic MCP server
|
|
109
|
+
seoTitle: "Talonic MCP Server Introduction \u2014 Document Extraction",
|
|
110
|
+
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
111
|
content: [
|
|
106
112
|
{
|
|
107
113
|
type: "paragraph",
|
|
@@ -109,7 +115,7 @@ var sections = [
|
|
|
109
115
|
},
|
|
110
116
|
{
|
|
111
117
|
type: "paragraph",
|
|
112
|
-
text: "
|
|
118
|
+
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`), and the Agent-task worklist (`talonic_list_agent_tasks` through `talonic_submit_agent_task`), plus the `talonic://schemas` and `talonic://webhooks/reference` resources."
|
|
113
119
|
},
|
|
114
120
|
{
|
|
115
121
|
type: "paragraph",
|
|
@@ -168,13 +174,13 @@ var sections = [
|
|
|
168
174
|
{
|
|
169
175
|
type: "callout",
|
|
170
176
|
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."
|
|
177
|
+
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
178
|
}
|
|
173
179
|
],
|
|
174
180
|
related: [
|
|
175
181
|
{ label: "Why Use This", slug: "why-mcp" },
|
|
176
182
|
{ label: "Claude Desktop", slug: "claude-desktop" },
|
|
177
|
-
{ label: "
|
|
183
|
+
{ label: "Install Overview", slug: "install-overview" }
|
|
178
184
|
],
|
|
179
185
|
faq: [
|
|
180
186
|
{
|
|
@@ -194,8 +200,8 @@ var sections = [
|
|
|
194
200
|
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
201
|
},
|
|
196
202
|
{
|
|
197
|
-
question: "
|
|
198
|
-
answer: "
|
|
203
|
+
question: "What tools does the Talonic MCP server expose?",
|
|
204
|
+
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
205
|
}
|
|
200
206
|
],
|
|
201
207
|
mentions: ["MCP", "Model Context Protocol", "AI agents", "document extraction"]
|
|
@@ -204,8 +210,8 @@ var sections = [
|
|
|
204
210
|
slug: "why-mcp",
|
|
205
211
|
parentSlug: "overview",
|
|
206
212
|
title: "Why Use This",
|
|
207
|
-
seoTitle: "Why Talonic MCP
|
|
208
|
-
description: "Why AI agents
|
|
213
|
+
seoTitle: "Why Use the Talonic MCP Server Instead of OCR + LLM",
|
|
214
|
+
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
215
|
content: [
|
|
210
216
|
{
|
|
211
217
|
type: "paragraph",
|
|
@@ -213,7 +219,7 @@ var sections = [
|
|
|
213
219
|
},
|
|
214
220
|
{
|
|
215
221
|
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.
|
|
222
|
+
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
223
|
},
|
|
218
224
|
{
|
|
219
225
|
type: "paragraph",
|
|
@@ -295,8 +301,8 @@ var sections = [
|
|
|
295
301
|
slug: "agent-decision-guide",
|
|
296
302
|
parentSlug: "overview",
|
|
297
303
|
title: "Agent Decision Guide",
|
|
298
|
-
seoTitle: "Agent Decision Guide \u2014 Talonic
|
|
299
|
-
description: "How an AI agent should
|
|
304
|
+
seoTitle: "Agent Decision Guide \u2014 Choosing the Right Talonic Tool",
|
|
305
|
+
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
306
|
content: [
|
|
301
307
|
{
|
|
302
308
|
type: "paragraph",
|
|
@@ -304,7 +310,7 @@ var sections = [
|
|
|
304
310
|
},
|
|
305
311
|
{
|
|
306
312
|
type: "paragraph",
|
|
307
|
-
text: "
|
|
313
|
+
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
314
|
},
|
|
309
315
|
{
|
|
310
316
|
type: "paragraph",
|
|
@@ -389,8 +395,28 @@ var sections = [
|
|
|
389
395
|
"**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
396
|
"**The user wants to discuss or revise** an extraction you already produced. Reason over the previous result instead of re-extracting.",
|
|
391
397
|
"**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
|
|
398
|
+
"**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
399
|
]
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
type: "code",
|
|
403
|
+
language: "json",
|
|
404
|
+
title: "Worked example: 'invoices over 1000 EUR' is a filter, not an extract",
|
|
405
|
+
code: `// User: "Which of my invoices are over 1000 EUR?"
|
|
406
|
+
// The documents are already extracted \u2014 do NOT re-extract. Filter instead:
|
|
407
|
+
// talonic_filter({
|
|
408
|
+
// "conditions": [
|
|
409
|
+
// { "field": "total", "op": "gt", "value": 1000 }
|
|
410
|
+
// ]
|
|
411
|
+
// })
|
|
412
|
+
// \u2192 matching documents with their extracted field values, zero credits spent
|
|
413
|
+
// on re-processing. Only fall back to talonic_search for conceptual queries
|
|
414
|
+
// like "the contract about the Berlin office lease".`
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
type: "callout",
|
|
418
|
+
variant: "info",
|
|
419
|
+
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
420
|
}
|
|
395
421
|
],
|
|
396
422
|
related: [
|
|
@@ -419,8 +445,8 @@ var sections = [
|
|
|
419
445
|
slug: "get-api-key",
|
|
420
446
|
parentSlug: "overview",
|
|
421
447
|
title: "Get an API Key",
|
|
422
|
-
seoTitle: "Get
|
|
423
|
-
description: "
|
|
448
|
+
seoTitle: "Get a Talonic API Key for the MCP Server in 30 Seconds",
|
|
449
|
+
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
450
|
content: [
|
|
425
451
|
{
|
|
426
452
|
type: "paragraph",
|
|
@@ -554,8 +580,8 @@ var sections2 = [
|
|
|
554
580
|
slug: "install-overview",
|
|
555
581
|
parentSlug: "install",
|
|
556
582
|
title: "Install Overview",
|
|
557
|
-
seoTitle: "Install Talonic MCP \u2014
|
|
558
|
-
description: "Install the Talonic MCP server
|
|
583
|
+
seoTitle: "Install the Talonic MCP Server \u2014 Hosted or Local npx",
|
|
584
|
+
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
585
|
content: [
|
|
560
586
|
{
|
|
561
587
|
type: "paragraph",
|
|
@@ -581,7 +607,7 @@ var sections2 = [
|
|
|
581
607
|
"Click **Connect**. You are redirected to Talonic to sign in.",
|
|
582
608
|
"Sign in with Google, Microsoft, or your company SSO.",
|
|
583
609
|
"Approve the consent screen. The requested scopes are `extract:write`, `documents:read`, and `schemas:read`. Pick a workspace if you have multiple.",
|
|
584
|
-
"You are returned to Claude.ai with the connector live.
|
|
610
|
+
"You are returned to Claude.ai with the connector live. The full Talonic tool set is available in any new conversation."
|
|
585
611
|
]
|
|
586
612
|
},
|
|
587
613
|
{
|
|
@@ -633,7 +659,7 @@ var sections2 = [
|
|
|
633
659
|
},
|
|
634
660
|
{
|
|
635
661
|
type: "paragraph",
|
|
636
|
-
text: "All three install paths expose the same
|
|
662
|
+
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
663
|
},
|
|
638
664
|
{
|
|
639
665
|
type: "heading",
|
|
@@ -643,7 +669,7 @@ var sections2 = [
|
|
|
643
669
|
},
|
|
644
670
|
{
|
|
645
671
|
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,
|
|
672
|
+
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
673
|
},
|
|
648
674
|
{
|
|
649
675
|
type: "code",
|
|
@@ -715,8 +741,8 @@ var sections2 = [
|
|
|
715
741
|
slug: "claude-desktop",
|
|
716
742
|
parentSlug: "install",
|
|
717
743
|
title: "Claude Desktop",
|
|
718
|
-
seoTitle: "Claude Desktop
|
|
719
|
-
description: "Configure the Talonic MCP server in Claude Desktop on macOS and
|
|
744
|
+
seoTitle: "Set Up Talonic MCP in Claude Desktop on macOS & Windows",
|
|
745
|
+
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
746
|
content: [
|
|
721
747
|
{
|
|
722
748
|
type: "paragraph",
|
|
@@ -728,7 +754,7 @@ var sections2 = [
|
|
|
728
754
|
{ type: "code", language: "json", code: MCP_CONFIG_SNIPPET },
|
|
729
755
|
{
|
|
730
756
|
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
|
|
757
|
+
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
758
|
},
|
|
733
759
|
{
|
|
734
760
|
type: "paragraph",
|
|
@@ -812,8 +838,8 @@ var sections2 = [
|
|
|
812
838
|
slug: "cursor",
|
|
813
839
|
parentSlug: "install",
|
|
814
840
|
title: "Cursor",
|
|
815
|
-
seoTitle: "
|
|
816
|
-
description: "
|
|
841
|
+
seoTitle: "How to Set Up the Talonic MCP Server in the Cursor IDE",
|
|
842
|
+
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
843
|
content: [
|
|
818
844
|
{
|
|
819
845
|
type: "paragraph",
|
|
@@ -877,6 +903,10 @@ var sections2 = [
|
|
|
877
903
|
type: "paragraph",
|
|
878
904
|
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
905
|
},
|
|
906
|
+
{
|
|
907
|
+
type: "paragraph",
|
|
908
|
+
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."
|
|
909
|
+
},
|
|
880
910
|
{
|
|
881
911
|
type: "callout",
|
|
882
912
|
variant: "info",
|
|
@@ -911,8 +941,8 @@ var sections2 = [
|
|
|
911
941
|
slug: "cline",
|
|
912
942
|
parentSlug: "install",
|
|
913
943
|
title: "Cline",
|
|
914
|
-
seoTitle: "
|
|
915
|
-
description: "Configure the Talonic MCP server in the Cline VS Code extension.",
|
|
944
|
+
seoTitle: "Set Up the Talonic MCP Server in Cline for VS Code",
|
|
945
|
+
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
946
|
content: [
|
|
917
947
|
{
|
|
918
948
|
type: "paragraph",
|
|
@@ -1000,8 +1030,8 @@ var sections2 = [
|
|
|
1000
1030
|
slug: "continue",
|
|
1001
1031
|
parentSlug: "install",
|
|
1002
1032
|
title: "Continue",
|
|
1003
|
-
seoTitle: "Continue
|
|
1004
|
-
description: "
|
|
1033
|
+
seoTitle: "Set Up Talonic MCP in Continue for VS Code & JetBrains",
|
|
1034
|
+
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
1035
|
content: [
|
|
1006
1036
|
{ type: "paragraph", text: "Edit `~/.continue/config.json`. Add to the `mcpServers` array:" },
|
|
1007
1037
|
{ type: "heading", level: 3, id: "continue-hosted", text: "Hosted (recommended)" },
|
|
@@ -1035,7 +1065,7 @@ var sections2 = [
|
|
|
1035
1065
|
},
|
|
1036
1066
|
{
|
|
1037
1067
|
type: "paragraph",
|
|
1038
|
-
text: "After saving the config, reload your IDE window to pick up the changes. Continue discovers Talonic's
|
|
1068
|
+
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
1069
|
},
|
|
1040
1070
|
{
|
|
1041
1071
|
type: "paragraph",
|
|
@@ -1108,8 +1138,8 @@ var sections2 = [
|
|
|
1108
1138
|
slug: "cowork",
|
|
1109
1139
|
parentSlug: "install",
|
|
1110
1140
|
title: "Cowork",
|
|
1111
|
-
seoTitle: "Cowork
|
|
1112
|
-
description: "Configure the Talonic MCP server in Cowork.",
|
|
1141
|
+
seoTitle: "Set Up the Talonic MCP Server in Cowork \u2014 Quick Guide",
|
|
1142
|
+
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
1143
|
content: [
|
|
1114
1144
|
{ type: "paragraph", text: "Open Cowork settings \u2192 MCP Servers \u2192 Add." },
|
|
1115
1145
|
{ type: "heading", level: 3, id: "cowork-hosted", text: "Hosted (recommended)" },
|
|
@@ -1118,7 +1148,7 @@ var sections2 = [
|
|
|
1118
1148
|
{ type: "code", language: "json", code: MCP_CONFIG_SNIPPET },
|
|
1119
1149
|
{
|
|
1120
1150
|
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,
|
|
1151
|
+
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
1152
|
},
|
|
1123
1153
|
{
|
|
1124
1154
|
type: "paragraph",
|
|
@@ -1167,6 +1197,10 @@ var sections2 = [
|
|
|
1167
1197
|
type: "paragraph",
|
|
1168
1198
|
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
1199
|
},
|
|
1200
|
+
{
|
|
1201
|
+
type: "paragraph",
|
|
1202
|
+
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."
|
|
1203
|
+
},
|
|
1170
1204
|
{
|
|
1171
1205
|
type: "callout",
|
|
1172
1206
|
variant: "info",
|
|
@@ -1205,8 +1239,8 @@ var sections3 = [
|
|
|
1205
1239
|
slug: "talonic-extract",
|
|
1206
1240
|
parentSlug: "tools",
|
|
1207
1241
|
title: "talonic_extract",
|
|
1208
|
-
seoTitle: "talonic_extract
|
|
1209
|
-
description: "
|
|
1242
|
+
seoTitle: "talonic_extract \u2014 Structured Document Extraction Tool",
|
|
1243
|
+
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
1244
|
content: [
|
|
1211
1245
|
{ type: "paragraph", text: "Extract structured, schema-validated data from a document." },
|
|
1212
1246
|
{
|
|
@@ -1423,8 +1457,8 @@ var sections3 = [
|
|
|
1423
1457
|
slug: "talonic-search",
|
|
1424
1458
|
parentSlug: "tools",
|
|
1425
1459
|
title: "talonic_search",
|
|
1426
|
-
seoTitle: "talonic_search
|
|
1427
|
-
description: "
|
|
1460
|
+
seoTitle: "talonic_search \u2014 Workspace Omnisearch Tool for Agents",
|
|
1461
|
+
description: "MCP omnisearch tool across documents, fields, sources, and schemas in a Talonic workspace. Handles conceptual, fuzzy queries and returns typed field matches.",
|
|
1428
1462
|
content: [
|
|
1429
1463
|
{
|
|
1430
1464
|
type: "paragraph",
|
|
@@ -1583,8 +1617,8 @@ var sections3 = [
|
|
|
1583
1617
|
slug: "talonic-filter",
|
|
1584
1618
|
parentSlug: "tools",
|
|
1585
1619
|
title: "talonic_filter",
|
|
1586
|
-
seoTitle: "talonic_filter
|
|
1587
|
-
description: "
|
|
1620
|
+
seoTitle: "talonic_filter \u2014 Filter Documents by Extracted Fields",
|
|
1621
|
+
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
1622
|
content: [
|
|
1589
1623
|
{
|
|
1590
1624
|
type: "paragraph",
|
|
@@ -1788,8 +1822,8 @@ var sections3 = [
|
|
|
1788
1822
|
slug: "talonic-get-document",
|
|
1789
1823
|
parentSlug: "tools",
|
|
1790
1824
|
title: "talonic_get_document",
|
|
1791
|
-
seoTitle: "talonic_get_document
|
|
1792
|
-
description: "
|
|
1825
|
+
seoTitle: "talonic_get_document \u2014 Document Metadata & Status Tool",
|
|
1826
|
+
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
1827
|
content: [
|
|
1794
1828
|
{
|
|
1795
1829
|
type: "paragraph",
|
|
@@ -1919,8 +1953,8 @@ var sections3 = [
|
|
|
1919
1953
|
slug: "talonic-to-markdown",
|
|
1920
1954
|
parentSlug: "tools",
|
|
1921
1955
|
title: "talonic_to_markdown",
|
|
1922
|
-
seoTitle: "talonic_to_markdown
|
|
1923
|
-
description: "
|
|
1956
|
+
seoTitle: "talonic_to_markdown \u2014 OCR Documents to Clean Markdown",
|
|
1957
|
+
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
1958
|
content: [
|
|
1925
1959
|
{
|
|
1926
1960
|
type: "paragraph",
|
|
@@ -2071,8 +2105,8 @@ Payment terms: Net 30`
|
|
|
2071
2105
|
slug: "talonic-list-schemas",
|
|
2072
2106
|
parentSlug: "tools",
|
|
2073
2107
|
title: "talonic_list_schemas",
|
|
2074
|
-
seoTitle: "talonic_list_schemas
|
|
2075
|
-
description: "
|
|
2108
|
+
seoTitle: "talonic_list_schemas \u2014 List Saved Extraction Schemas",
|
|
2109
|
+
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
2110
|
content: [
|
|
2077
2111
|
{
|
|
2078
2112
|
type: "paragraph",
|
|
@@ -2215,8 +2249,8 @@ Payment terms: Net 30`
|
|
|
2215
2249
|
slug: "talonic-save-schema",
|
|
2216
2250
|
parentSlug: "tools",
|
|
2217
2251
|
title: "talonic_save_schema",
|
|
2218
|
-
seoTitle: "talonic_save_schema
|
|
2219
|
-
description: "
|
|
2252
|
+
seoTitle: "talonic_save_schema \u2014 Save Reusable Extraction Schemas",
|
|
2253
|
+
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
2254
|
content: [
|
|
2221
2255
|
{
|
|
2222
2256
|
type: "paragraph",
|
|
@@ -2412,8 +2446,8 @@ Payment terms: Net 30`
|
|
|
2412
2446
|
slug: "talonic-get-balance",
|
|
2413
2447
|
parentSlug: "tools",
|
|
2414
2448
|
title: "talonic_get_balance",
|
|
2415
|
-
seoTitle: "talonic_get_balance
|
|
2416
|
-
description: "MCP tool
|
|
2449
|
+
seoTitle: "talonic_get_balance \u2014 Check Credits, Burn Rate, Runway",
|
|
2450
|
+
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
2451
|
content: [
|
|
2418
2452
|
{
|
|
2419
2453
|
type: "paragraph",
|
|
@@ -2521,11 +2555,17 @@ Payment terms: Net 30`
|
|
|
2521
2555
|
{
|
|
2522
2556
|
type: "paragraph",
|
|
2523
2557
|
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."
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
type: "callout",
|
|
2561
|
+
variant: "info",
|
|
2562
|
+
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
2563
|
}
|
|
2525
2564
|
],
|
|
2526
2565
|
related: [
|
|
2527
2566
|
{ label: "talonic_extract", slug: "talonic-extract" },
|
|
2528
|
-
{ label: "
|
|
2567
|
+
{ label: "talonic_get_pricing", slug: "talonic-get-pricing" },
|
|
2568
|
+
{ label: "talonic_get_usage", slug: "talonic-get-usage" }
|
|
2529
2569
|
],
|
|
2530
2570
|
faq: [
|
|
2531
2571
|
{
|
|
@@ -2551,8 +2591,8 @@ Payment terms: Net 30`
|
|
|
2551
2591
|
slug: "talonic-get-pricing",
|
|
2552
2592
|
parentSlug: "tools",
|
|
2553
2593
|
title: "talonic_get_pricing",
|
|
2554
|
-
seoTitle: "talonic_get_pricing
|
|
2555
|
-
description: "MCP tool that returns
|
|
2594
|
+
seoTitle: "talonic_get_pricing \u2014 Credit Pricing Catalog for Agents",
|
|
2595
|
+
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
2596
|
content: [
|
|
2557
2597
|
{
|
|
2558
2598
|
type: "paragraph",
|
|
@@ -2651,6 +2691,15 @@ Payment terms: Net 30`
|
|
|
2651
2691
|
{
|
|
2652
2692
|
type: "paragraph",
|
|
2653
2693
|
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."
|
|
2694
|
+
},
|
|
2695
|
+
{
|
|
2696
|
+
type: "paragraph",
|
|
2697
|
+
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."
|
|
2698
|
+
},
|
|
2699
|
+
{
|
|
2700
|
+
type: "callout",
|
|
2701
|
+
variant: "info",
|
|
2702
|
+
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
2703
|
}
|
|
2655
2704
|
],
|
|
2656
2705
|
related: [
|
|
@@ -2685,8 +2734,8 @@ Payment terms: Net 30`
|
|
|
2685
2734
|
slug: "talonic-get-usage",
|
|
2686
2735
|
parentSlug: "tools",
|
|
2687
2736
|
title: "talonic_get_usage",
|
|
2688
|
-
seoTitle: "talonic_get_usage
|
|
2689
|
-
description: "MCP tool that
|
|
2737
|
+
seoTitle: "talonic_get_usage \u2014 Per-Function Credit Usage Reports",
|
|
2738
|
+
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
2739
|
content: [
|
|
2691
2740
|
{
|
|
2692
2741
|
type: "paragraph",
|
|
@@ -2772,6 +2821,15 @@ Payment terms: Net 30`
|
|
|
2772
2821
|
{
|
|
2773
2822
|
type: "paragraph",
|
|
2774
2823
|
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."
|
|
2824
|
+
},
|
|
2825
|
+
{
|
|
2826
|
+
type: "paragraph",
|
|
2827
|
+
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."
|
|
2828
|
+
},
|
|
2829
|
+
{
|
|
2830
|
+
type: "callout",
|
|
2831
|
+
variant: "info",
|
|
2832
|
+
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
2833
|
}
|
|
2776
2834
|
],
|
|
2777
2835
|
related: [
|
|
@@ -2805,8 +2863,8 @@ Payment terms: Net 30`
|
|
|
2805
2863
|
slug: "talonic-request-upload",
|
|
2806
2864
|
parentSlug: "tools",
|
|
2807
2865
|
title: "talonic_request_upload",
|
|
2808
|
-
seoTitle: "talonic_request_upload
|
|
2809
|
-
description: "
|
|
2866
|
+
seoTitle: "talonic_request_upload \u2014 Browser-Handoff File Uploads",
|
|
2867
|
+
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
2868
|
content: [
|
|
2811
2869
|
{
|
|
2812
2870
|
type: "paragraph",
|
|
@@ -2966,13 +3024,21 @@ Payment terms: Net 30`
|
|
|
2966
3024
|
slug: "talonic-list-agent-tasks",
|
|
2967
3025
|
parentSlug: "tools",
|
|
2968
3026
|
title: "talonic_list_agent_tasks",
|
|
2969
|
-
seoTitle: "talonic_list_agent_tasks
|
|
2970
|
-
description: "
|
|
3027
|
+
seoTitle: "talonic_list_agent_tasks \u2014 Agent Worklist for Documents",
|
|
3028
|
+
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
3029
|
content: [
|
|
2972
3030
|
{
|
|
2973
3031
|
type: "paragraph",
|
|
2974
3032
|
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
3033
|
},
|
|
3034
|
+
{
|
|
3035
|
+
type: "paragraph",
|
|
3036
|
+
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."
|
|
3037
|
+
},
|
|
3038
|
+
{
|
|
3039
|
+
type: "paragraph",
|
|
3040
|
+
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."
|
|
3041
|
+
},
|
|
2976
3042
|
{
|
|
2977
3043
|
type: "heading",
|
|
2978
3044
|
level: 3,
|
|
@@ -3009,6 +3075,32 @@ Payment terms: Net 30`
|
|
|
3009
3075
|
}
|
|
3010
3076
|
]
|
|
3011
3077
|
},
|
|
3078
|
+
{
|
|
3079
|
+
type: "code",
|
|
3080
|
+
language: "json",
|
|
3081
|
+
title: "Tool input and response",
|
|
3082
|
+
code: `// talonic_list_agent_tasks({ "status": "available", "limit": 2 })
|
|
3083
|
+
{
|
|
3084
|
+
"data": [
|
|
3085
|
+
{
|
|
3086
|
+
"id": "11111111-1111-4111-8111-111111111111",
|
|
3087
|
+
"document_id": "22222222-2222-4222-8222-222222222222",
|
|
3088
|
+
"stage_id": "33333333-3333-4333-8333-333333333333",
|
|
3089
|
+
"status": "available",
|
|
3090
|
+
"execution_epoch": 1,
|
|
3091
|
+
"claimed_at": null,
|
|
3092
|
+
"lease_expires_at": null,
|
|
3093
|
+
"timeout_at": "2026-08-30T12:00:00.000Z",
|
|
3094
|
+
"created_at": "2026-08-29T09:15:00.000Z"
|
|
3095
|
+
}
|
|
3096
|
+
],
|
|
3097
|
+
"pagination": { "has_more": false, "next_cursor": null }
|
|
3098
|
+
}`
|
|
3099
|
+
},
|
|
3100
|
+
{
|
|
3101
|
+
type: "paragraph",
|
|
3102
|
+
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`.'
|
|
3103
|
+
},
|
|
3012
3104
|
{
|
|
3013
3105
|
type: "callout",
|
|
3014
3106
|
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 +3108,21 @@ Payment terms: Net 30`
|
|
|
3016
3108
|
],
|
|
3017
3109
|
related: [
|
|
3018
3110
|
{ label: "talonic_get_agent_task", slug: "talonic-get-agent-task" },
|
|
3019
|
-
{ label: "talonic_claim_agent_task", slug: "talonic-claim-agent-task" }
|
|
3111
|
+
{ label: "talonic_claim_agent_task", slug: "talonic-claim-agent-task" },
|
|
3112
|
+
{ label: "talonic_submit_agent_task", slug: "talonic-submit-agent-task" }
|
|
3020
3113
|
],
|
|
3021
3114
|
faq: [
|
|
3022
3115
|
{
|
|
3023
3116
|
question: "Does listing Agent tasks expose document data?",
|
|
3024
3117
|
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."
|
|
3118
|
+
},
|
|
3119
|
+
{
|
|
3120
|
+
question: "What do the Agent task statuses mean?",
|
|
3121
|
+
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."
|
|
3122
|
+
},
|
|
3123
|
+
{
|
|
3124
|
+
question: "How does pagination work on the Agent-task worklist?",
|
|
3125
|
+
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
3126
|
}
|
|
3026
3127
|
],
|
|
3027
3128
|
mentions: ["Agent stage", "worklist", "MCP agent", "cursor pagination"]
|
|
@@ -3030,13 +3131,21 @@ Payment terms: Net 30`
|
|
|
3030
3131
|
slug: "talonic-get-agent-task",
|
|
3031
3132
|
parentSlug: "tools",
|
|
3032
3133
|
title: "talonic_get_agent_task",
|
|
3033
|
-
seoTitle: "talonic_get_agent_task
|
|
3034
|
-
description: "
|
|
3134
|
+
seoTitle: "talonic_get_agent_task \u2014 Fetch an Agent Task's Payload",
|
|
3135
|
+
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
3136
|
content: [
|
|
3036
3137
|
{
|
|
3037
3138
|
type: "paragraph",
|
|
3038
3139
|
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
3140
|
},
|
|
3141
|
+
{
|
|
3142
|
+
type: "paragraph",
|
|
3143
|
+
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`."
|
|
3144
|
+
},
|
|
3145
|
+
{
|
|
3146
|
+
type: "paragraph",
|
|
3147
|
+
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."
|
|
3148
|
+
},
|
|
3040
3149
|
{
|
|
3041
3150
|
type: "param-table",
|
|
3042
3151
|
params: [
|
|
@@ -3048,6 +3157,16 @@ Payment terms: Net 30`
|
|
|
3048
3157
|
}
|
|
3049
3158
|
]
|
|
3050
3159
|
},
|
|
3160
|
+
{
|
|
3161
|
+
type: "code",
|
|
3162
|
+
language: "json",
|
|
3163
|
+
title: "Tool input",
|
|
3164
|
+
code: `{ "task_id": "11111111-1111-4111-8111-111111111111" }`
|
|
3165
|
+
},
|
|
3166
|
+
{
|
|
3167
|
+
type: "paragraph",
|
|
3168
|
+
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."
|
|
3169
|
+
},
|
|
3051
3170
|
{
|
|
3052
3171
|
type: "code",
|
|
3053
3172
|
language: "json",
|
|
@@ -3077,6 +3196,14 @@ Payment terms: Net 30`
|
|
|
3077
3196
|
{
|
|
3078
3197
|
question: "Can the snapshot change while an agent processes it?",
|
|
3079
3198
|
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."
|
|
3199
|
+
},
|
|
3200
|
+
{
|
|
3201
|
+
question: "Does fetching an Agent task claim it?",
|
|
3202
|
+
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."
|
|
3203
|
+
},
|
|
3204
|
+
{
|
|
3205
|
+
question: "What does timeout_fallthrough mean?",
|
|
3206
|
+
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
3207
|
}
|
|
3081
3208
|
],
|
|
3082
3209
|
mentions: ["immutable snapshot", "output contract", "audit trail", "document task"]
|
|
@@ -3085,13 +3212,17 @@ Payment terms: Net 30`
|
|
|
3085
3212
|
slug: "talonic-claim-agent-task",
|
|
3086
3213
|
parentSlug: "tools",
|
|
3087
3214
|
title: "talonic_claim_agent_task",
|
|
3088
|
-
seoTitle: "talonic_claim_agent_task
|
|
3089
|
-
description: "
|
|
3215
|
+
seoTitle: "talonic_claim_agent_task \u2014 Lease an Agent Task Safely",
|
|
3216
|
+
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
3217
|
content: [
|
|
3091
3218
|
{
|
|
3092
3219
|
type: "paragraph",
|
|
3093
3220
|
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
3221
|
},
|
|
3222
|
+
{
|
|
3223
|
+
type: "paragraph",
|
|
3224
|
+
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."
|
|
3225
|
+
},
|
|
3095
3226
|
{
|
|
3096
3227
|
type: "param-table",
|
|
3097
3228
|
params: [
|
|
@@ -3103,6 +3234,22 @@ Payment terms: Net 30`
|
|
|
3103
3234
|
}
|
|
3104
3235
|
]
|
|
3105
3236
|
},
|
|
3237
|
+
{
|
|
3238
|
+
type: "code",
|
|
3239
|
+
language: "json",
|
|
3240
|
+
title: "Tool input and response (payload fields elided)",
|
|
3241
|
+
code: `// talonic_claim_agent_task({ "task_id": "11111111-1111-4111-8111-111111111111" })
|
|
3242
|
+
{
|
|
3243
|
+
"id": "11111111-1111-4111-8111-111111111111",
|
|
3244
|
+
"status": "claimed",
|
|
3245
|
+
"execution_epoch": 2,
|
|
3246
|
+
"claimed_at": "2026-08-29T10:00:00.000Z",
|
|
3247
|
+
"lease_expires_at": "2026-08-29T10:10:00.000Z",
|
|
3248
|
+
"input_snapshot": { "...": "full payload, same shape as talonic_get_agent_task" },
|
|
3249
|
+
"output_contract": [{ "key": "risk_score", "dataType": "number", "required": true }],
|
|
3250
|
+
"instructions": "Assess supplier risk from the supplied evidence."
|
|
3251
|
+
}`
|
|
3252
|
+
},
|
|
3106
3253
|
{
|
|
3107
3254
|
type: "callout",
|
|
3108
3255
|
variant: "warning",
|
|
@@ -3111,6 +3258,10 @@ Payment terms: Net 30`
|
|
|
3111
3258
|
{
|
|
3112
3259
|
type: "paragraph",
|
|
3113
3260
|
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."
|
|
3261
|
+
},
|
|
3262
|
+
{
|
|
3263
|
+
type: "paragraph",
|
|
3264
|
+
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
3265
|
}
|
|
3115
3266
|
],
|
|
3116
3267
|
related: [
|
|
@@ -3121,6 +3272,14 @@ Payment terms: Net 30`
|
|
|
3121
3272
|
{
|
|
3122
3273
|
question: "What is an execution epoch?",
|
|
3123
3274
|
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."
|
|
3275
|
+
},
|
|
3276
|
+
{
|
|
3277
|
+
question: "Can I claim a task that is already claimed?",
|
|
3278
|
+
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."
|
|
3279
|
+
},
|
|
3280
|
+
{
|
|
3281
|
+
question: "What happens if I claim a task and never finish it?",
|
|
3282
|
+
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
3283
|
}
|
|
3125
3284
|
],
|
|
3126
3285
|
mentions: ["claim lease", "execution epoch", "conflict", "reclaim"]
|
|
@@ -3129,13 +3288,41 @@ Payment terms: Net 30`
|
|
|
3129
3288
|
slug: "talonic-heartbeat-agent-task",
|
|
3130
3289
|
parentSlug: "tools",
|
|
3131
3290
|
title: "talonic_heartbeat_agent_task",
|
|
3132
|
-
seoTitle: "talonic_heartbeat_agent_task
|
|
3133
|
-
description: "
|
|
3291
|
+
seoTitle: "talonic_heartbeat_agent_task \u2014 Keep a Task Lease Alive",
|
|
3292
|
+
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
3293
|
content: [
|
|
3135
3294
|
{
|
|
3136
3295
|
type: "paragraph",
|
|
3137
3296
|
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
3297
|
},
|
|
3298
|
+
{
|
|
3299
|
+
type: "paragraph",
|
|
3300
|
+
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`."
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
type: "code",
|
|
3304
|
+
language: "json",
|
|
3305
|
+
title: "Tool input and response (metadata only)",
|
|
3306
|
+
code: `// talonic_heartbeat_agent_task({
|
|
3307
|
+
// "task_id": "11111111-1111-4111-8111-111111111111",
|
|
3308
|
+
// "execution_epoch": 2
|
|
3309
|
+
// })
|
|
3310
|
+
{
|
|
3311
|
+
"id": "11111111-1111-4111-8111-111111111111",
|
|
3312
|
+
"status": "claimed",
|
|
3313
|
+
"execution_epoch": 2,
|
|
3314
|
+
"lease_expires_at": "2026-08-29T10:20:00.000Z",
|
|
3315
|
+
"timeout_at": "2026-08-30T12:00:00.000Z"
|
|
3316
|
+
}`
|
|
3317
|
+
},
|
|
3318
|
+
{
|
|
3319
|
+
type: "paragraph",
|
|
3320
|
+
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."
|
|
3321
|
+
},
|
|
3322
|
+
{
|
|
3323
|
+
type: "paragraph",
|
|
3324
|
+
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."
|
|
3325
|
+
},
|
|
3139
3326
|
{
|
|
3140
3327
|
type: "param-table",
|
|
3141
3328
|
params: [
|
|
@@ -3167,6 +3354,14 @@ Payment terms: Net 30`
|
|
|
3167
3354
|
{
|
|
3168
3355
|
question: "How often should an agent heartbeat?",
|
|
3169
3356
|
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."
|
|
3357
|
+
},
|
|
3358
|
+
{
|
|
3359
|
+
question: "What does a heartbeat return?",
|
|
3360
|
+
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."
|
|
3361
|
+
},
|
|
3362
|
+
{
|
|
3363
|
+
question: "My heartbeat returned HTTP 409 \u2014 can I still submit?",
|
|
3364
|
+
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
3365
|
}
|
|
3171
3366
|
],
|
|
3172
3367
|
mentions: ["heartbeat", "lease expiry", "execution epoch", "long-running task"]
|
|
@@ -3175,13 +3370,17 @@ Payment terms: Net 30`
|
|
|
3175
3370
|
slug: "talonic-submit-agent-task",
|
|
3176
3371
|
parentSlug: "tools",
|
|
3177
3372
|
title: "talonic_submit_agent_task",
|
|
3178
|
-
seoTitle: "talonic_submit_agent_task
|
|
3179
|
-
description: "
|
|
3373
|
+
seoTitle: "talonic_submit_agent_task \u2014 Submit Typed Task Outputs",
|
|
3374
|
+
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
3375
|
content: [
|
|
3181
3376
|
{
|
|
3182
3377
|
type: "paragraph",
|
|
3183
3378
|
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
3379
|
},
|
|
3380
|
+
{
|
|
3381
|
+
type: "paragraph",
|
|
3382
|
+
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."
|
|
3383
|
+
},
|
|
3185
3384
|
{
|
|
3186
3385
|
type: "param-table",
|
|
3187
3386
|
params: [
|
|
@@ -3222,6 +3421,14 @@ Payment terms: Net 30`
|
|
|
3222
3421
|
"summary": "Supplier requires enhanced review."
|
|
3223
3422
|
}`
|
|
3224
3423
|
},
|
|
3424
|
+
{
|
|
3425
|
+
type: "paragraph",
|
|
3426
|
+
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."
|
|
3427
|
+
},
|
|
3428
|
+
{
|
|
3429
|
+
type: "paragraph",
|
|
3430
|
+
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."
|
|
3431
|
+
},
|
|
3225
3432
|
{
|
|
3226
3433
|
type: "callout",
|
|
3227
3434
|
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,121 +3436,845 @@ Payment terms: Net 30`
|
|
|
3229
3436
|
],
|
|
3230
3437
|
related: [
|
|
3231
3438
|
{ label: "talonic_get_agent_task", slug: "talonic-get-agent-task" },
|
|
3439
|
+
{ label: "talonic_claim_agent_task", slug: "talonic-claim-agent-task" },
|
|
3232
3440
|
{ label: "talonic_heartbeat_agent_task", slug: "talonic-heartbeat-agent-task" }
|
|
3233
3441
|
],
|
|
3234
3442
|
faq: [
|
|
3235
3443
|
{
|
|
3236
3444
|
question: "Can an Agent task return extra fields it discovered?",
|
|
3237
3445
|
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."
|
|
3446
|
+
},
|
|
3447
|
+
{
|
|
3448
|
+
question: "What happens if my submission fails validation?",
|
|
3449
|
+
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."
|
|
3450
|
+
},
|
|
3451
|
+
{
|
|
3452
|
+
question: "Can I resubmit or amend after a successful submit?",
|
|
3453
|
+
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
3454
|
}
|
|
3239
3455
|
],
|
|
3240
3456
|
mentions: ["transactional submit", "AI Agent (MCP)", "mcp_agent", "typed outputs"]
|
|
3241
|
-
}
|
|
3242
|
-
];
|
|
3243
|
-
|
|
3244
|
-
// src/content/sections/features.ts
|
|
3245
|
-
var sections4 = [
|
|
3457
|
+
},
|
|
3246
3458
|
{
|
|
3247
|
-
slug: "
|
|
3248
|
-
parentSlug: "
|
|
3249
|
-
title: "
|
|
3250
|
-
seoTitle: "
|
|
3251
|
-
description: "
|
|
3459
|
+
slug: "talonic-list-fields",
|
|
3460
|
+
parentSlug: "tools",
|
|
3461
|
+
title: "talonic_list_fields",
|
|
3462
|
+
seoTitle: "talonic_list_fields \u2014 List Field Registry Concepts",
|
|
3463
|
+
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.",
|
|
3252
3464
|
content: [
|
|
3253
3465
|
{
|
|
3254
3466
|
type: "paragraph",
|
|
3255
|
-
text: "
|
|
3467
|
+
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."
|
|
3256
3468
|
},
|
|
3469
|
+
{ type: "heading", level: 3, id: "list-fields-use-when", text: "When to use" },
|
|
3257
3470
|
{
|
|
3258
|
-
type: "
|
|
3259
|
-
|
|
3471
|
+
type: "list",
|
|
3472
|
+
items: [
|
|
3473
|
+
"You need to know WHAT data exists before querying it.",
|
|
3474
|
+
"You want the exact field id for `talonic_get_field` or `talonic_field_values`.",
|
|
3475
|
+
"You are choosing between similar concepts and want their maturity and occurrence counts side by side."
|
|
3476
|
+
]
|
|
3260
3477
|
},
|
|
3478
|
+
{ type: "heading", level: 3, id: "list-fields-do-not-use", text: "When not to use" },
|
|
3261
3479
|
{
|
|
3262
|
-
type: "
|
|
3263
|
-
|
|
3480
|
+
type: "list",
|
|
3481
|
+
items: [
|
|
3482
|
+
"To locate a specific document by name \u2014 use `talonic_search`.",
|
|
3483
|
+
"To filter documents by a field value \u2014 use `talonic_filter`.",
|
|
3484
|
+
"When you are unsure which field holds a concept \u2014 call `talonic_find_data` first; it matches by meaning."
|
|
3485
|
+
]
|
|
3264
3486
|
},
|
|
3487
|
+
{ type: "heading", level: 3, id: "list-fields-params", text: "Parameters" },
|
|
3265
3488
|
{
|
|
3266
|
-
type: "
|
|
3267
|
-
|
|
3489
|
+
type: "param-table",
|
|
3490
|
+
params: [
|
|
3491
|
+
{
|
|
3492
|
+
name: "search",
|
|
3493
|
+
type: "string",
|
|
3494
|
+
description: "Case-insensitive contains match on canonical_name / display_name."
|
|
3495
|
+
},
|
|
3496
|
+
{
|
|
3497
|
+
name: "maturity",
|
|
3498
|
+
type: "string",
|
|
3499
|
+
description: "`core`, `proven` or `candidate`. Prefer `core`/`proven` for anything you build on."
|
|
3500
|
+
},
|
|
3501
|
+
{
|
|
3502
|
+
name: "include_superseded",
|
|
3503
|
+
type: "boolean",
|
|
3504
|
+
description: "Include rows merged into a survivor (they carry `superseded_by`). Default false."
|
|
3505
|
+
},
|
|
3506
|
+
{ name: "limit", type: "number", description: "Page size (default 20, max 100)." },
|
|
3507
|
+
{
|
|
3508
|
+
name: "cursor",
|
|
3509
|
+
type: "string",
|
|
3510
|
+
description: "Opaque cursor from `pagination.next_cursor`."
|
|
3511
|
+
}
|
|
3512
|
+
]
|
|
3268
3513
|
},
|
|
3514
|
+
{ type: "heading", level: 3, id: "list-fields-response", text: "Response shape" },
|
|
3269
3515
|
{
|
|
3270
|
-
type: "
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3516
|
+
type: "param-table",
|
|
3517
|
+
title: "Fields",
|
|
3518
|
+
params: [
|
|
3519
|
+
{ name: "data[].id", type: "string", description: "Stable field UUID." },
|
|
3520
|
+
{
|
|
3521
|
+
name: "data[].canonical_name",
|
|
3522
|
+
type: "string",
|
|
3523
|
+
description: "Normalized concept name."
|
|
3524
|
+
},
|
|
3525
|
+
{
|
|
3526
|
+
name: "data[].maturity",
|
|
3527
|
+
type: "string",
|
|
3528
|
+
description: "`core` (fully trusted), `proven` (recurring, stable id) or `candidate` (new; may still be merged or renamed)."
|
|
3529
|
+
},
|
|
3530
|
+
{
|
|
3531
|
+
name: "data[].synonyms",
|
|
3532
|
+
type: "string[]",
|
|
3533
|
+
description: "Names folded onto the concept by merges and cleanup."
|
|
3534
|
+
},
|
|
3535
|
+
{
|
|
3536
|
+
name: "data[].superseded_by",
|
|
3537
|
+
type: "object|null",
|
|
3538
|
+
description: "Set when the row was merged into a survivor; follow `superseded_by.id`."
|
|
3539
|
+
},
|
|
3540
|
+
{
|
|
3541
|
+
name: "pagination",
|
|
3542
|
+
type: "object",
|
|
3543
|
+
description: "`total`, `limit`, `has_more`, `next_cursor`."
|
|
3544
|
+
}
|
|
3545
|
+
]
|
|
3274
3546
|
},
|
|
3275
3547
|
{
|
|
3276
3548
|
type: "code",
|
|
3277
3549
|
language: "json",
|
|
3278
|
-
title: "
|
|
3279
|
-
code:
|
|
3280
|
-
// The MCP client base64-encodes the file bytes automatically
|
|
3281
|
-
// Agent calls talonic_extract:
|
|
3282
|
-
{
|
|
3283
|
-
"file_data": "JVBERi0xLjQKJcOkw7zDtsO8...",
|
|
3284
|
-
"filename": "receipt-2026-05.pdf",
|
|
3285
|
-
"schema": {
|
|
3286
|
-
"type": "object",
|
|
3287
|
-
"properties": {
|
|
3288
|
-
"merchant": { "type": "string" },
|
|
3289
|
-
"date": { "type": "string", "format": "date" },
|
|
3290
|
-
"total": { "type": "number" },
|
|
3291
|
-
"payment_method": { "type": "string" }
|
|
3292
|
-
},
|
|
3293
|
-
"required": ["merchant", "total"]
|
|
3294
|
-
}
|
|
3295
|
-
}`
|
|
3550
|
+
title: "Tool input",
|
|
3551
|
+
code: `{ "search": "invoice", "maturity": "proven", "limit": 5 }`
|
|
3296
3552
|
},
|
|
3297
3553
|
{
|
|
3298
3554
|
type: "code",
|
|
3299
3555
|
language: "json",
|
|
3300
|
-
title: "
|
|
3556
|
+
title: "Tool response",
|
|
3301
3557
|
code: `{
|
|
3302
|
-
"
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3558
|
+
"data": [
|
|
3559
|
+
{
|
|
3560
|
+
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
3561
|
+
"canonical_name": "invoice_number",
|
|
3562
|
+
"display_name": "Invoice Number",
|
|
3563
|
+
"data_type": "string",
|
|
3564
|
+
"maturity": "proven",
|
|
3565
|
+
"tier": 2,
|
|
3566
|
+
"synonyms": ["inv_no", "invoice no"],
|
|
3567
|
+
"description": "The supplier's invoice identifier",
|
|
3568
|
+
"occurrence_count": 412,
|
|
3569
|
+
"superseded_by": null,
|
|
3570
|
+
"links": { "self": "/v1/fields/a1b2\u2026", "card": "/v1/fields/a1b2\u2026/card", "values": "/v1/fields/a1b2\u2026/values" }
|
|
3571
|
+
}
|
|
3572
|
+
],
|
|
3573
|
+
"pagination": { "total": 1, "limit": 5, "has_more": false, "next_cursor": null }
|
|
3316
3574
|
}`
|
|
3317
|
-
},
|
|
3318
|
-
{
|
|
3319
|
-
type: "paragraph",
|
|
3320
|
-
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."
|
|
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."
|
|
3329
3575
|
}
|
|
3330
3576
|
],
|
|
3331
3577
|
related: [
|
|
3332
|
-
{ label: "
|
|
3333
|
-
{ label: "
|
|
3334
|
-
{ label: "Common Issues", slug: "common-issues" }
|
|
3578
|
+
{ label: "talonic_search", slug: "talonic-search" },
|
|
3579
|
+
{ label: "talonic_filter", slug: "talonic-filter" }
|
|
3335
3580
|
],
|
|
3336
3581
|
faq: [
|
|
3337
3582
|
{
|
|
3338
|
-
question: "
|
|
3339
|
-
answer: "
|
|
3340
|
-
}
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3583
|
+
question: "What does maturity mean and which level should I build on?",
|
|
3584
|
+
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."
|
|
3585
|
+
}
|
|
3586
|
+
],
|
|
3587
|
+
mentions: [
|
|
3588
|
+
"field registry",
|
|
3589
|
+
"list fields",
|
|
3590
|
+
"maturity",
|
|
3591
|
+
"canonical fields",
|
|
3592
|
+
"superseded_by",
|
|
3593
|
+
"field ids"
|
|
3594
|
+
]
|
|
3595
|
+
},
|
|
3596
|
+
{
|
|
3597
|
+
slug: "talonic-get-field",
|
|
3598
|
+
parentSlug: "tools",
|
|
3599
|
+
title: "talonic_get_field",
|
|
3600
|
+
seoTitle: "talonic_get_field \u2014 Field Concept Card",
|
|
3601
|
+
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.",
|
|
3602
|
+
content: [
|
|
3603
|
+
{
|
|
3604
|
+
type: "paragraph",
|
|
3605
|
+
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."
|
|
3606
|
+
},
|
|
3607
|
+
{ type: "heading", level: 3, id: "get-field-use-when", text: "When to use" },
|
|
3608
|
+
{
|
|
3609
|
+
type: "list",
|
|
3610
|
+
items: [
|
|
3611
|
+
"You must decide whether a field is the right concept for a question.",
|
|
3612
|
+
"You need example values or the value shape before writing a filter or a query.",
|
|
3613
|
+
"The user names a field ('Invoice No', 'Vertragsnummer') and you need the live concept behind it."
|
|
3614
|
+
]
|
|
3615
|
+
},
|
|
3616
|
+
{ type: "heading", level: 3, id: "get-field-do-not-use", text: "When not to use" },
|
|
3617
|
+
{
|
|
3618
|
+
type: "list",
|
|
3619
|
+
items: [
|
|
3620
|
+
"To list many fields \u2014 use `talonic_list_fields`.",
|
|
3621
|
+
"To read every value of a field \u2014 use `talonic_field_values`."
|
|
3622
|
+
]
|
|
3623
|
+
},
|
|
3624
|
+
{ type: "heading", level: 3, id: "get-field-params", text: "Parameters" },
|
|
3625
|
+
{
|
|
3626
|
+
type: "param-table",
|
|
3627
|
+
params: [
|
|
3628
|
+
{
|
|
3629
|
+
name: "field_id",
|
|
3630
|
+
type: "string",
|
|
3631
|
+
description: "Field UUID. Provide either `field_id` or `name`."
|
|
3632
|
+
},
|
|
3633
|
+
{
|
|
3634
|
+
name: "name",
|
|
3635
|
+
type: "string",
|
|
3636
|
+
description: "Field name to resolve (canonical \u2192 synonyms \u2192 aliases \u2192 spelling fold, redirects followed)."
|
|
3637
|
+
},
|
|
3638
|
+
{
|
|
3639
|
+
name: "include_history",
|
|
3640
|
+
type: "boolean",
|
|
3641
|
+
description: "Append the curation trail (tier changes, merges, renames), newest first."
|
|
3642
|
+
}
|
|
3643
|
+
]
|
|
3644
|
+
},
|
|
3645
|
+
{ type: "heading", level: 3, id: "get-field-response", text: "Response shape" },
|
|
3646
|
+
{
|
|
3647
|
+
type: "param-table",
|
|
3648
|
+
title: "Fields",
|
|
3649
|
+
params: [
|
|
3650
|
+
{
|
|
3651
|
+
name: "definition",
|
|
3652
|
+
type: "object",
|
|
3653
|
+
description: "`description`, `instruction`, `synonyms[]`, `aliases[]`."
|
|
3654
|
+
},
|
|
3655
|
+
{
|
|
3656
|
+
name: "identity",
|
|
3657
|
+
type: "object",
|
|
3658
|
+
description: "`pinned`, `source`, `superseded_by`, `absorbed[]`."
|
|
3659
|
+
},
|
|
3660
|
+
{
|
|
3661
|
+
name: "occurrence",
|
|
3662
|
+
type: "object",
|
|
3663
|
+
description: "`occurrence_count`, `document_count`, `first_seen_at`, `last_seen_at`, `document_type_distribution`."
|
|
3664
|
+
},
|
|
3665
|
+
{
|
|
3666
|
+
name: "values",
|
|
3667
|
+
type: "object",
|
|
3668
|
+
description: "`total`, `distinct_count`, `top[]` (value, count, share), `examples[]`."
|
|
3669
|
+
},
|
|
3670
|
+
{ name: "usage", type: "object", description: "`schema_count`, `schema_field_count`." },
|
|
3671
|
+
{
|
|
3672
|
+
name: "resolution",
|
|
3673
|
+
type: "object",
|
|
3674
|
+
description: "Present when `name` was given: `matched_by` and `redirected_from[]`."
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
name: "history",
|
|
3678
|
+
type: "object",
|
|
3679
|
+
description: "Present when `include_history` is true."
|
|
3680
|
+
}
|
|
3681
|
+
]
|
|
3682
|
+
},
|
|
3683
|
+
{
|
|
3684
|
+
type: "code",
|
|
3685
|
+
language: "json",
|
|
3686
|
+
title: "Tool input",
|
|
3687
|
+
code: `{ "name": "Invoice No", "include_history": true }`
|
|
3688
|
+
},
|
|
3689
|
+
{
|
|
3690
|
+
type: "code",
|
|
3691
|
+
language: "json",
|
|
3692
|
+
title: "Tool response",
|
|
3693
|
+
code: `{
|
|
3694
|
+
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
3695
|
+
"canonical_name": "invoice_number",
|
|
3696
|
+
"maturity": "proven",
|
|
3697
|
+
"data_type": "string",
|
|
3698
|
+
"definition": { "description": "The supplier's invoice identifier", "instruction": "Extract the invoice number as printed", "synonyms": ["inv_no"], "aliases": [{ "name": "invoice no", "source": "merge" }] },
|
|
3699
|
+
"identity": { "pinned": false, "source": null, "superseded_by": null, "absorbed": [] },
|
|
3700
|
+
"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 } },
|
|
3701
|
+
"values": { "total": 412, "distinct_count": 405, "top": [{ "value": "INV-2026-0001", "count": 2, "share": 0.0049 }], "examples": ["INV-2026-0001", "RE-88231"] },
|
|
3702
|
+
"usage": { "schema_count": 2, "schema_field_count": 2 },
|
|
3703
|
+
"resolution": { "matched_by": "synonym", "redirected_from": [] },
|
|
3704
|
+
"history": { "total": 1, "data": [{ "kind": "tier_changed", "at": "2026-04-01T00:00:00.000Z", "detail": { "direction": "promoted", "from_maturity": "candidate", "to_maturity": "proven" } }] }
|
|
3705
|
+
}`
|
|
3706
|
+
}
|
|
3707
|
+
],
|
|
3708
|
+
related: [
|
|
3709
|
+
{ label: "talonic_search", slug: "talonic-search" },
|
|
3710
|
+
{ label: "talonic_filter", slug: "talonic-filter" }
|
|
3711
|
+
],
|
|
3712
|
+
faq: [
|
|
3713
|
+
{
|
|
3714
|
+
question: "Can I pass the user's wording instead of an id?",
|
|
3715
|
+
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."
|
|
3716
|
+
}
|
|
3717
|
+
],
|
|
3718
|
+
mentions: [
|
|
3719
|
+
"concept card",
|
|
3720
|
+
"field definition",
|
|
3721
|
+
"field by name",
|
|
3722
|
+
"resolve field",
|
|
3723
|
+
"example values",
|
|
3724
|
+
"field history"
|
|
3725
|
+
]
|
|
3726
|
+
},
|
|
3727
|
+
{
|
|
3728
|
+
slug: "talonic-field-values",
|
|
3729
|
+
parentSlug: "tools",
|
|
3730
|
+
title: "talonic_field_values",
|
|
3731
|
+
seoTitle: "talonic_field_values \u2014 Read a Field Across Documents",
|
|
3732
|
+
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.",
|
|
3733
|
+
content: [
|
|
3734
|
+
{
|
|
3735
|
+
type: "paragraph",
|
|
3736
|
+
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."
|
|
3737
|
+
},
|
|
3738
|
+
{ type: "heading", level: 3, id: "field-values-use-when", text: "When to use" },
|
|
3739
|
+
{
|
|
3740
|
+
type: "list",
|
|
3741
|
+
items: [
|
|
3742
|
+
"The user asks 'what are all the X across my documents'.",
|
|
3743
|
+
"You need to tabulate or aggregate one concept across the corpus.",
|
|
3744
|
+
"You want the evidence (source text plus document) behind a value."
|
|
3745
|
+
]
|
|
3746
|
+
},
|
|
3747
|
+
{ type: "heading", level: 3, id: "field-values-do-not-use", text: "When not to use" },
|
|
3748
|
+
{
|
|
3749
|
+
type: "list",
|
|
3750
|
+
items: [
|
|
3751
|
+
"Multi-field, row-shaped queries over documents \u2014 use `talonic_filter`.",
|
|
3752
|
+
"One document's full field set \u2014 use `talonic_get_document`."
|
|
3753
|
+
]
|
|
3754
|
+
},
|
|
3755
|
+
{ type: "heading", level: 3, id: "field-values-params", text: "Parameters" },
|
|
3756
|
+
{
|
|
3757
|
+
type: "param-table",
|
|
3758
|
+
params: [
|
|
3759
|
+
{
|
|
3760
|
+
name: "field_id",
|
|
3761
|
+
type: "string",
|
|
3762
|
+
description: "Field UUID. Provide either `field_id` or `name`."
|
|
3763
|
+
},
|
|
3764
|
+
{
|
|
3765
|
+
name: "name",
|
|
3766
|
+
type: "string",
|
|
3767
|
+
description: "Field name (resolved like `talonic_get_field`)."
|
|
3768
|
+
},
|
|
3769
|
+
{
|
|
3770
|
+
name: "document_id",
|
|
3771
|
+
type: "string",
|
|
3772
|
+
description: "Only occurrences on this document."
|
|
3773
|
+
},
|
|
3774
|
+
{
|
|
3775
|
+
name: "value",
|
|
3776
|
+
type: "string",
|
|
3777
|
+
description: "Case-insensitive contains filter on the value text."
|
|
3778
|
+
},
|
|
3779
|
+
{ name: "limit", type: "number", description: "Page size (default 20, max 100)." },
|
|
3780
|
+
{
|
|
3781
|
+
name: "cursor",
|
|
3782
|
+
type: "string",
|
|
3783
|
+
description: "Opaque cursor from `pagination.next_cursor`."
|
|
3784
|
+
}
|
|
3785
|
+
]
|
|
3786
|
+
},
|
|
3787
|
+
{ type: "heading", level: 3, id: "field-values-response", text: "Response shape" },
|
|
3788
|
+
{
|
|
3789
|
+
type: "param-table",
|
|
3790
|
+
title: "Fields",
|
|
3791
|
+
params: [
|
|
3792
|
+
{
|
|
3793
|
+
name: "data[].document_id",
|
|
3794
|
+
type: "string",
|
|
3795
|
+
description: "Document the value came from (`document_filename`, `document_type` alongside)."
|
|
3796
|
+
},
|
|
3797
|
+
{
|
|
3798
|
+
name: "data[].value",
|
|
3799
|
+
type: "any",
|
|
3800
|
+
description: "The current bound value as captured."
|
|
3801
|
+
},
|
|
3802
|
+
{
|
|
3803
|
+
name: "data[].confidence",
|
|
3804
|
+
type: "number|null",
|
|
3805
|
+
description: "Capture confidence 0\u20131."
|
|
3806
|
+
},
|
|
3807
|
+
{
|
|
3808
|
+
name: "data[].provenance",
|
|
3809
|
+
type: "object",
|
|
3810
|
+
description: "`raw_field_name`, `source_text`, `resolved_by` (`exact`, `cluster`, `semantic_auto`, `llm_rescue`, \u2026), `needs_confirmation`, `via_redirect`."
|
|
3811
|
+
},
|
|
3812
|
+
{
|
|
3813
|
+
name: "concept_ids",
|
|
3814
|
+
type: "string[]",
|
|
3815
|
+
description: "The concept plus absorbed redirects whose occurrences are included."
|
|
3816
|
+
},
|
|
3817
|
+
{ name: "pagination", type: "object", description: "`total` counts the visible set." }
|
|
3818
|
+
]
|
|
3819
|
+
},
|
|
3820
|
+
{
|
|
3821
|
+
type: "code",
|
|
3822
|
+
language: "json",
|
|
3823
|
+
title: "Tool input",
|
|
3824
|
+
code: `{ "name": "invoice_number", "value": "2026", "limit": 2 }`
|
|
3825
|
+
},
|
|
3826
|
+
{
|
|
3827
|
+
type: "code",
|
|
3828
|
+
language: "json",
|
|
3829
|
+
title: "Tool response",
|
|
3830
|
+
code: `{
|
|
3831
|
+
"field_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
3832
|
+
"canonical_name": "invoice_number",
|
|
3833
|
+
"concept_ids": ["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],
|
|
3834
|
+
"data": [
|
|
3835
|
+
{
|
|
3836
|
+
"occurrence_id": "0f1e2d3c-\u2026",
|
|
3837
|
+
"document_id": "f0e1d2c3-\u2026",
|
|
3838
|
+
"document_filename": "RE-2026-0142.pdf",
|
|
3839
|
+
"document_type": "invoice",
|
|
3840
|
+
"value": "INV-2026-0142",
|
|
3841
|
+
"confidence": 0.97,
|
|
3842
|
+
"provenance": { "raw_field_name": "Rechnungsnummer", "source_text": "Rechnungsnummer: INV-2026-0142", "resolved_by": "exact", "needs_confirmation": false, "via_redirect": false },
|
|
3843
|
+
"links": { "document": "/v1/documents/f0e1\u2026", "document_fields": "/v1/documents/f0e1\u2026/fields" }
|
|
3844
|
+
}
|
|
3845
|
+
],
|
|
3846
|
+
"pagination": { "total": 37, "limit": 2, "has_more": true, "next_cursor": "MGYx\u2026" }
|
|
3847
|
+
}`
|
|
3848
|
+
}
|
|
3849
|
+
],
|
|
3850
|
+
related: [
|
|
3851
|
+
{ label: "talonic_search", slug: "talonic-search" },
|
|
3852
|
+
{ label: "talonic_filter", slug: "talonic-filter" }
|
|
3853
|
+
],
|
|
3854
|
+
faq: [
|
|
3855
|
+
{
|
|
3856
|
+
question: "Are the values filtered by the caller's document visibility?",
|
|
3857
|
+
answer: "Yes. Rows and `pagination.total` are Sources-IAM filtered as the API key's minting user, exactly like the other document reads."
|
|
3858
|
+
}
|
|
3859
|
+
],
|
|
3860
|
+
mentions: [
|
|
3861
|
+
"field values",
|
|
3862
|
+
"values across documents",
|
|
3863
|
+
"provenance",
|
|
3864
|
+
"source text",
|
|
3865
|
+
"resolution band",
|
|
3866
|
+
"cross-document"
|
|
3867
|
+
]
|
|
3868
|
+
},
|
|
3869
|
+
{
|
|
3870
|
+
slug: "talonic-find-data",
|
|
3871
|
+
parentSlug: "tools",
|
|
3872
|
+
title: "talonic_find_data",
|
|
3873
|
+
seoTitle: "talonic_find_data \u2014 Locate Data Behind a Concept",
|
|
3874
|
+
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.",
|
|
3875
|
+
content: [
|
|
3876
|
+
{
|
|
3877
|
+
type: "paragraph",
|
|
3878
|
+
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."
|
|
3879
|
+
},
|
|
3880
|
+
{ type: "heading", level: 3, id: "find-data-use-when", text: "When to use" },
|
|
3881
|
+
{
|
|
3882
|
+
type: "list",
|
|
3883
|
+
items: [
|
|
3884
|
+
"The user asks about a concept and you are unsure which field holds it.",
|
|
3885
|
+
"`talonic_list_fields` or `talonic_search` came back empty or ambiguous.",
|
|
3886
|
+
"The answer may live in document prose rather than a captured cell."
|
|
3887
|
+
]
|
|
3888
|
+
},
|
|
3889
|
+
{ type: "heading", level: 3, id: "find-data-do-not-use", text: "When not to use" },
|
|
3890
|
+
{
|
|
3891
|
+
type: "list",
|
|
3892
|
+
items: [
|
|
3893
|
+
"Reading a known field's values \u2014 use `talonic_field_values`.",
|
|
3894
|
+
"Filtering by a known field \u2014 use `talonic_filter`."
|
|
3895
|
+
]
|
|
3896
|
+
},
|
|
3897
|
+
{ type: "heading", level: 3, id: "find-data-params", text: "Parameters" },
|
|
3898
|
+
{
|
|
3899
|
+
type: "param-table",
|
|
3900
|
+
params: [
|
|
3901
|
+
{ name: "query", type: "string", description: "The concept, in the user's words." },
|
|
3902
|
+
{
|
|
3903
|
+
name: "top_k",
|
|
3904
|
+
type: "number",
|
|
3905
|
+
description: "Max results per plane (1\u201325, default 10)."
|
|
3906
|
+
},
|
|
3907
|
+
{
|
|
3908
|
+
name: "document_ids",
|
|
3909
|
+
type: "string[]",
|
|
3910
|
+
description: "Hard scope: restrict every plane to these documents."
|
|
3911
|
+
}
|
|
3912
|
+
]
|
|
3913
|
+
},
|
|
3914
|
+
{ type: "heading", level: 3, id: "find-data-response", text: "Response shape" },
|
|
3915
|
+
{
|
|
3916
|
+
type: "param-table",
|
|
3917
|
+
title: "Fields",
|
|
3918
|
+
params: [
|
|
3919
|
+
{
|
|
3920
|
+
name: "result.fields",
|
|
3921
|
+
type: "array",
|
|
3922
|
+
description: "Matching concepts: canonical_name, field ids/keys, tier, occurrence_count, sample values with their documents."
|
|
3923
|
+
},
|
|
3924
|
+
{
|
|
3925
|
+
name: "result.values / result.documents / result.passages",
|
|
3926
|
+
type: "array",
|
|
3927
|
+
description: "Value, document and passage planes \u2014 each item a ready handle for the next call."
|
|
3928
|
+
},
|
|
3929
|
+
{
|
|
3930
|
+
name: "citations",
|
|
3931
|
+
type: "array",
|
|
3932
|
+
description: "Provenance the platform attached to the result."
|
|
3933
|
+
}
|
|
3934
|
+
]
|
|
3935
|
+
},
|
|
3936
|
+
{
|
|
3937
|
+
type: "code",
|
|
3938
|
+
language: "json",
|
|
3939
|
+
title: "Tool input",
|
|
3940
|
+
code: `{ "query": "contract end date", "top_k": 5 }`
|
|
3941
|
+
},
|
|
3942
|
+
{
|
|
3943
|
+
type: "code",
|
|
3944
|
+
language: "json",
|
|
3945
|
+
title: "Tool response",
|
|
3946
|
+
code: `{
|
|
3947
|
+
"tool": "find_data",
|
|
3948
|
+
"result": {
|
|
3949
|
+
"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" }] }],
|
|
3950
|
+
"documents": [{ "document_id": "f0e1\u2026", "filename": "Vertrag-GETEC-2024.pdf", "score": 0.81 }],
|
|
3951
|
+
"passages": []
|
|
3952
|
+
},
|
|
3953
|
+
"citations": [{ "document_id": "f0e1\u2026" }]
|
|
3954
|
+
}`
|
|
3955
|
+
}
|
|
3956
|
+
],
|
|
3957
|
+
related: [
|
|
3958
|
+
{ label: "talonic_search", slug: "talonic-search" },
|
|
3959
|
+
{ label: "talonic_filter", slug: "talonic-filter" }
|
|
3960
|
+
],
|
|
3961
|
+
faq: [
|
|
3962
|
+
{
|
|
3963
|
+
question: "How is this different from talonic_search?",
|
|
3964
|
+
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."
|
|
3965
|
+
}
|
|
3966
|
+
],
|
|
3967
|
+
mentions: [
|
|
3968
|
+
"find data",
|
|
3969
|
+
"semantic retrieval",
|
|
3970
|
+
"concept to field",
|
|
3971
|
+
"which field holds",
|
|
3972
|
+
"locate data",
|
|
3973
|
+
"passages"
|
|
3974
|
+
]
|
|
3975
|
+
},
|
|
3976
|
+
{
|
|
3977
|
+
slug: "talonic-list-agent-tools",
|
|
3978
|
+
parentSlug: "tools",
|
|
3979
|
+
title: "talonic_list_agent_tools",
|
|
3980
|
+
seoTitle: "talonic_list_agent_tools \u2014 Platform Agent Tool Registry",
|
|
3981
|
+
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.",
|
|
3982
|
+
content: [
|
|
3983
|
+
{
|
|
3984
|
+
type: "paragraph",
|
|
3985
|
+
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."
|
|
3986
|
+
},
|
|
3987
|
+
{ type: "heading", level: 3, id: "list-agent-tools-use-when", text: "When to use" },
|
|
3988
|
+
{
|
|
3989
|
+
type: "list",
|
|
3990
|
+
items: [
|
|
3991
|
+
"You need a capability the dedicated `talonic_*` tools do not cover (SQL over structured data, a workspace overview, cohort discovery).",
|
|
3992
|
+
"You want to see exactly what the in-product agent can do before driving it yourself with `talonic_invoke_agent_tool`."
|
|
3993
|
+
]
|
|
3994
|
+
},
|
|
3995
|
+
{ type: "heading", level: 3, id: "list-agent-tools-do-not-use", text: "When not to use" },
|
|
3996
|
+
{
|
|
3997
|
+
type: "list",
|
|
3998
|
+
items: [
|
|
3999
|
+
"Anything a dedicated `talonic_*` tool already does \u2014 prefer those, they are shaped for you."
|
|
4000
|
+
]
|
|
4001
|
+
},
|
|
4002
|
+
{ type: "heading", level: 3, id: "list-agent-tools-params", text: "Parameters" },
|
|
4003
|
+
{
|
|
4004
|
+
type: "param-table",
|
|
4005
|
+
params: [
|
|
4006
|
+
{
|
|
4007
|
+
name: "only_invocable",
|
|
4008
|
+
type: "boolean",
|
|
4009
|
+
description: "Hide tools this credential cannot invoke. Default true."
|
|
4010
|
+
},
|
|
4011
|
+
{
|
|
4012
|
+
name: "include_schemas",
|
|
4013
|
+
type: "boolean",
|
|
4014
|
+
description: "Include each tool's JSON input schema. Default true."
|
|
4015
|
+
}
|
|
4016
|
+
]
|
|
4017
|
+
},
|
|
4018
|
+
{ type: "heading", level: 3, id: "list-agent-tools-response", text: "Response shape" },
|
|
4019
|
+
{
|
|
4020
|
+
type: "param-table",
|
|
4021
|
+
title: "Fields",
|
|
4022
|
+
params: [
|
|
4023
|
+
{
|
|
4024
|
+
name: "tools[].name",
|
|
4025
|
+
type: "string",
|
|
4026
|
+
description: "Tool name to pass to `talonic_invoke_agent_tool`."
|
|
4027
|
+
},
|
|
4028
|
+
{
|
|
4029
|
+
name: "tools[].can_invoke",
|
|
4030
|
+
type: "boolean",
|
|
4031
|
+
description: "Whether this credential's role may run it."
|
|
4032
|
+
},
|
|
4033
|
+
{
|
|
4034
|
+
name: "tools[].input_schema",
|
|
4035
|
+
type: "object",
|
|
4036
|
+
description: "JSON Schema of the tool's `args`."
|
|
4037
|
+
},
|
|
4038
|
+
{
|
|
4039
|
+
name: "invocable_count / totalCount",
|
|
4040
|
+
type: "number",
|
|
4041
|
+
description: "Counts over the full registry."
|
|
4042
|
+
}
|
|
4043
|
+
]
|
|
4044
|
+
},
|
|
4045
|
+
{
|
|
4046
|
+
type: "code",
|
|
4047
|
+
language: "json",
|
|
4048
|
+
title: "Tool input",
|
|
4049
|
+
code: `{ "only_invocable": true, "include_schemas": false }`
|
|
4050
|
+
},
|
|
4051
|
+
{
|
|
4052
|
+
type: "code",
|
|
4053
|
+
language: "json",
|
|
4054
|
+
title: "Tool response",
|
|
4055
|
+
code: `{
|
|
4056
|
+
"tools": [
|
|
4057
|
+
{ "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 },
|
|
4058
|
+
{ "name": "query_data", "description": "Run a read-only SQL SELECT over the extracted data\u2026", "impact": "read", "capability": "data.read", "can_invoke": true }
|
|
4059
|
+
],
|
|
4060
|
+
"invocable_count": 12,
|
|
4061
|
+
"totalCount": 48
|
|
4062
|
+
}`
|
|
4063
|
+
}
|
|
4064
|
+
],
|
|
4065
|
+
related: [
|
|
4066
|
+
{ label: "talonic_search", slug: "talonic-search" },
|
|
4067
|
+
{ label: "talonic_filter", slug: "talonic-filter" }
|
|
4068
|
+
],
|
|
4069
|
+
faq: [
|
|
4070
|
+
{
|
|
4071
|
+
question: "Why are some tools listed with can_invoke false?",
|
|
4072
|
+
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."
|
|
4073
|
+
}
|
|
4074
|
+
],
|
|
4075
|
+
mentions: [
|
|
4076
|
+
"agent tools",
|
|
4077
|
+
"tool registry",
|
|
4078
|
+
"query_data",
|
|
4079
|
+
"describe_data",
|
|
4080
|
+
"capabilities",
|
|
4081
|
+
"can_invoke"
|
|
4082
|
+
]
|
|
4083
|
+
},
|
|
4084
|
+
{
|
|
4085
|
+
slug: "talonic-invoke-agent-tool",
|
|
4086
|
+
parentSlug: "tools",
|
|
4087
|
+
title: "talonic_invoke_agent_tool",
|
|
4088
|
+
seoTitle: "talonic_invoke_agent_tool \u2014 Run a Platform Agent Tool",
|
|
4089
|
+
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.",
|
|
4090
|
+
content: [
|
|
4091
|
+
{
|
|
4092
|
+
type: "paragraph",
|
|
4093
|
+
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."
|
|
4094
|
+
},
|
|
4095
|
+
{ type: "heading", level: 3, id: "invoke-agent-tool-use-when", text: "When to use" },
|
|
4096
|
+
{
|
|
4097
|
+
type: "list",
|
|
4098
|
+
items: [
|
|
4099
|
+
"`talonic_list_agent_tools` showed a tool with `can_invoke: true` that does what you need."
|
|
4100
|
+
]
|
|
4101
|
+
},
|
|
4102
|
+
{ type: "heading", level: 3, id: "invoke-agent-tool-do-not-use", text: "When not to use" },
|
|
4103
|
+
{
|
|
4104
|
+
type: "list",
|
|
4105
|
+
items: ["Anything a dedicated `talonic_*` tool already does \u2014 prefer those."]
|
|
4106
|
+
},
|
|
4107
|
+
{ type: "heading", level: 3, id: "invoke-agent-tool-params", text: "Parameters" },
|
|
4108
|
+
{
|
|
4109
|
+
type: "param-table",
|
|
4110
|
+
params: [
|
|
4111
|
+
{ name: "name", type: "string", description: "Tool name, e.g. `query_data`." },
|
|
4112
|
+
{
|
|
4113
|
+
name: "args",
|
|
4114
|
+
type: "object",
|
|
4115
|
+
description: "Arguments matching the tool's `input_schema`."
|
|
4116
|
+
},
|
|
4117
|
+
{
|
|
4118
|
+
name: "document_ids",
|
|
4119
|
+
type: "string[]",
|
|
4120
|
+
description: "Hard scope for scope-aware tools."
|
|
4121
|
+
}
|
|
4122
|
+
]
|
|
4123
|
+
},
|
|
4124
|
+
{ type: "heading", level: 3, id: "invoke-agent-tool-response", text: "Response shape" },
|
|
4125
|
+
{
|
|
4126
|
+
type: "param-table",
|
|
4127
|
+
title: "Fields",
|
|
4128
|
+
params: [
|
|
4129
|
+
{ name: "tool", type: "string", description: "The tool that ran." },
|
|
4130
|
+
{ name: "result", type: "any", description: "The tool's parsed output." },
|
|
4131
|
+
{
|
|
4132
|
+
name: "citations / artifacts / cards",
|
|
4133
|
+
type: "array",
|
|
4134
|
+
description: "Present when the tool attached them."
|
|
4135
|
+
}
|
|
4136
|
+
]
|
|
4137
|
+
},
|
|
4138
|
+
{
|
|
4139
|
+
type: "code",
|
|
4140
|
+
language: "json",
|
|
4141
|
+
title: "Tool input",
|
|
4142
|
+
code: `{ "name": "query_data", "args": { "sql": "SELECT field_key, count(*) FROM cells GROUP BY 1 ORDER BY 2 DESC LIMIT 5" } }`
|
|
4143
|
+
},
|
|
4144
|
+
{
|
|
4145
|
+
type: "code",
|
|
4146
|
+
language: "json",
|
|
4147
|
+
title: "Tool response",
|
|
4148
|
+
code: `{
|
|
4149
|
+
"tool": "query_data",
|
|
4150
|
+
"result": { "rows": [{ "field_key": "invoice_number", "count": 412 }], "row_count": 1 }
|
|
4151
|
+
}`
|
|
4152
|
+
}
|
|
4153
|
+
],
|
|
4154
|
+
related: [
|
|
4155
|
+
{ label: "talonic_search", slug: "talonic-search" },
|
|
4156
|
+
{ label: "talonic_filter", slug: "talonic-filter" }
|
|
4157
|
+
],
|
|
4158
|
+
faq: [
|
|
4159
|
+
{
|
|
4160
|
+
question: "Does invoking a tool cost credits?",
|
|
4161
|
+
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."
|
|
4162
|
+
}
|
|
4163
|
+
],
|
|
4164
|
+
mentions: [
|
|
4165
|
+
"invoke tool",
|
|
4166
|
+
"query_data",
|
|
4167
|
+
"sql over extracted data",
|
|
4168
|
+
"document markdown",
|
|
4169
|
+
"agent tool",
|
|
4170
|
+
"no model in the loop"
|
|
4171
|
+
]
|
|
4172
|
+
}
|
|
4173
|
+
];
|
|
4174
|
+
|
|
4175
|
+
// src/content/sections/features.ts
|
|
4176
|
+
var sections4 = [
|
|
4177
|
+
{
|
|
4178
|
+
slug: "drag-and-drop",
|
|
4179
|
+
parentSlug: "features",
|
|
4180
|
+
title: "Drag & Drop Files",
|
|
4181
|
+
seoTitle: "Drag & Drop File Extraction with the Talonic MCP Server",
|
|
4182
|
+
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.",
|
|
4183
|
+
content: [
|
|
4184
|
+
{
|
|
4185
|
+
type: "paragraph",
|
|
4186
|
+
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."
|
|
4187
|
+
},
|
|
4188
|
+
{
|
|
4189
|
+
type: "paragraph",
|
|
4190
|
+
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."
|
|
4191
|
+
},
|
|
4192
|
+
{
|
|
4193
|
+
type: "paragraph",
|
|
4194
|
+
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."
|
|
4195
|
+
},
|
|
4196
|
+
{
|
|
4197
|
+
type: "paragraph",
|
|
4198
|
+
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."
|
|
4199
|
+
},
|
|
4200
|
+
{
|
|
4201
|
+
type: "heading",
|
|
4202
|
+
level: 3,
|
|
4203
|
+
id: "drag-drop-example",
|
|
4204
|
+
text: "Example: drag-and-drop extraction flow"
|
|
4205
|
+
},
|
|
4206
|
+
{
|
|
4207
|
+
type: "code",
|
|
4208
|
+
language: "json",
|
|
4209
|
+
title: "What the agent sends when a user drops a PDF",
|
|
4210
|
+
code: `// User drops "receipt-2026-05.pdf" into the chat
|
|
4211
|
+
// The MCP client base64-encodes the file bytes automatically
|
|
4212
|
+
// Agent calls talonic_extract:
|
|
4213
|
+
{
|
|
4214
|
+
"file_data": "JVBERi0xLjQKJcOkw7zDtsO8...",
|
|
4215
|
+
"filename": "receipt-2026-05.pdf",
|
|
4216
|
+
"schema": {
|
|
4217
|
+
"type": "object",
|
|
4218
|
+
"properties": {
|
|
4219
|
+
"merchant": { "type": "string" },
|
|
4220
|
+
"date": { "type": "string", "format": "date" },
|
|
4221
|
+
"total": { "type": "number" },
|
|
4222
|
+
"payment_method": { "type": "string" }
|
|
4223
|
+
},
|
|
4224
|
+
"required": ["merchant", "total"]
|
|
4225
|
+
}
|
|
4226
|
+
}`
|
|
4227
|
+
},
|
|
4228
|
+
{
|
|
4229
|
+
type: "code",
|
|
4230
|
+
language: "json",
|
|
4231
|
+
title: "Extraction response from dropped file",
|
|
4232
|
+
code: `{
|
|
4233
|
+
"status": "complete",
|
|
4234
|
+
"document": {
|
|
4235
|
+
"id": "doc_f1e2...",
|
|
4236
|
+
"filename": "receipt-2026-05.pdf",
|
|
4237
|
+
"pages": 1,
|
|
4238
|
+
"type_detected": "receipt"
|
|
4239
|
+
},
|
|
4240
|
+
"data": {
|
|
4241
|
+
"merchant": "Coffee House Berlin",
|
|
4242
|
+
"date": "2026-05-07",
|
|
4243
|
+
"total": 14.80,
|
|
4244
|
+
"payment_method": "Visa ending 4242"
|
|
4245
|
+
},
|
|
4246
|
+
"confidence": { "overall": 0.95 }
|
|
4247
|
+
}`
|
|
4248
|
+
},
|
|
4249
|
+
{
|
|
4250
|
+
type: "paragraph",
|
|
4251
|
+
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."
|
|
4252
|
+
},
|
|
4253
|
+
{
|
|
4254
|
+
type: "paragraph",
|
|
4255
|
+
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."
|
|
4256
|
+
},
|
|
4257
|
+
{
|
|
4258
|
+
type: "callout",
|
|
4259
|
+
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."
|
|
4260
|
+
}
|
|
4261
|
+
],
|
|
4262
|
+
related: [
|
|
4263
|
+
{ label: "talonic_extract", slug: "talonic-extract" },
|
|
4264
|
+
{ label: "talonic_to_markdown", slug: "talonic-to-markdown" },
|
|
4265
|
+
{ label: "Common Issues", slug: "common-issues" }
|
|
4266
|
+
],
|
|
4267
|
+
faq: [
|
|
4268
|
+
{
|
|
4269
|
+
question: "Can I drag and drop files into Claude Desktop with Talonic?",
|
|
4270
|
+
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."
|
|
4271
|
+
},
|
|
4272
|
+
{
|
|
4273
|
+
question: "What file types can I drag and drop?",
|
|
4274
|
+
answer: "PDF, PNG, JPG, TIFF, DOCX, XLSX, and other common document formats. The MCP server infers the MIME type from the filename extension."
|
|
4275
|
+
},
|
|
4276
|
+
{
|
|
4277
|
+
question: "Why does drag-and-drop fail with an unsupported_file_type error?",
|
|
3347
4278
|
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."
|
|
3348
4279
|
},
|
|
3349
4280
|
{
|
|
@@ -3361,8 +4292,8 @@ var sections4 = [
|
|
|
3361
4292
|
slug: "how-it-works",
|
|
3362
4293
|
parentSlug: "features",
|
|
3363
4294
|
title: "How It Works",
|
|
3364
|
-
seoTitle: "How Talonic MCP Works \u2014
|
|
3365
|
-
description: "Architecture of the Talonic MCP server: MCP
|
|
4295
|
+
seoTitle: "How the Talonic MCP Server Works \u2014 Architecture Guide",
|
|
4296
|
+
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.",
|
|
3366
4297
|
content: [
|
|
3367
4298
|
{
|
|
3368
4299
|
type: "code",
|
|
@@ -3380,7 +4311,7 @@ api.talonic.com`
|
|
|
3380
4311
|
},
|
|
3381
4312
|
{
|
|
3382
4313
|
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."
|
|
4314
|
+
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
4315
|
},
|
|
3385
4316
|
{
|
|
3386
4317
|
type: "paragraph",
|
|
@@ -3446,7 +4377,7 @@ api.talonic.com`
|
|
|
3446
4377
|
],
|
|
3447
4378
|
related: [
|
|
3448
4379
|
{ label: "Environment Variables", slug: "env-variables" },
|
|
3449
|
-
{ label: "
|
|
4380
|
+
{ label: "Common Issues", slug: "common-issues" },
|
|
3450
4381
|
{ label: "Install Overview", slug: "install-overview" }
|
|
3451
4382
|
],
|
|
3452
4383
|
faq: [
|
|
@@ -3481,8 +4412,8 @@ var sections5 = [
|
|
|
3481
4412
|
slug: "env-variables",
|
|
3482
4413
|
parentSlug: "configuration",
|
|
3483
4414
|
title: "Environment Variables",
|
|
3484
|
-
seoTitle: "
|
|
3485
|
-
description: "
|
|
4415
|
+
seoTitle: "Environment Variables \u2014 Talonic MCP Server Reference",
|
|
4416
|
+
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
4417
|
content: [
|
|
3487
4418
|
{ type: "paragraph", text: "Set via the `env` block in your MCP client config:" },
|
|
3488
4419
|
{
|
|
@@ -3504,7 +4435,7 @@ var sections5 = [
|
|
|
3504
4435
|
},
|
|
3505
4436
|
{
|
|
3506
4437
|
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.
|
|
4438
|
+
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
4439
|
},
|
|
3509
4440
|
{
|
|
3510
4441
|
type: "paragraph",
|
|
@@ -3516,7 +4447,7 @@ var sections5 = [
|
|
|
3516
4447
|
},
|
|
3517
4448
|
{
|
|
3518
4449
|
type: "paragraph",
|
|
3519
|
-
text: "If the MCP server cannot read the API key at startup, it exits with a
|
|
4450
|
+
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
4451
|
},
|
|
3521
4452
|
{
|
|
3522
4453
|
type: "heading",
|
|
@@ -3575,6 +4506,39 @@ var sections5 = [
|
|
|
3575
4506
|
type: "paragraph",
|
|
3576
4507
|
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
4508
|
},
|
|
4509
|
+
{
|
|
4510
|
+
type: "heading",
|
|
4511
|
+
level: 3,
|
|
4512
|
+
id: "env-self-hosting",
|
|
4513
|
+
text: "Self-hosting the HTTP transport"
|
|
4514
|
+
},
|
|
4515
|
+
{
|
|
4516
|
+
type: "paragraph",
|
|
4517
|
+
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."
|
|
4518
|
+
},
|
|
4519
|
+
{
|
|
4520
|
+
type: "param-table",
|
|
4521
|
+
params: [
|
|
4522
|
+
{
|
|
4523
|
+
name: "PORT",
|
|
4524
|
+
type: "number",
|
|
4525
|
+
description: "Port the HTTP transport listens on.",
|
|
4526
|
+
default: "3000"
|
|
4527
|
+
},
|
|
4528
|
+
{
|
|
4529
|
+
name: "MCP_RESOURCE_URL",
|
|
4530
|
+
type: "string",
|
|
4531
|
+
description: "Public URL this deployment advertises as its OAuth protected-resource identifier.",
|
|
4532
|
+
default: "https://mcp.talonic.com"
|
|
4533
|
+
},
|
|
4534
|
+
{
|
|
4535
|
+
name: "OAUTH_AUTHORIZATION_SERVER",
|
|
4536
|
+
type: "string",
|
|
4537
|
+
description: "Authorization server clients are pointed at during OAuth discovery.",
|
|
4538
|
+
default: "https://api.talonic.com"
|
|
4539
|
+
}
|
|
4540
|
+
]
|
|
4541
|
+
},
|
|
3578
4542
|
{
|
|
3579
4543
|
type: "callout",
|
|
3580
4544
|
variant: "warning",
|
|
@@ -3597,7 +4561,7 @@ var sections5 = [
|
|
|
3597
4561
|
},
|
|
3598
4562
|
{
|
|
3599
4563
|
question: "What happens if the API key is missing or invalid?",
|
|
3600
|
-
answer: "
|
|
4564
|
+
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
4565
|
},
|
|
3602
4566
|
{
|
|
3603
4567
|
question: "Can I set the API key in my shell profile instead of the config file?",
|
|
@@ -3618,8 +4582,8 @@ var sections6 = [
|
|
|
3618
4582
|
slug: "common-issues",
|
|
3619
4583
|
parentSlug: "troubleshooting",
|
|
3620
4584
|
title: "Common Issues",
|
|
3621
|
-
seoTitle: "
|
|
3622
|
-
description: "
|
|
4585
|
+
seoTitle: "Common Issues \u2014 Talonic MCP Server Troubleshooting",
|
|
4586
|
+
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
4587
|
content: [
|
|
3624
4588
|
{
|
|
3625
4589
|
type: "paragraph",
|
|
@@ -3792,16 +4756,16 @@ var sections6 = [
|
|
|
3792
4756
|
slug: "known-limitations",
|
|
3793
4757
|
parentSlug: "troubleshooting",
|
|
3794
4758
|
title: "Known Limitations",
|
|
3795
|
-
seoTitle: "Known Limitations
|
|
3796
|
-
description: "
|
|
4759
|
+
seoTitle: "Known Limitations of the Talonic MCP Server and Tools",
|
|
4760
|
+
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
4761
|
content: [
|
|
3798
4762
|
{
|
|
3799
4763
|
type: "paragraph",
|
|
3800
|
-
text: "The Talonic MCP server
|
|
4764
|
+
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
4765
|
},
|
|
3802
4766
|
{
|
|
3803
4767
|
type: "paragraph",
|
|
3804
|
-
text: "Most limitations relate to the
|
|
4768
|
+
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
4769
|
},
|
|
3806
4770
|
{
|
|
3807
4771
|
type: "list",
|
|
@@ -3812,12 +4776,12 @@ var sections6 = [
|
|
|
3812
4776
|
"**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
4777
|
"**`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
4778
|
"**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
|
|
4779
|
+
"**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
4780
|
]
|
|
3817
4781
|
},
|
|
3818
4782
|
{
|
|
3819
4783
|
type: "paragraph",
|
|
3820
|
-
text: "Agents should handle these limitations gracefully. For the schema requirement, always construct or reference a schema before calling `talonic_extract`.
|
|
4784
|
+
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
4785
|
},
|
|
3822
4786
|
{
|
|
3823
4787
|
type: "paragraph",
|
|
@@ -3869,7 +4833,7 @@ var sections6 = [
|
|
|
3869
4833
|
faq: [
|
|
3870
4834
|
{
|
|
3871
4835
|
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.
|
|
4836
|
+
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
4837
|
},
|
|
3874
4838
|
{
|
|
3875
4839
|
question: "Can I extract without knowing the fields up front (schema-less)?",
|
|
@@ -3877,7 +4841,7 @@ var sections6 = [
|
|
|
3877
4841
|
},
|
|
3878
4842
|
{
|
|
3879
4843
|
question: "How do I check my credit balance or costs?",
|
|
3880
|
-
answer: "
|
|
4844
|
+
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
4845
|
},
|
|
3882
4846
|
{
|
|
3883
4847
|
question: "How do I report a new limitation or bug?",
|
|
@@ -3901,8 +4865,8 @@ var sections6 = [
|
|
|
3901
4865
|
slug: "upgrading",
|
|
3902
4866
|
parentSlug: "troubleshooting",
|
|
3903
4867
|
title: "Upgrading",
|
|
3904
|
-
seoTitle: "Upgrading from Older Versions
|
|
3905
|
-
description: "
|
|
4868
|
+
seoTitle: "Upgrading the Talonic MCP Server from Older Versions",
|
|
4869
|
+
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
4870
|
content: [
|
|
3907
4871
|
{
|
|
3908
4872
|
type: "paragraph",
|