@talonic/mcp 0.1.74 → 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/dist/content.js CHANGED
@@ -35,7 +35,18 @@ var MCP_NAV_SECTIONS = [
35
35
  { id: "talonic-get-balance", label: "talonic_get_balance" },
36
36
  { id: "talonic-get-pricing", label: "talonic_get_pricing" },
37
37
  { id: "talonic-get-usage", label: "talonic_get_usage" },
38
- { id: "talonic-request-upload", label: "talonic_request_upload" }
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" },
45
+ { id: "talonic-list-agent-tasks", label: "talonic_list_agent_tasks" },
46
+ { id: "talonic-get-agent-task", label: "talonic_get_agent_task" },
47
+ { id: "talonic-claim-agent-task", label: "talonic_claim_agent_task" },
48
+ { id: "talonic-heartbeat-agent-task", label: "talonic_heartbeat_agent_task" },
49
+ { id: "talonic-submit-agent-task", label: "talonic_submit_agent_task" }
39
50
  ]
40
51
  },
41
52
  {
@@ -95,8 +106,8 @@ var sections = [
95
106
  slug: "mcp-introduction",
96
107
  parentSlug: "overview",
97
108
  title: "Introduction",
98
- seoTitle: "MCP Server Introduction \u2014 Talonic Docs",
99
- description: "Official Talonic MCP server. Lets AI agents extract structured, schema-validated data from any document via the Model Context Protocol.",
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.",
100
111
  content: [
101
112
  {
102
113
  type: "paragraph",
@@ -104,7 +115,7 @@ var sections = [
104
115
  },
105
116
  {
106
117
  type: "paragraph",
107
- text: "Eight tools and two resources: `talonic_extract`, `talonic_search`, `talonic_filter`, `talonic_get_document`, `talonic_to_markdown`, `talonic_list_schemas`, `talonic_save_schema`, `talonic_get_balance`, plus the `talonic://schemas` and `talonic://webhooks/reference` resources."
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."
108
119
  },
109
120
  {
110
121
  type: "paragraph",
@@ -163,13 +174,13 @@ var sections = [
163
174
  {
164
175
  type: "callout",
165
176
  variant: "info",
166
- 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."
167
178
  }
168
179
  ],
169
180
  related: [
170
181
  { label: "Why Use This", slug: "why-mcp" },
171
182
  { label: "Claude Desktop", slug: "claude-desktop" },
172
- { label: "Node SDK", slug: "introduction" }
183
+ { label: "Install Overview", slug: "install-overview" }
173
184
  ],
174
185
  faq: [
175
186
  {
@@ -189,8 +200,8 @@ var sections = [
189
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."
190
201
  },
191
202
  {
192
- question: "How many tools does the Talonic MCP server expose?",
193
- answer: "Eight tools and two resources. The tools are talonic_extract, talonic_search, talonic_filter, talonic_get_document, talonic_to_markdown, talonic_list_schemas, talonic_save_schema, and talonic_get_balance. The resources are talonic://schemas and talonic://webhooks/reference."
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."
194
205
  }
195
206
  ],
196
207
  mentions: ["MCP", "Model Context Protocol", "AI agents", "document extraction"]
@@ -199,8 +210,8 @@ var sections = [
199
210
  slug: "why-mcp",
200
211
  parentSlug: "overview",
201
212
  title: "Why Use This",
202
- seoTitle: "Why Talonic MCP \u2014 Talonic Docs",
203
- description: "Why AI agents should use the Talonic MCP server instead of raw OCR plus LLM calls for document extraction.",
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.",
204
215
  content: [
205
216
  {
206
217
  type: "paragraph",
@@ -208,7 +219,7 @@ var sections = [
208
219
  },
209
220
  {
210
221
  type: "paragraph",
211
- 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. Seven other tools cover the rest of the workflow: searching the workspace, filtering by extracted field values, fetching a document's metadata, getting OCR markdown, listing saved schemas, saving new ones, and reading the workspace credit balance for budget-aware behaviour."
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."
212
223
  },
213
224
  {
214
225
  type: "paragraph",
@@ -290,8 +301,8 @@ var sections = [
290
301
  slug: "agent-decision-guide",
291
302
  parentSlug: "overview",
292
303
  title: "Agent Decision Guide",
293
- seoTitle: "Agent Decision Guide \u2014 Talonic MCP",
294
- description: "How an AI agent should pick between Talonic's tools, handle low-confidence results, and avoid unnecessary calls.",
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.",
295
306
  content: [
296
307
  {
297
308
  type: "paragraph",
@@ -299,7 +310,7 @@ var sections = [
299
310
  },
300
311
  {
301
312
  type: "paragraph",
302
- text: "The eleven 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."
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."
303
314
  },
304
315
  {
305
316
  type: "paragraph",
@@ -384,8 +395,28 @@ var sections = [
384
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.",
385
396
  "**The user wants to discuss or revise** an extraction you already produced. Reason over the previous result instead of re-extracting.",
386
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.",
387
- "**Cost, EUR price, and remaining credit balance are not surfaced in v0.1 tool responses.** If the user asks 'how much will this cost' or 'how many credits do I have left', point them to the Talonic dashboard at https://app.talonic.com."
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."
388
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?"
389
420
  }
390
421
  ],
391
422
  related: [
@@ -414,8 +445,8 @@ var sections = [
414
445
  slug: "get-api-key",
415
446
  parentSlug: "overview",
416
447
  title: "Get an API Key",
417
- seoTitle: "Get an API Key \u2014 Talonic MCP",
418
- description: "Get a Talonic API key in 30 seconds. Each user runs against their own isolated workspace with private documents and schemas.",
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.",
419
450
  content: [
420
451
  {
421
452
  type: "paragraph",
@@ -549,8 +580,8 @@ var sections2 = [
549
580
  slug: "install-overview",
550
581
  parentSlug: "install",
551
582
  title: "Install Overview",
552
- seoTitle: "Install Talonic MCP \u2014 Talonic Docs",
553
- description: "Install the Talonic MCP server with a one-line npx invocation. No clone, no build. Works with every MCP client.",
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.",
554
585
  content: [
555
586
  {
556
587
  type: "paragraph",
@@ -576,7 +607,7 @@ var sections2 = [
576
607
  "Click **Connect**. You are redirected to Talonic to sign in.",
577
608
  "Sign in with Google, Microsoft, or your company SSO.",
578
609
  "Approve the consent screen. The requested scopes are `extract:write`, `documents:read`, and `schemas:read`. Pick a workspace if you have multiple.",
579
- "You are returned to Claude.ai with the connector live. All eleven tools are available in any new conversation."
610
+ "You are returned to Claude.ai with the connector live. The full Talonic tool set is available in any new conversation."
580
611
  ]
581
612
  },
582
613
  {
@@ -628,7 +659,7 @@ var sections2 = [
628
659
  },
629
660
  {
630
661
  type: "paragraph",
631
- text: "All three install paths expose the same eleven tools 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`."
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`."
632
663
  },
633
664
  {
634
665
  type: "heading",
@@ -638,7 +669,7 @@ var sections2 = [
638
669
  },
639
670
  {
640
671
  type: "paragraph",
641
- 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, all eleven tools are ready to use."
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."
642
673
  },
643
674
  {
644
675
  type: "code",
@@ -710,8 +741,8 @@ var sections2 = [
710
741
  slug: "claude-desktop",
711
742
  parentSlug: "install",
712
743
  title: "Claude Desktop",
713
- seoTitle: "Claude Desktop Setup \u2014 Talonic MCP",
714
- description: "Configure the Talonic MCP server in Claude Desktop on macOS and Windows.",
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.",
715
746
  content: [
716
747
  {
717
748
  type: "paragraph",
@@ -723,7 +754,7 @@ var sections2 = [
723
754
  { type: "code", language: "json", code: MCP_CONFIG_SNIPPET },
724
755
  {
725
756
  type: "paragraph",
726
- text: "Fully restart Claude Desktop (Cmd+Q on macOS, not just close the window). Talonic appears in the connected servers list with all eleven tools."
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."
727
758
  },
728
759
  {
729
760
  type: "paragraph",
@@ -807,8 +838,8 @@ var sections2 = [
807
838
  slug: "cursor",
808
839
  parentSlug: "install",
809
840
  title: "Cursor",
810
- seoTitle: "Cursor Setup \u2014 Talonic MCP",
811
- description: "Configure the Talonic MCP server in Cursor IDE.",
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.",
812
843
  content: [
813
844
  {
814
845
  type: "paragraph",
@@ -872,6 +903,10 @@ var sections2 = [
872
903
  type: "paragraph",
873
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."
874
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
+ },
875
910
  {
876
911
  type: "callout",
877
912
  variant: "info",
@@ -906,8 +941,8 @@ var sections2 = [
906
941
  slug: "cline",
907
942
  parentSlug: "install",
908
943
  title: "Cline",
909
- seoTitle: "Cline Setup \u2014 Talonic MCP",
910
- 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.",
911
946
  content: [
912
947
  {
913
948
  type: "paragraph",
@@ -995,8 +1030,8 @@ var sections2 = [
995
1030
  slug: "continue",
996
1031
  parentSlug: "install",
997
1032
  title: "Continue",
998
- seoTitle: "Continue Setup \u2014 Talonic MCP",
999
- description: "Configure the Talonic MCP server in Continue for VS Code and JetBrains.",
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.",
1000
1035
  content: [
1001
1036
  { type: "paragraph", text: "Edit `~/.continue/config.json`. Add to the `mcpServers` array:" },
1002
1037
  { type: "heading", level: 3, id: "continue-hosted", text: "Hosted (recommended)" },
@@ -1030,7 +1065,7 @@ var sections2 = [
1030
1065
  },
1031
1066
  {
1032
1067
  type: "paragraph",
1033
- text: "After saving the config, reload your IDE window to pick up the changes. Continue discovers Talonic's eleven 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."
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."
1034
1069
  },
1035
1070
  {
1036
1071
  type: "paragraph",
@@ -1103,8 +1138,8 @@ var sections2 = [
1103
1138
  slug: "cowork",
1104
1139
  parentSlug: "install",
1105
1140
  title: "Cowork",
1106
- seoTitle: "Cowork Setup \u2014 Talonic MCP",
1107
- 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.",
1108
1143
  content: [
1109
1144
  { type: "paragraph", text: "Open Cowork settings \u2192 MCP Servers \u2192 Add." },
1110
1145
  { type: "heading", level: 3, id: "cowork-hosted", text: "Hosted (recommended)" },
@@ -1113,7 +1148,7 @@ var sections2 = [
1113
1148
  { type: "code", language: "json", code: MCP_CONFIG_SNIPPET },
1114
1149
  {
1115
1150
  type: "paragraph",
1116
- text: "Cowork is a chat-style MCP client that supports drag-and-drop file uploads and resource browsing. After adding the Talonic config, the eleven tools appear in the tool picker and the `talonic://schemas` and `talonic://webhooks/reference` resources are browseable in the resources panel."
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."
1117
1152
  },
1118
1153
  {
1119
1154
  type: "paragraph",
@@ -1162,6 +1197,10 @@ var sections2 = [
1162
1197
  type: "paragraph",
1163
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."
1164
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
+ },
1165
1204
  {
1166
1205
  type: "callout",
1167
1206
  variant: "info",
@@ -1200,8 +1239,8 @@ var sections3 = [
1200
1239
  slug: "talonic-extract",
1201
1240
  parentSlug: "tools",
1202
1241
  title: "talonic_extract",
1203
- seoTitle: "talonic_extract Tool \u2014 Talonic MCP",
1204
- description: "Extract structured, schema-validated data from a document. Returns clean JSON with per-field confidence scores.",
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.",
1205
1244
  content: [
1206
1245
  { type: "paragraph", text: "Extract structured, schema-validated data from a document." },
1207
1246
  {
@@ -1418,8 +1457,8 @@ var sections3 = [
1418
1457
  slug: "talonic-search",
1419
1458
  parentSlug: "tools",
1420
1459
  title: "talonic_search",
1421
- seoTitle: "talonic_search Tool \u2014 Talonic MCP",
1422
- description: "Omnisearch across documents, fields, sources, and schemas in the workspace. Supports conceptual and fuzzy queries.",
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.",
1423
1462
  content: [
1424
1463
  {
1425
1464
  type: "paragraph",
@@ -1578,8 +1617,8 @@ var sections3 = [
1578
1617
  slug: "talonic-filter",
1579
1618
  parentSlug: "tools",
1580
1619
  title: "talonic_filter",
1581
- seoTitle: "talonic_filter Tool \u2014 Talonic MCP",
1582
- description: "Filter documents by extracted field values using composable conditions like eq, gt, between, and contains.",
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.",
1583
1622
  content: [
1584
1623
  {
1585
1624
  type: "paragraph",
@@ -1783,8 +1822,8 @@ var sections3 = [
1783
1822
  slug: "talonic-get-document",
1784
1823
  parentSlug: "tools",
1785
1824
  title: "talonic_get_document",
1786
- seoTitle: "talonic_get_document Tool \u2014 Talonic MCP",
1787
- description: "Fetch full metadata for a single document by ID, including processing log and link URLs.",
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.",
1788
1827
  content: [
1789
1828
  {
1790
1829
  type: "paragraph",
@@ -1914,8 +1953,8 @@ var sections3 = [
1914
1953
  slug: "talonic-to-markdown",
1915
1954
  parentSlug: "tools",
1916
1955
  title: "talonic_to_markdown",
1917
- seoTitle: "talonic_to_markdown Tool \u2014 Talonic MCP",
1918
- description: "Get OCR-converted markdown for a document. Accepts document_id, file_data + filename, file_path, or file_url.",
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.",
1919
1958
  content: [
1920
1959
  {
1921
1960
  type: "paragraph",
@@ -2066,8 +2105,8 @@ Payment terms: Net 30`
2066
2105
  slug: "talonic-list-schemas",
2067
2106
  parentSlug: "tools",
2068
2107
  title: "talonic_list_schemas",
2069
- seoTitle: "talonic_list_schemas Tool \u2014 Talonic MCP",
2070
- description: "List all saved schemas in the workspace as compact summaries.",
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.",
2071
2110
  content: [
2072
2111
  {
2073
2112
  type: "paragraph",
@@ -2210,8 +2249,8 @@ Payment terms: Net 30`
2210
2249
  slug: "talonic-save-schema",
2211
2250
  parentSlug: "tools",
2212
2251
  title: "talonic_save_schema",
2213
- seoTitle: "talonic_save_schema Tool \u2014 Talonic MCP",
2214
- description: "Save a schema definition to the workspace for reuse across extractions.",
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.",
2215
2254
  content: [
2216
2255
  {
2217
2256
  type: "paragraph",
@@ -2407,8 +2446,8 @@ Payment terms: Net 30`
2407
2446
  slug: "talonic-get-balance",
2408
2447
  parentSlug: "tools",
2409
2448
  title: "talonic_get_balance",
2410
- seoTitle: "talonic_get_balance Tool \u2014 Talonic MCP",
2411
- description: "MCP tool that returns the current Talonic credit balance, EUR value, 30-day burn rate, projected runway, tier, and next monthly tier-reset timestamp.",
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.",
2412
2451
  content: [
2413
2452
  {
2414
2453
  type: "paragraph",
@@ -2516,11 +2555,17 @@ Payment terms: Net 30`
2516
2555
  {
2517
2556
  type: "paragraph",
2518
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)."
2519
2563
  }
2520
2564
  ],
2521
2565
  related: [
2522
2566
  { label: "talonic_extract", slug: "talonic-extract" },
2523
- { label: "Pricing", slug: "pricing" }
2567
+ { label: "talonic_get_pricing", slug: "talonic-get-pricing" },
2568
+ { label: "talonic_get_usage", slug: "talonic-get-usage" }
2524
2569
  ],
2525
2570
  faq: [
2526
2571
  {
@@ -2546,8 +2591,8 @@ Payment terms: Net 30`
2546
2591
  slug: "talonic-get-pricing",
2547
2592
  parentSlug: "tools",
2548
2593
  title: "talonic_get_pricing",
2549
- seoTitle: "talonic_get_pricing Tool \u2014 Talonic MCP",
2550
- description: "MCP tool that returns the machine-readable Talonic credit pricing catalog: fixed per-unit credit rates, EUR equivalents, the credits-per-EUR conversion, and processing-mode multipliers, so an agent can predict spend before running anything.",
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.",
2551
2596
  content: [
2552
2597
  {
2553
2598
  type: "paragraph",
@@ -2646,6 +2691,15 @@ Payment terms: Net 30`
2646
2691
  {
2647
2692
  type: "paragraph",
2648
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."
2649
2703
  }
2650
2704
  ],
2651
2705
  related: [
@@ -2680,8 +2734,8 @@ Payment terms: Net 30`
2680
2734
  slug: "talonic-get-usage",
2681
2735
  parentSlug: "tools",
2682
2736
  title: "talonic_get_usage",
2683
- seoTitle: "talonic_get_usage Tool \u2014 Talonic MCP",
2684
- description: "MCP tool that returns per-function credit consumption for the workspace over a trailing window, so an agent can see where credits went across extraction, structuring, and intelligence operations.",
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.",
2685
2739
  content: [
2686
2740
  {
2687
2741
  type: "paragraph",
@@ -2767,6 +2821,15 @@ Payment terms: Net 30`
2767
2821
  {
2768
2822
  type: "paragraph",
2769
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."
2770
2833
  }
2771
2834
  ],
2772
2835
  related: [
@@ -2800,8 +2863,8 @@ Payment terms: Net 30`
2800
2863
  slug: "talonic-request-upload",
2801
2864
  parentSlug: "tools",
2802
2865
  title: "talonic_request_upload",
2803
- seoTitle: "talonic_request_upload Tool \u2014 Talonic MCP",
2804
- description: "Request a browser-handoff upload link for files that can't be delivered via tool-call arguments. Returns a pre-allocated document_id, an upload URL, and an expiry timestamp.",
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.",
2805
2868
  content: [
2806
2869
  {
2807
2870
  type: "paragraph",
@@ -2956,276 +3019,1426 @@ Payment terms: Net 30`
2956
3019
  "Claude.ai",
2957
3020
  "32 KB cap"
2958
3021
  ]
2959
- }
2960
- ];
2961
-
2962
- // src/content/sections/features.ts
2963
- var sections4 = [
3022
+ },
2964
3023
  {
2965
- slug: "drag-and-drop",
2966
- parentSlug: "features",
2967
- title: "Drag & Drop Files",
2968
- seoTitle: "Drag & Drop File Support \u2014 Talonic MCP",
2969
- description: "Drop PDFs and documents directly into Claude Desktop, Cursor, or Cowork and extract data without file path configuration.",
3024
+ slug: "talonic-list-agent-tasks",
3025
+ parentSlug: "tools",
3026
+ title: "talonic_list_agent_tasks",
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.",
2970
3029
  content: [
2971
3030
  {
2972
3031
  type: "paragraph",
2973
- 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."
2974
- },
2975
- {
2976
- type: "paragraph",
2977
- 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."
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."
2978
3033
  },
2979
3034
  {
2980
3035
  type: "paragraph",
2981
- 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."
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."
2982
3037
  },
2983
3038
  {
2984
3039
  type: "paragraph",
2985
- 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."
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."
2986
3041
  },
2987
3042
  {
2988
3043
  type: "heading",
2989
3044
  level: 3,
2990
- id: "drag-drop-example",
2991
- text: "Example: drag-and-drop extraction flow"
3045
+ id: "list-agent-tasks-workflow",
3046
+ text: "Start the pull workflow"
2992
3047
  },
2993
3048
  {
2994
- type: "code",
2995
- language: "json",
2996
- title: "What the agent sends when a user drops a PDF",
2997
- code: `// User drops "receipt-2026-05.pdf" into the chat
2998
- // The MCP client base64-encodes the file bytes automatically
2999
- // Agent calls talonic_extract:
3000
- {
3001
- "file_data": "JVBERi0xLjQKJcOkw7zDtsO8...",
3002
- "filename": "receipt-2026-05.pdf",
3003
- "schema": {
3004
- "type": "object",
3005
- "properties": {
3006
- "merchant": { "type": "string" },
3007
- "date": { "type": "string", "format": "date" },
3008
- "total": { "type": "number" },
3009
- "payment_method": { "type": "string" }
3010
- },
3011
- "required": ["merchant", "total"]
3012
- }
3013
- }`
3049
+ type: "list",
3050
+ ordered: true,
3051
+ items: [
3052
+ 'Call `talonic_list_agent_tasks` with `status: "available"`.',
3053
+ "Inspect a candidate with `talonic_get_agent_task`.",
3054
+ "Claim it with `talonic_claim_agent_task` before doing work.",
3055
+ "Heartbeat while processing, then submit only fields declared in `output_contract`."
3056
+ ]
3057
+ },
3058
+ {
3059
+ type: "param-table",
3060
+ params: [
3061
+ {
3062
+ name: "status",
3063
+ type: "available | claimed | submitted | timed_out | cancelled",
3064
+ description: "Optional lifecycle-state filter. Start with `available` when looking for work."
3065
+ },
3066
+ {
3067
+ name: "limit",
3068
+ type: "integer",
3069
+ description: "Page size from 1 to 100. Defaults to 50."
3070
+ },
3071
+ {
3072
+ name: "cursor",
3073
+ type: "string",
3074
+ description: "Opaque `pagination.next_cursor` from the previous page."
3075
+ }
3076
+ ]
3014
3077
  },
3015
3078
  {
3016
3079
  type: "code",
3017
3080
  language: "json",
3018
- title: "Extraction response from dropped file",
3019
- code: `{
3020
- "status": "complete",
3021
- "document": {
3022
- "id": "doc_f1e2...",
3023
- "filename": "receipt-2026-05.pdf",
3024
- "pages": 1,
3025
- "type_detected": "receipt"
3026
- },
3027
- "data": {
3028
- "merchant": "Coffee House Berlin",
3029
- "date": "2026-05-07",
3030
- "total": 14.80,
3031
- "payment_method": "Visa ending 4242"
3032
- },
3033
- "confidence": { "overall": 0.95 }
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 }
3034
3098
  }`
3035
3099
  },
3036
3100
  {
3037
3101
  type: "paragraph",
3038
- 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."
3039
- },
3040
- {
3041
- type: "paragraph",
3042
- 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."
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`.'
3043
3103
  },
3044
3104
  {
3045
3105
  type: "callout",
3046
- 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."
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."
3047
3107
  }
3048
3108
  ],
3049
3109
  related: [
3050
- { label: "talonic_extract", slug: "talonic-extract" },
3051
- { label: "talonic_to_markdown", slug: "talonic-to-markdown" },
3052
- { label: "Common Issues", slug: "common-issues" }
3110
+ { label: "talonic_get_agent_task", slug: "talonic-get-agent-task" },
3111
+ { label: "talonic_claim_agent_task", slug: "talonic-claim-agent-task" },
3112
+ { label: "talonic_submit_agent_task", slug: "talonic-submit-agent-task" }
3053
3113
  ],
3054
3114
  faq: [
3055
3115
  {
3056
- question: "Can I drag and drop files into Claude Desktop with Talonic?",
3057
- 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."
3058
- },
3059
- {
3060
- question: "What file types can I drag and drop?",
3061
- answer: "PDF, PNG, JPG, TIFF, DOCX, XLSX, and other common document formats. The MCP server infers the MIME type from the filename extension."
3062
- },
3063
- {
3064
- question: "Why does drag-and-drop fail with an unsupported_file_type error?",
3065
- 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."
3116
+ question: "Does listing Agent tasks expose document data?",
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."
3066
3118
  },
3067
3119
  {
3068
- question: "What happens if the dropped file is too large?",
3069
- answer: "Base64 encoding increases payload size by about 33%. Most local MCP clients handle this fine, but hosted connectors may have payload limits. For large files (over 10 MB), use file_url with a public URL or upload via the Talonic dashboard and reference by document_id instead."
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."
3070
3122
  },
3071
3123
  {
3072
- question: "Do I need to configure anything for drag-and-drop to work?",
3073
- answer: "No. The file_data parameter is advertised in the tool descriptions, so MCP clients that support file attachments automatically encode and pass the file. Just drop the file into the chat and provide a schema \u2014 the agent handles the rest."
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."
3074
3126
  }
3075
3127
  ],
3076
- mentions: ["drag-and-drop", "file_data", "base64", "Claude Desktop"]
3128
+ mentions: ["Agent stage", "worklist", "MCP agent", "cursor pagination"]
3077
3129
  },
3078
3130
  {
3079
- slug: "how-it-works",
3080
- parentSlug: "features",
3081
- title: "How It Works",
3082
- seoTitle: "How Talonic MCP Works \u2014 Talonic Docs",
3083
- description: "Architecture of the Talonic MCP server: MCP protocol over stdio to the agent, HTTPS with Bearer auth to api.talonic.com.",
3131
+ slug: "talonic-get-agent-task",
3132
+ parentSlug: "tools",
3133
+ title: "talonic_get_agent_task",
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.",
3084
3136
  content: [
3085
- {
3086
- type: "code",
3087
- language: "text",
3088
- title: "Architecture",
3089
- code: `Agent (Claude Desktop / Cursor / Cline / etc.)
3090
- \u2193 MCP protocol over stdio
3091
- Talonic MCP server (this package)
3092
- \u2193 HTTPS, Bearer auth
3093
- api.talonic.com`
3094
- },
3095
- {
3096
- type: "paragraph",
3097
- text: "Each tool call is one HTTP request to the Talonic API, using your API key. The server handles auth, retries on transient failures (429, 5xx), MIME-type detection on file uploads, multipart serialisation, and structured error formatting."
3098
- },
3099
3137
  {
3100
3138
  type: "paragraph",
3101
- 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."
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."
3102
3140
  },
3103
3141
  {
3104
3142
  type: "paragraph",
3105
- text: "For file uploads, the server handles the complexity of multipart form encoding. It reads file bytes from `file_data` (base64), `file_path` (local disk), or `file_url` (remote URL), detects the MIME type from the filename extension, and streams the upload to `api.talonic.com`. This means the agent never needs to deal with multipart boundaries or content-type headers."
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`."
3106
3144
  },
3107
3145
  {
3108
3146
  type: "paragraph",
3109
- text: "Error handling is designed for agent consumption. API errors are reformatted into structured messages that include the error type, a human-readable description, and actionable next steps. For example, a missing schema error tells the agent to provide a `schema` or `schema_id`, rather than returning a raw 400 status code."
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."
3110
3148
  },
3111
3149
  {
3112
- type: "heading",
3113
- level: 3,
3114
- id: "request-lifecycle",
3115
- text: "Request lifecycle"
3150
+ type: "param-table",
3151
+ params: [
3152
+ {
3153
+ name: "task_id",
3154
+ type: "UUID",
3155
+ required: true,
3156
+ description: "Task ID returned by `talonic_list_agent_tasks`."
3157
+ }
3158
+ ]
3116
3159
  },
3117
3160
  {
3118
3161
  type: "code",
3119
3162
  language: "json",
3120
- title: "What happens during a talonic_extract call",
3121
- code: `// 1. Agent sends MCP tool call over stdio/HTTP:
3122
- {
3123
- "tool": "talonic_extract",
3124
- "arguments": {
3125
- "file_url": "https://example.com/invoice.pdf",
3126
- "schema": { "type": "object", "properties": { "total": { "type": "number" } } }
3127
- }
3128
- }
3129
-
3130
- // 2. MCP server validates parameters, constructs API request:
3131
- // POST https://api.talonic.com/v1/extract
3132
- // Authorization: Bearer tlnc_...
3133
- // Content-Type: multipart/form-data (for file uploads)
3134
-
3135
- // 3. API processes: download file \u2192 OCR \u2192 extract fields \u2192 validate schema
3136
-
3137
- // 4. MCP server formats response as MCP content:
3138
- {
3139
- "content": [
3140
- {
3141
- "type": "text",
3142
- "text": "{ \\"status\\": \\"complete\\", \\"data\\": { \\"total\\": 1500.00 }, ... }"
3143
- }
3144
- ]
3145
- }`
3146
- },
3147
- {
3148
- type: "paragraph",
3149
- text: "The MCP server is stateless between tool calls. It does not cache documents, schemas, or extraction results locally. Every tool call is an independent HTTP request to the Talonic API, which means the server can be restarted at any time without losing state. All persistence \u2014 documents, schemas, extraction history \u2014 lives in the Talonic cloud workspace, accessible via your API key."
3163
+ title: "Tool input",
3164
+ code: `{ "task_id": "11111111-1111-4111-8111-111111111111" }`
3150
3165
  },
3151
3166
  {
3152
3167
  type: "paragraph",
3153
- text: "Authentication is handled transparently by the MCP server. For the local `npx` option, the server reads the `TALONIC_API_KEY` environment variable at startup and attaches it as a `Bearer` token to every API request. For the hosted option at `mcp.talonic.com`, the client passes the API key in the `Authorization` header, and the hosted server forwards it to the Talonic API. In neither case does the API key reach the AI agent \u2014 it stays within the MCP server process boundary."
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."
3154
3169
  },
3155
3170
  {
3156
- type: "paragraph",
3157
- text: "Transport modes differ between local and hosted deployments. The local `npx` server communicates with the MCP client over **stdio** (standard input/output), which is the default transport for locally-spawned MCP servers. The hosted server at `mcp.talonic.com` uses **streamable HTTP**, where the client sends HTTP requests and receives streamed responses. Both transports implement the same MCP protocol, so tool behaviour is identical regardless of transport mode."
3171
+ type: "code",
3172
+ language: "json",
3173
+ title: "Key response fields",
3174
+ code: `{
3175
+ "id": "11111111-1111-4111-8111-111111111111",
3176
+ "status": "available",
3177
+ "input_snapshot": { "vendor_name": { "value": "Acme" } },
3178
+ "output_contract": [
3179
+ { "key": "risk_score", "dataType": "number", "required": true }
3180
+ ],
3181
+ "instructions": "Assess supplier risk from the supplied evidence.",
3182
+ "timeout_fallthrough": "route_to_review"
3183
+ }`
3158
3184
  },
3159
3185
  {
3160
3186
  type: "callout",
3161
- variant: "info",
3162
- text: "The MCP server automatically retries on `429` (rate limit) and `5xx` (server error) responses with exponential backoff. Agents do not need to implement retry logic themselves."
3187
+ variant: "warning",
3188
+ text: "Fetching a task payload is an audited data disclosure. Do not fetch tasks speculatively; inspect metadata first and fetch only work you intend to evaluate."
3163
3189
  }
3164
3190
  ],
3165
3191
  related: [
3166
- { label: "Environment Variables", slug: "env-variables" },
3167
- { label: "Node SDK", slug: "introduction" },
3168
- { label: "Install Overview", slug: "install-overview" }
3192
+ { label: "talonic_list_agent_tasks", slug: "talonic-list-agent-tasks" },
3193
+ { label: "talonic_claim_agent_task", slug: "talonic-claim-agent-task" }
3169
3194
  ],
3170
3195
  faq: [
3171
3196
  {
3172
- question: "How does the Talonic MCP server work?",
3173
- answer: "The MCP server communicates with AI agents over stdio using the MCP protocol. Each tool call translates to one HTTPS request to api.talonic.com with automatic auth, retries, and error formatting."
3174
- },
3175
- {
3176
- question: "Does the MCP server handle retries automatically?",
3177
- answer: "Yes. The server retries on 429 (rate limit) and 5xx (server error) responses with exponential backoff. Agents do not need to implement retry logic."
3178
- },
3179
- {
3180
- question: "How are errors returned to the agent?",
3181
- answer: "API errors are reformatted into structured messages with error type, description, and actionable next steps. The agent receives clear guidance instead of raw HTTP status codes."
3197
+ question: "Can the snapshot change while an agent processes it?",
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."
3182
3199
  },
3183
3200
  {
3184
- question: "Does the MCP server store any data locally?",
3185
- answer: "No. The server is stateless between tool calls. It does not cache documents, schemas, or results locally. All persistence lives in the Talonic cloud workspace. The server can be restarted at any time without losing state."
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."
3186
3203
  },
3187
3204
  {
3188
- question: "Is my API key exposed to the AI agent?",
3189
- answer: "No. The API key stays within the MCP server process boundary. For local setups, it is read from the TALONIC_API_KEY environment variable. For hosted setups, it is passed in the Authorization header. In neither case does the key reach the AI agent's context window."
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."
3190
3207
  }
3191
3208
  ],
3192
- mentions: ["stdio", "HTTPS", "Bearer auth", "architecture", "retry", "error handling"]
3193
- }
3194
- ];
3195
-
3196
- // src/content/sections/configuration.ts
3197
- var sections5 = [
3209
+ mentions: ["immutable snapshot", "output contract", "audit trail", "document task"]
3210
+ },
3198
3211
  {
3199
- slug: "env-variables",
3200
- parentSlug: "configuration",
3201
- title: "Environment Variables",
3202
- seoTitle: "Configuration \u2014 Talonic MCP",
3203
- description: "Environment variables for configuring the Talonic MCP server: API key and optional base URL override.",
3212
+ slug: "talonic-claim-agent-task",
3213
+ parentSlug: "tools",
3214
+ title: "talonic_claim_agent_task",
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.",
3204
3217
  content: [
3205
- { type: "paragraph", text: "Set via the `env` block in your MCP client config:" },
3218
+ {
3219
+ type: "paragraph",
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."
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
+ },
3206
3226
  {
3207
3227
  type: "param-table",
3208
3228
  params: [
3209
3229
  {
3210
- name: "TALONIC_API_KEY",
3211
- type: "string",
3230
+ name: "task_id",
3231
+ type: "UUID",
3212
3232
  required: true,
3213
- description: "Your Talonic API key. Starts with `tlnc_`."
3214
- },
3215
- {
3216
- name: "TALONIC_BASE_URL",
3217
- type: "string",
3218
- description: "Override the API base URL.",
3219
- default: "https://api.talonic.com"
3233
+ description: "Available task to claim, or an expired claim to reclaim."
3220
3234
  }
3221
3235
  ]
3222
3236
  },
3223
3237
  {
3224
- type: "paragraph",
3225
- text: "The `TALONIC_API_KEY` is the only required configuration. It authenticates every API call the MCP server makes on your behalf. The key must start with `tlnc_` \u2014 if you pass a key with a different prefix, the server will reject it at startup with a clear error message."
3226
- },
3227
- {
3228
- type: "paragraph",
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
+ },
3253
+ {
3254
+ type: "callout",
3255
+ variant: "warning",
3256
+ text: "A live claim held by another actor returns HTTP 409. Do not retry in a tight loop. Select another available task or wait until the lease expires."
3257
+ },
3258
+ {
3259
+ type: "paragraph",
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."
3265
+ }
3266
+ ],
3267
+ related: [
3268
+ { label: "talonic_heartbeat_agent_task", slug: "talonic-heartbeat-agent-task" },
3269
+ { label: "talonic_submit_agent_task", slug: "talonic-submit-agent-task" }
3270
+ ],
3271
+ faq: [
3272
+ {
3273
+ question: "What is an execution epoch?",
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."
3283
+ }
3284
+ ],
3285
+ mentions: ["claim lease", "execution epoch", "conflict", "reclaim"]
3286
+ },
3287
+ {
3288
+ slug: "talonic-heartbeat-agent-task",
3289
+ parentSlug: "tools",
3290
+ title: "talonic_heartbeat_agent_task",
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.",
3293
+ content: [
3294
+ {
3295
+ type: "paragraph",
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."
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
+ },
3326
+ {
3327
+ type: "param-table",
3328
+ params: [
3329
+ {
3330
+ name: "task_id",
3331
+ type: "UUID",
3332
+ required: true,
3333
+ description: "Claimed task ID."
3334
+ },
3335
+ {
3336
+ name: "execution_epoch",
3337
+ type: "integer",
3338
+ required: true,
3339
+ description: "Exact epoch returned by the current successful claim."
3340
+ }
3341
+ ]
3342
+ },
3343
+ {
3344
+ type: "callout",
3345
+ variant: "warning",
3346
+ text: "A stale epoch or a claim owned by another actor returns HTTP 409. Stop work and do not submit results after that conflict."
3347
+ }
3348
+ ],
3349
+ related: [
3350
+ { label: "talonic_claim_agent_task", slug: "talonic-claim-agent-task" },
3351
+ { label: "talonic_submit_agent_task", slug: "talonic-submit-agent-task" }
3352
+ ],
3353
+ faq: [
3354
+ {
3355
+ question: "How often should an agent heartbeat?",
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."
3365
+ }
3366
+ ],
3367
+ mentions: ["heartbeat", "lease expiry", "execution epoch", "long-running task"]
3368
+ },
3369
+ {
3370
+ slug: "talonic-submit-agent-task",
3371
+ parentSlug: "tools",
3372
+ title: "talonic_submit_agent_task",
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.",
3375
+ content: [
3376
+ {
3377
+ type: "paragraph",
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."
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
+ },
3384
+ {
3385
+ type: "param-table",
3386
+ params: [
3387
+ { name: "task_id", type: "UUID", required: true, description: "Claimed task ID." },
3388
+ {
3389
+ name: "execution_epoch",
3390
+ type: "integer",
3391
+ required: true,
3392
+ description: "Exact epoch from the current claim."
3393
+ },
3394
+ {
3395
+ name: "outputs",
3396
+ type: "object",
3397
+ required: true,
3398
+ description: "Declared field key to `{ value, confidence?, reasoning? }`. Confidence is 0\u20131; reasoning is at most 4,000 characters."
3399
+ },
3400
+ {
3401
+ name: "summary",
3402
+ type: "string",
3403
+ description: "Optional overall result summary, at most 4,000 characters."
3404
+ }
3405
+ ]
3406
+ },
3407
+ {
3408
+ type: "code",
3409
+ language: "json",
3410
+ title: "Submit result",
3411
+ code: `{
3412
+ "task_id": "11111111-1111-4111-8111-111111111111",
3413
+ "execution_epoch": 3,
3414
+ "outputs": {
3415
+ "risk_score": {
3416
+ "value": 0.72,
3417
+ "confidence": 0.88,
3418
+ "reasoning": "Two adverse indicators in the supplied evidence."
3419
+ }
3420
+ },
3421
+ "summary": "Supplier requires enhanced review."
3422
+ }`
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
+ },
3432
+ {
3433
+ type: "callout",
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."
3435
+ }
3436
+ ],
3437
+ related: [
3438
+ { label: "talonic_get_agent_task", slug: "talonic-get-agent-task" },
3439
+ { label: "talonic_claim_agent_task", slug: "talonic-claim-agent-task" },
3440
+ { label: "talonic_heartbeat_agent_task", slug: "talonic-heartbeat-agent-task" }
3441
+ ],
3442
+ faq: [
3443
+ {
3444
+ question: "Can an Agent task return extra fields it discovered?",
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."
3454
+ }
3455
+ ],
3456
+ mentions: ["transactional submit", "AI Agent (MCP)", "mcp_agent", "typed outputs"]
3457
+ },
3458
+ {
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.",
3464
+ content: [
3465
+ {
3466
+ type: "paragraph",
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."
3468
+ },
3469
+ { type: "heading", level: 3, id: "list-fields-use-when", text: "When to use" },
3470
+ {
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
+ ]
3477
+ },
3478
+ { type: "heading", level: 3, id: "list-fields-do-not-use", text: "When not to use" },
3479
+ {
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
+ ]
3486
+ },
3487
+ { type: "heading", level: 3, id: "list-fields-params", text: "Parameters" },
3488
+ {
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
+ ]
3513
+ },
3514
+ { type: "heading", level: 3, id: "list-fields-response", text: "Response shape" },
3515
+ {
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
+ ]
3546
+ },
3547
+ {
3548
+ type: "code",
3549
+ language: "json",
3550
+ title: "Tool input",
3551
+ code: `{ "search": "invoice", "maturity": "proven", "limit": 5 }`
3552
+ },
3553
+ {
3554
+ type: "code",
3555
+ language: "json",
3556
+ title: "Tool response",
3557
+ code: `{
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 }
3574
+ }`
3575
+ }
3576
+ ],
3577
+ related: [
3578
+ { label: "talonic_search", slug: "talonic-search" },
3579
+ { label: "talonic_filter", slug: "talonic-filter" }
3580
+ ],
3581
+ faq: [
3582
+ {
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?",
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."
4279
+ },
4280
+ {
4281
+ question: "What happens if the dropped file is too large?",
4282
+ answer: "Base64 encoding increases payload size by about 33%. Most local MCP clients handle this fine, but hosted connectors may have payload limits. For large files (over 10 MB), use file_url with a public URL or upload via the Talonic dashboard and reference by document_id instead."
4283
+ },
4284
+ {
4285
+ question: "Do I need to configure anything for drag-and-drop to work?",
4286
+ answer: "No. The file_data parameter is advertised in the tool descriptions, so MCP clients that support file attachments automatically encode and pass the file. Just drop the file into the chat and provide a schema \u2014 the agent handles the rest."
4287
+ }
4288
+ ],
4289
+ mentions: ["drag-and-drop", "file_data", "base64", "Claude Desktop"]
4290
+ },
4291
+ {
4292
+ slug: "how-it-works",
4293
+ parentSlug: "features",
4294
+ title: "How It Works",
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.",
4297
+ content: [
4298
+ {
4299
+ type: "code",
4300
+ language: "text",
4301
+ title: "Architecture",
4302
+ code: `Agent (Claude Desktop / Cursor / Cline / etc.)
4303
+ \u2193 MCP protocol over stdio
4304
+ Talonic MCP server (this package)
4305
+ \u2193 HTTPS, Bearer auth
4306
+ api.talonic.com`
4307
+ },
4308
+ {
4309
+ type: "paragraph",
4310
+ text: "Each tool call is one HTTP request to the Talonic API, using your API key. The server handles auth, retries on transient failures (429, 5xx), MIME-type detection on file uploads, multipart serialisation, and structured error formatting."
4311
+ },
4312
+ {
4313
+ type: "paragraph",
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."
4315
+ },
4316
+ {
4317
+ type: "paragraph",
4318
+ text: "For file uploads, the server handles the complexity of multipart form encoding. It reads file bytes from `file_data` (base64), `file_path` (local disk), or `file_url` (remote URL), detects the MIME type from the filename extension, and streams the upload to `api.talonic.com`. This means the agent never needs to deal with multipart boundaries or content-type headers."
4319
+ },
4320
+ {
4321
+ type: "paragraph",
4322
+ text: "Error handling is designed for agent consumption. API errors are reformatted into structured messages that include the error type, a human-readable description, and actionable next steps. For example, a missing schema error tells the agent to provide a `schema` or `schema_id`, rather than returning a raw 400 status code."
4323
+ },
4324
+ {
4325
+ type: "heading",
4326
+ level: 3,
4327
+ id: "request-lifecycle",
4328
+ text: "Request lifecycle"
4329
+ },
4330
+ {
4331
+ type: "code",
4332
+ language: "json",
4333
+ title: "What happens during a talonic_extract call",
4334
+ code: `// 1. Agent sends MCP tool call over stdio/HTTP:
4335
+ {
4336
+ "tool": "talonic_extract",
4337
+ "arguments": {
4338
+ "file_url": "https://example.com/invoice.pdf",
4339
+ "schema": { "type": "object", "properties": { "total": { "type": "number" } } }
4340
+ }
4341
+ }
4342
+
4343
+ // 2. MCP server validates parameters, constructs API request:
4344
+ // POST https://api.talonic.com/v1/extract
4345
+ // Authorization: Bearer tlnc_...
4346
+ // Content-Type: multipart/form-data (for file uploads)
4347
+
4348
+ // 3. API processes: download file \u2192 OCR \u2192 extract fields \u2192 validate schema
4349
+
4350
+ // 4. MCP server formats response as MCP content:
4351
+ {
4352
+ "content": [
4353
+ {
4354
+ "type": "text",
4355
+ "text": "{ \\"status\\": \\"complete\\", \\"data\\": { \\"total\\": 1500.00 }, ... }"
4356
+ }
4357
+ ]
4358
+ }`
4359
+ },
4360
+ {
4361
+ type: "paragraph",
4362
+ text: "The MCP server is stateless between tool calls. It does not cache documents, schemas, or extraction results locally. Every tool call is an independent HTTP request to the Talonic API, which means the server can be restarted at any time without losing state. All persistence \u2014 documents, schemas, extraction history \u2014 lives in the Talonic cloud workspace, accessible via your API key."
4363
+ },
4364
+ {
4365
+ type: "paragraph",
4366
+ text: "Authentication is handled transparently by the MCP server. For the local `npx` option, the server reads the `TALONIC_API_KEY` environment variable at startup and attaches it as a `Bearer` token to every API request. For the hosted option at `mcp.talonic.com`, the client passes the API key in the `Authorization` header, and the hosted server forwards it to the Talonic API. In neither case does the API key reach the AI agent \u2014 it stays within the MCP server process boundary."
4367
+ },
4368
+ {
4369
+ type: "paragraph",
4370
+ text: "Transport modes differ between local and hosted deployments. The local `npx` server communicates with the MCP client over **stdio** (standard input/output), which is the default transport for locally-spawned MCP servers. The hosted server at `mcp.talonic.com` uses **streamable HTTP**, where the client sends HTTP requests and receives streamed responses. Both transports implement the same MCP protocol, so tool behaviour is identical regardless of transport mode."
4371
+ },
4372
+ {
4373
+ type: "callout",
4374
+ variant: "info",
4375
+ text: "The MCP server automatically retries on `429` (rate limit) and `5xx` (server error) responses with exponential backoff. Agents do not need to implement retry logic themselves."
4376
+ }
4377
+ ],
4378
+ related: [
4379
+ { label: "Environment Variables", slug: "env-variables" },
4380
+ { label: "Common Issues", slug: "common-issues" },
4381
+ { label: "Install Overview", slug: "install-overview" }
4382
+ ],
4383
+ faq: [
4384
+ {
4385
+ question: "How does the Talonic MCP server work?",
4386
+ answer: "The MCP server communicates with AI agents over stdio using the MCP protocol. Each tool call translates to one HTTPS request to api.talonic.com with automatic auth, retries, and error formatting."
4387
+ },
4388
+ {
4389
+ question: "Does the MCP server handle retries automatically?",
4390
+ answer: "Yes. The server retries on 429 (rate limit) and 5xx (server error) responses with exponential backoff. Agents do not need to implement retry logic."
4391
+ },
4392
+ {
4393
+ question: "How are errors returned to the agent?",
4394
+ answer: "API errors are reformatted into structured messages with error type, description, and actionable next steps. The agent receives clear guidance instead of raw HTTP status codes."
4395
+ },
4396
+ {
4397
+ question: "Does the MCP server store any data locally?",
4398
+ answer: "No. The server is stateless between tool calls. It does not cache documents, schemas, or results locally. All persistence lives in the Talonic cloud workspace. The server can be restarted at any time without losing state."
4399
+ },
4400
+ {
4401
+ question: "Is my API key exposed to the AI agent?",
4402
+ answer: "No. The API key stays within the MCP server process boundary. For local setups, it is read from the TALONIC_API_KEY environment variable. For hosted setups, it is passed in the Authorization header. In neither case does the key reach the AI agent's context window."
4403
+ }
4404
+ ],
4405
+ mentions: ["stdio", "HTTPS", "Bearer auth", "architecture", "retry", "error handling"]
4406
+ }
4407
+ ];
4408
+
4409
+ // src/content/sections/configuration.ts
4410
+ var sections5 = [
4411
+ {
4412
+ slug: "env-variables",
4413
+ parentSlug: "configuration",
4414
+ title: "Environment Variables",
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.",
4417
+ content: [
4418
+ { type: "paragraph", text: "Set via the `env` block in your MCP client config:" },
4419
+ {
4420
+ type: "param-table",
4421
+ params: [
4422
+ {
4423
+ name: "TALONIC_API_KEY",
4424
+ type: "string",
4425
+ required: true,
4426
+ description: "Your Talonic API key. Starts with `tlnc_`."
4427
+ },
4428
+ {
4429
+ name: "TALONIC_BASE_URL",
4430
+ type: "string",
4431
+ description: "Override the API base URL.",
4432
+ default: "https://api.talonic.com"
4433
+ }
4434
+ ]
4435
+ },
4436
+ {
4437
+ type: "paragraph",
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`."
4439
+ },
4440
+ {
4441
+ type: "paragraph",
3229
4442
  text: "The `TALONIC_BASE_URL` override is rarely needed. It exists for enterprise customers with a dedicated Talonic deployment or for developers testing against a staging environment. Most users should leave this unset, which defaults to `https://api.talonic.com`."
3230
4443
  },
3231
4444
  {
@@ -3234,7 +4447,7 @@ var sections5 = [
3234
4447
  },
3235
4448
  {
3236
4449
  type: "paragraph",
3237
- text: "If the MCP server cannot read the API key at startup, it exits with a descriptive error. 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."
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."
3238
4451
  },
3239
4452
  {
3240
4453
  type: "heading",
@@ -3293,6 +4506,39 @@ var sections5 = [
3293
4506
  type: "paragraph",
3294
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`."
3295
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
+ },
3296
4542
  {
3297
4543
  type: "callout",
3298
4544
  variant: "warning",
@@ -3315,7 +4561,7 @@ var sections5 = [
3315
4561
  },
3316
4562
  {
3317
4563
  question: "What happens if the API key is missing or invalid?",
3318
- answer: "The MCP server exits at startup with a descriptive error message. Check that the env block in your config is correctly formatted and the key starts with tlnc_. Restart the client after fixing."
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."
3319
4565
  },
3320
4566
  {
3321
4567
  question: "Can I set the API key in my shell profile instead of the config file?",
@@ -3336,8 +4582,8 @@ var sections6 = [
3336
4582
  slug: "common-issues",
3337
4583
  parentSlug: "troubleshooting",
3338
4584
  title: "Common Issues",
3339
- seoTitle: "Troubleshooting \u2014 Talonic MCP",
3340
- description: "Solutions for common Talonic MCP server issues: missing API key, server not appearing, extract errors, and filter validation.",
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.",
3341
4587
  content: [
3342
4588
  {
3343
4589
  type: "paragraph",
@@ -3510,16 +4756,16 @@ var sections6 = [
3510
4756
  slug: "known-limitations",
3511
4757
  parentSlug: "troubleshooting",
3512
4758
  title: "Known Limitations",
3513
- seoTitle: "Known Limitations \u2014 Talonic MCP",
3514
- description: "Current limitations in the Talonic MCP server v0.1: schema requirement, filter discoverability and typing, Claude.ai drag-and-drop stall, and unsurfaced cost.",
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.",
3515
4761
  content: [
3516
4762
  {
3517
4763
  type: "paragraph",
3518
- text: "The Talonic MCP server v0.1 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."
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."
3519
4765
  },
3520
4766
  {
3521
4767
  type: "paragraph",
3522
- text: "Most limitations relate to the extraction pipeline's maturity in v0.1. Certain filter operators, cost information, and per-field provenance have constraints. These are documented here so agent developers can set accurate expectations and build appropriate fallbacks."
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."
3523
4769
  },
3524
4770
  {
3525
4771
  type: "list",
@@ -3530,12 +4776,12 @@ var sections6 = [
3530
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.",
3531
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.",
3532
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.",
3533
- "**Cost, EUR price, and remaining balance are not surfaced.** The API does not return them yet. Credit balance must be checked in the Talonic dashboard."
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."
3534
4780
  ]
3535
4781
  },
3536
4782
  {
3537
4783
  type: "paragraph",
3538
- text: "Agents should handle these limitations gracefully. For the schema requirement, always construct or reference a schema before calling `talonic_extract`. For the missing cost information, direct users to the Talonic dashboard at `https://app.talonic.com` when they ask about pricing or credit balance."
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."
3539
4785
  },
3540
4786
  {
3541
4787
  type: "paragraph",
@@ -3587,7 +4833,7 @@ var sections6 = [
3587
4833
  faq: [
3588
4834
  {
3589
4835
  question: "What are the known limitations of Talonic MCP?",
3590
- 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. Cost and balance are not surfaced in tool responses yet."
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."
3591
4837
  },
3592
4838
  {
3593
4839
  question: "Can I extract without knowing the fields up front (schema-less)?",
@@ -3595,7 +4841,7 @@ var sections6 = [
3595
4841
  },
3596
4842
  {
3597
4843
  question: "How do I check my credit balance or costs?",
3598
- answer: "Cost information is not surfaced in v0.1 tool responses. Check your credit balance and usage in the Talonic dashboard at app.talonic.com."
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."
3599
4845
  },
3600
4846
  {
3601
4847
  question: "How do I report a new limitation or bug?",
@@ -3619,8 +4865,8 @@ var sections6 = [
3619
4865
  slug: "upgrading",
3620
4866
  parentSlug: "troubleshooting",
3621
4867
  title: "Upgrading",
3622
- seoTitle: "Upgrading from Older Versions \u2014 Talonic MCP",
3623
- description: "How to upgrade from older @talonic/mcp versions that had the silent-bin bug affecting MCP client launches.",
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.",
3624
4870
  content: [
3625
4871
  {
3626
4872
  type: "paragraph",