@talonic/docs 0.21.44 → 0.21.46
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 +2377 -8
- package/dist/seo.js +70 -9
- package/dist/tailwind-preset.d.cts +45 -0
- package/dist/tailwind-preset.d.ts +45 -0
- package/openapi.json +70 -9
- package/package.json +1 -1
package/dist/content.js
CHANGED
|
@@ -47563,11 +47563,11 @@ var sections_default2 = [
|
|
|
47563
47563
|
parentSlug: "mcp-overview",
|
|
47564
47564
|
title: "Introduction",
|
|
47565
47565
|
seoTitle: "MCP Server Introduction \u2014 Talonic Docs",
|
|
47566
|
-
description: "Official Talonic MCP server for AI agents.
|
|
47566
|
+
description: "Official Talonic MCP server for AI agents. Thirty-six public tools and two resources for structured document extraction via the Model Context Protocol.",
|
|
47567
47567
|
content: [
|
|
47568
47568
|
{
|
|
47569
47569
|
type: "paragraph",
|
|
47570
|
-
text: "The `@talonic/mcp` package is the official Talonic MCP server. It gives AI agents
|
|
47570
|
+
text: "The `@talonic/mcp` package is the official Talonic MCP server. It gives AI agents thirty-six public tools and two resources for extracting structured, schema-validated data from any document via the [Model Context Protocol](https://modelcontextprotocol.io)."
|
|
47571
47571
|
},
|
|
47572
47572
|
{
|
|
47573
47573
|
type: "paragraph",
|
|
@@ -47575,7 +47575,7 @@ var sections_default2 = [
|
|
|
47575
47575
|
},
|
|
47576
47576
|
{
|
|
47577
47577
|
type: "paragraph",
|
|
47578
|
-
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. The other
|
|
47578
|
+
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. The other thirty-five public tools cover browser-handoff upload, workspace search and filtering, document metadata and OCR markdown, schema management, balance, pricing and usage, the Field Registry as a source of truth (list, concept card, values across documents, find-data by meaning, and the platform agent tool registry), the Agent-stage list, fetch, claim, heartbeat and submit lifecycle, the External-mode decision-task protocol for Talonic Apps (list an app's inbox, claim, read the frozen input package, heartbeat, submit, release, fail), Spec runs (list/get/run a Spec, poll it, read its rows) and cited question answering over the workspace."
|
|
47579
47579
|
},
|
|
47580
47580
|
{
|
|
47581
47581
|
type: "callout",
|
|
@@ -47599,7 +47599,7 @@ var sections_default2 = [
|
|
|
47599
47599
|
faq: [
|
|
47600
47600
|
{
|
|
47601
47601
|
question: "What is the Talonic MCP server?",
|
|
47602
|
-
answer: "An official Model Context Protocol server that gives AI agents
|
|
47602
|
+
answer: "An official Model Context Protocol server that gives AI agents thirty-six public tools for document extraction, search, filtering, schema management, and credit-balance lookup via the Talonic API."
|
|
47603
47603
|
}
|
|
47604
47604
|
],
|
|
47605
47605
|
mentions: [
|
|
@@ -47686,7 +47686,7 @@ var sections_default2 = [
|
|
|
47686
47686
|
},
|
|
47687
47687
|
{
|
|
47688
47688
|
type: "paragraph",
|
|
47689
|
-
text: "All three install paths expose the same
|
|
47689
|
+
text: "All three install paths expose the same thirty-six public tools and two resources."
|
|
47690
47690
|
}
|
|
47691
47691
|
],
|
|
47692
47692
|
related: [
|
|
@@ -47850,7 +47850,7 @@ var sections_default2 = [
|
|
|
47850
47850
|
},
|
|
47851
47851
|
{
|
|
47852
47852
|
type: "paragraph",
|
|
47853
|
-
text: "Fully restart Claude Desktop (Cmd+Q on macOS, not just close the window). Talonic appears in the connected servers list with all
|
|
47853
|
+
text: "Fully restart Claude Desktop (Cmd+Q on macOS, not just close the window). Talonic appears in the connected servers list with all thirty-six public tools and two resources."
|
|
47854
47854
|
}
|
|
47855
47855
|
],
|
|
47856
47856
|
related: [
|
|
@@ -50138,6 +50138,11 @@ var sections_default2 = [
|
|
|
50138
50138
|
type: "paragraph",
|
|
50139
50139
|
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."
|
|
50140
50140
|
},
|
|
50141
|
+
{
|
|
50142
|
+
type: "callout",
|
|
50143
|
+
variant: "info",
|
|
50144
|
+
text: "Target API: [Talonic API reference](https://talonic.com/docs/api) \u2014 `GET /v1/agent/tools`."
|
|
50145
|
+
},
|
|
50141
50146
|
{
|
|
50142
50147
|
type: "heading",
|
|
50143
50148
|
level: 3,
|
|
@@ -50262,7 +50267,12 @@ var sections_default2 = [
|
|
|
50262
50267
|
content: [
|
|
50263
50268
|
{
|
|
50264
50269
|
type: "paragraph",
|
|
50265
|
-
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."
|
|
50270
|
+
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. API-key credentials are restricted by the platform to the registry's read-only tools (capability `data.read`); write-capable registry tools are never invocable through this credential, so through an API-key credential this tool reads and never mutates workspace data."
|
|
50271
|
+
},
|
|
50272
|
+
{
|
|
50273
|
+
type: "callout",
|
|
50274
|
+
variant: "info",
|
|
50275
|
+
text: "Target API: [Talonic API reference](https://talonic.com/docs/api) \u2014 `POST /v1/agent/tools/{name}/invoke`."
|
|
50266
50276
|
},
|
|
50267
50277
|
{
|
|
50268
50278
|
type: "heading",
|
|
@@ -50761,7 +50771,7 @@ var sections_default2 = [
|
|
|
50761
50771
|
},
|
|
50762
50772
|
{
|
|
50763
50773
|
type: "paragraph",
|
|
50764
|
-
text: "No environment variables needed. The API key is passed via the `Authorization` header on every request."
|
|
50774
|
+
text: "No environment variables needed. The API key is passed via the `Authorization` header on every request. The hosted transport publishes its OAuth protected-resource metadata at `/.well-known/oauth-protected-resource` (root) and `/.well-known/oauth-protected-resource/mcp` (resource = the exact `/mcp` URL, RFC 9728); a `401` names the document that matches the endpoint the client used."
|
|
50765
50775
|
}
|
|
50766
50776
|
],
|
|
50767
50777
|
related: [
|
|
@@ -50913,6 +50923,2365 @@ var sections_default2 = [
|
|
|
50913
50923
|
"402",
|
|
50914
50924
|
"500"
|
|
50915
50925
|
]
|
|
50926
|
+
},
|
|
50927
|
+
{
|
|
50928
|
+
slug: "mcp-talonic-get-pricing",
|
|
50929
|
+
parentSlug: "mcp-tools",
|
|
50930
|
+
title: "talonic_get_pricing",
|
|
50931
|
+
seoTitle: "talonic_get_pricing \u2014 Credit Pricing Catalog for Agents",
|
|
50932
|
+
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.",
|
|
50933
|
+
content: [
|
|
50934
|
+
{
|
|
50935
|
+
type: "paragraph",
|
|
50936
|
+
text: "Returns the credit pricing catalog: fixed per-unit credit rates, their EUR equivalents, the credits-per-EUR conversion rate, and processing-mode multipliers (such as batch at 0.5x). Because the rates are fixed rather than token-based, an agent can read them and compute the exact cost of a planned job before spending a credit. The endpoint is public, so it works even before an API key is provisioned."
|
|
50937
|
+
},
|
|
50938
|
+
{
|
|
50939
|
+
type: "heading",
|
|
50940
|
+
level: 3,
|
|
50941
|
+
id: "use-when",
|
|
50942
|
+
text: "When to use"
|
|
50943
|
+
},
|
|
50944
|
+
{
|
|
50945
|
+
type: "list",
|
|
50946
|
+
items: [
|
|
50947
|
+
"Estimating the cost of a planned extraction, structuring, or matching job before running it.",
|
|
50948
|
+
"Answering a user question about how much Talonic costs per page or per operation.",
|
|
50949
|
+
"Deciding whether a workload fits a budget, especially before signing up."
|
|
50950
|
+
]
|
|
50951
|
+
},
|
|
50952
|
+
{
|
|
50953
|
+
type: "heading",
|
|
50954
|
+
level: 3,
|
|
50955
|
+
id: "do-not-use",
|
|
50956
|
+
text: "When not to use"
|
|
50957
|
+
},
|
|
50958
|
+
{
|
|
50959
|
+
type: "list",
|
|
50960
|
+
items: [
|
|
50961
|
+
"For the workspace's remaining credit balance: use `talonic_get_balance`.",
|
|
50962
|
+
"For what the workspace has already spent and on what: use `talonic_get_usage`."
|
|
50963
|
+
]
|
|
50964
|
+
},
|
|
50965
|
+
{
|
|
50966
|
+
type: "heading",
|
|
50967
|
+
level: 3,
|
|
50968
|
+
id: "response-shape",
|
|
50969
|
+
text: "Response shape"
|
|
50970
|
+
},
|
|
50971
|
+
{
|
|
50972
|
+
type: "list",
|
|
50973
|
+
items: [
|
|
50974
|
+
"`currency`: billing currency for the EUR equivalents (always `EUR`).",
|
|
50975
|
+
"`credits_per_eur`: conversion rate between credits and EUR (1,000 credits = 1 EUR at the standard rate).",
|
|
50976
|
+
"`multipliers`: processing-mode multipliers keyed by mode (e.g. `realtime: 1`, `batch: 0.5`).",
|
|
50977
|
+
"`units`: array of catalog lines, each with `unit`, `label`, `credits`, `eur`, and `free`."
|
|
50978
|
+
]
|
|
50979
|
+
},
|
|
50980
|
+
{
|
|
50981
|
+
type: "code",
|
|
50982
|
+
language: "json",
|
|
50983
|
+
title: "Tool input",
|
|
50984
|
+
code: "{}"
|
|
50985
|
+
},
|
|
50986
|
+
{
|
|
50987
|
+
type: "code",
|
|
50988
|
+
language: "json",
|
|
50989
|
+
title: "Tool response",
|
|
50990
|
+
code: '{\n "currency": "EUR",\n "credits_per_eur": 1000,\n "multipliers": { "realtime": 1, "batch": 0.5 },\n "units": [\n { "unit": "page_ingest", "label": "Document page ingestion", "credits": 100, "eur": 0.1, "free": false },\n { "unit": "structuring_cell", "label": "Structuring cell (LLM-reasoned)", "credits": 20, "eur": 0.02, "free": false },\n { "unit": "registry_resolved_cell", "label": "Structuring cell (Field Registry resolved)", "credits": 0, "eur": 0, "free": true },\n { "unit": "intelligence_op", "label": "Intelligence operation (matching, cases, reconciliation)", "credits": 100, "eur": 0.1, "free": false },\n { "unit": "delivery", "label": "Delivery (webhook / export)", "credits": 0, "eur": 0, "free": true },\n { "unit": "validation", "label": "Validation / quality check", "credits": 0, "eur": 0, "free": true }\n ]\n}'
|
|
50991
|
+
},
|
|
50992
|
+
{
|
|
50993
|
+
type: "heading",
|
|
50994
|
+
level: 3,
|
|
50995
|
+
id: "pricing-estimate-example",
|
|
50996
|
+
text: "Example: quote a workload before running it"
|
|
50997
|
+
},
|
|
50998
|
+
{
|
|
50999
|
+
type: "code",
|
|
51000
|
+
language: "json",
|
|
51001
|
+
title: "Agent estimates the cost of a 20-page batch extraction",
|
|
51002
|
+
code: '// User: "How much will it cost to extract this 20-page contract in batch mode?"\n// Agent reads pricing:\n// talonic_get_pricing \u2192 {}\n\n// page_ingest = 100 credits, batch multiplier = 0.5\n// 20 pages * 100 credits * 0.5 = 1000 credits = 1.00 EUR\n\n// Agent: "Extracting 20 pages in batch mode costs about 1,000 credits\n// (1.00 EUR). Realtime would be 2,000 credits (2.00 EUR). Proceed in batch?"'
|
|
51003
|
+
},
|
|
51004
|
+
{
|
|
51005
|
+
type: "paragraph",
|
|
51006
|
+
text: "Cost-aware agents call `talonic_get_pricing` to turn a workload into a concrete quote before committing to it. Multiply the relevant per-unit rate by the expected unit count, then apply the processing-mode multiplier. Because the catalog also returns the credits-per-EUR rate, the agent can present the estimate in either credits or euros without hardcoding any number."
|
|
51007
|
+
},
|
|
51008
|
+
{
|
|
51009
|
+
type: "paragraph",
|
|
51010
|
+
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."
|
|
51011
|
+
},
|
|
51012
|
+
{
|
|
51013
|
+
type: "paragraph",
|
|
51014
|
+
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."
|
|
51015
|
+
},
|
|
51016
|
+
{
|
|
51017
|
+
type: "callout",
|
|
51018
|
+
variant: "info",
|
|
51019
|
+
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."
|
|
51020
|
+
}
|
|
51021
|
+
],
|
|
51022
|
+
related: [
|
|
51023
|
+
{
|
|
51024
|
+
label: "talonic_get_usage",
|
|
51025
|
+
slug: "mcp-talonic-get-usage"
|
|
51026
|
+
},
|
|
51027
|
+
{
|
|
51028
|
+
label: "talonic_get_balance",
|
|
51029
|
+
slug: "mcp-talonic-get-balance"
|
|
51030
|
+
}
|
|
51031
|
+
],
|
|
51032
|
+
faq: [
|
|
51033
|
+
{
|
|
51034
|
+
question: "Does talonic_get_pricing require an API key?",
|
|
51035
|
+
answer: "No. The pricing catalog is public, so an agent can read rates before signing up or provisioning a key. Call it with no arguments; it is read-only and safe to call at any time."
|
|
51036
|
+
},
|
|
51037
|
+
{
|
|
51038
|
+
question: "How does an agent compute the cost of a job from the catalog?",
|
|
51039
|
+
answer: "Multiply the per-unit credits by the number of units (pages, cells, or operations), then apply the processing-mode multiplier (1 for realtime, 0.5 for batch). Divide by credits_per_eur to express the result in euros."
|
|
51040
|
+
},
|
|
51041
|
+
{
|
|
51042
|
+
question: "Which operations are free in the catalog?",
|
|
51043
|
+
answer: "Field Registry resolved cells, delivery, and validation cost zero credits. Only fresh ingestion, fresh model-reasoned structuring cells, and intelligence operations (matching, cases, reconciliation) are billable."
|
|
51044
|
+
}
|
|
51045
|
+
],
|
|
51046
|
+
mentions: [
|
|
51047
|
+
"pricing",
|
|
51048
|
+
"credit catalog",
|
|
51049
|
+
"cost estimation",
|
|
51050
|
+
"per-page pricing",
|
|
51051
|
+
"batch discount",
|
|
51052
|
+
"credits per EUR",
|
|
51053
|
+
"budget"
|
|
51054
|
+
]
|
|
51055
|
+
},
|
|
51056
|
+
{
|
|
51057
|
+
slug: "mcp-talonic-get-usage",
|
|
51058
|
+
parentSlug: "mcp-tools",
|
|
51059
|
+
title: "talonic_get_usage",
|
|
51060
|
+
seoTitle: "talonic_get_usage \u2014 Per-Function Credit Usage Reports",
|
|
51061
|
+
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.",
|
|
51062
|
+
content: [
|
|
51063
|
+
{
|
|
51064
|
+
type: "paragraph",
|
|
51065
|
+
text: "Returns the workspace's credit consumption grouped by platform function over a trailing window, plus the total. Where `talonic_get_balance` reports what is left, this tool reports where the credits went: how much each function (page ingestion, structuring cells, intelligence operations) cost over the period. The breakdown is ordered by spend, highest first, so the dominant cost driver is the first row."
|
|
51066
|
+
},
|
|
51067
|
+
{
|
|
51068
|
+
type: "heading",
|
|
51069
|
+
level: 3,
|
|
51070
|
+
id: "use-when",
|
|
51071
|
+
text: "When to use"
|
|
51072
|
+
},
|
|
51073
|
+
{
|
|
51074
|
+
type: "list",
|
|
51075
|
+
items: [
|
|
51076
|
+
"The user asks what they have spent credits on, or which function dominates their spend.",
|
|
51077
|
+
"Reviewing burn by function to decide whether to shift work to batch mode or trim an operation.",
|
|
51078
|
+
"Producing a spend report for the last N days."
|
|
51079
|
+
]
|
|
51080
|
+
},
|
|
51081
|
+
{
|
|
51082
|
+
type: "heading",
|
|
51083
|
+
level: 3,
|
|
51084
|
+
id: "do-not-use",
|
|
51085
|
+
text: "When not to use"
|
|
51086
|
+
},
|
|
51087
|
+
{
|
|
51088
|
+
type: "list",
|
|
51089
|
+
items: [
|
|
51090
|
+
"For the remaining balance and runway: use `talonic_get_balance`.",
|
|
51091
|
+
"For per-unit rates before running a job: use `talonic_get_pricing`."
|
|
51092
|
+
]
|
|
51093
|
+
},
|
|
51094
|
+
{
|
|
51095
|
+
type: "heading",
|
|
51096
|
+
level: 3,
|
|
51097
|
+
id: "arguments",
|
|
51098
|
+
text: "Arguments"
|
|
51099
|
+
},
|
|
51100
|
+
{
|
|
51101
|
+
type: "list",
|
|
51102
|
+
items: [
|
|
51103
|
+
"`days` (optional): trailing reporting window in days. Default 30, clamped between 1 and 365."
|
|
51104
|
+
]
|
|
51105
|
+
},
|
|
51106
|
+
{
|
|
51107
|
+
type: "heading",
|
|
51108
|
+
level: 3,
|
|
51109
|
+
id: "response-shape",
|
|
51110
|
+
text: "Response shape"
|
|
51111
|
+
},
|
|
51112
|
+
{
|
|
51113
|
+
type: "list",
|
|
51114
|
+
items: [
|
|
51115
|
+
"`period_days`: length of the reporting window in days.",
|
|
51116
|
+
"`total_credits`: total credits consumed across all functions in the window.",
|
|
51117
|
+
"`by_function`: array of `{ operation_type, operations, credits }`, highest spend first."
|
|
51118
|
+
]
|
|
51119
|
+
},
|
|
51120
|
+
{
|
|
51121
|
+
type: "code",
|
|
51122
|
+
language: "json",
|
|
51123
|
+
title: "Tool input",
|
|
51124
|
+
code: '{ "days": 30 }'
|
|
51125
|
+
},
|
|
51126
|
+
{
|
|
51127
|
+
type: "code",
|
|
51128
|
+
language: "json",
|
|
51129
|
+
title: "Tool response",
|
|
51130
|
+
code: '{\n "period_days": 30,\n "total_credits": 48200,\n "by_function": [\n { "operation_type": "page_ingest", "operations": 412, "credits": 41200 },\n { "operation_type": "structuring_cell", "operations": 300, "credits": 6000 },\n { "operation_type": "intelligence_op", "operations": 10, "credits": 1000 }\n ]\n}'
|
|
51131
|
+
},
|
|
51132
|
+
{
|
|
51133
|
+
type: "paragraph",
|
|
51134
|
+
text: "Agents use `talonic_get_usage` to attribute spend to the functions that caused it. Pairing it with `talonic_get_balance` gives a full picture: balance shows how much is left, usage shows what consumed it, and pricing shows the rate of each function. An agent noticing that page ingestion dominates spend might suggest batch mode for the 0.5x discount, or reusing schemas so more cells resolve from the Field Registry for free."
|
|
51135
|
+
},
|
|
51136
|
+
{
|
|
51137
|
+
type: "paragraph",
|
|
51138
|
+
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."
|
|
51139
|
+
},
|
|
51140
|
+
{
|
|
51141
|
+
type: "paragraph",
|
|
51142
|
+
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."
|
|
51143
|
+
},
|
|
51144
|
+
{
|
|
51145
|
+
type: "callout",
|
|
51146
|
+
variant: "info",
|
|
51147
|
+
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."
|
|
51148
|
+
}
|
|
51149
|
+
],
|
|
51150
|
+
related: [
|
|
51151
|
+
{
|
|
51152
|
+
label: "talonic_get_pricing",
|
|
51153
|
+
slug: "mcp-talonic-get-pricing"
|
|
51154
|
+
},
|
|
51155
|
+
{
|
|
51156
|
+
label: "talonic_get_balance",
|
|
51157
|
+
slug: "mcp-talonic-get-balance"
|
|
51158
|
+
}
|
|
51159
|
+
],
|
|
51160
|
+
faq: [
|
|
51161
|
+
{
|
|
51162
|
+
question: "How is talonic_get_usage different from talonic_get_balance?",
|
|
51163
|
+
answer: "Balance reports what is left (and runway); usage reports what was spent, grouped by function. Use balance to check headroom and usage to attribute spend to extraction, structuring, or intelligence operations."
|
|
51164
|
+
},
|
|
51165
|
+
{
|
|
51166
|
+
question: "What window does talonic_get_usage cover?",
|
|
51167
|
+
answer: "The last 30 days by default. Pass days to change it, anywhere from 1 to 365. The response echoes period_days so the agent can confirm the window it summarized."
|
|
51168
|
+
},
|
|
51169
|
+
{
|
|
51170
|
+
question: "Why is the breakdown empty?",
|
|
51171
|
+
answer: "Per-function rows populate as billable operations are charged. While metering runs in shadow mode the ledger records what each operation would cost without deducting, so the breakdown can be empty until enforcement is enabled. Pricing still returns the rates in the meantime."
|
|
51172
|
+
}
|
|
51173
|
+
],
|
|
51174
|
+
mentions: [
|
|
51175
|
+
"credit usage",
|
|
51176
|
+
"per-function spend",
|
|
51177
|
+
"credit consumption",
|
|
51178
|
+
"burn rate",
|
|
51179
|
+
"operation type",
|
|
51180
|
+
"spend report"
|
|
51181
|
+
]
|
|
51182
|
+
},
|
|
51183
|
+
{
|
|
51184
|
+
slug: "mcp-talonic-list-agent-tasks",
|
|
51185
|
+
parentSlug: "mcp-tools",
|
|
51186
|
+
title: "talonic_list_agent_tasks",
|
|
51187
|
+
seoTitle: "talonic_list_agent_tasks \u2014 Agent Worklist for Documents",
|
|
51188
|
+
description: "MCP tool that lists Agent-stage tasks awaiting external processing in your Talonic workspace \u2014 metadata only, with status filters and cursor pagination.",
|
|
51189
|
+
content: [
|
|
51190
|
+
{
|
|
51191
|
+
type: "paragraph",
|
|
51192
|
+
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."
|
|
51193
|
+
},
|
|
51194
|
+
{
|
|
51195
|
+
type: "paragraph",
|
|
51196
|
+
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."
|
|
51197
|
+
},
|
|
51198
|
+
{
|
|
51199
|
+
type: "paragraph",
|
|
51200
|
+
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."
|
|
51201
|
+
},
|
|
51202
|
+
{
|
|
51203
|
+
type: "heading",
|
|
51204
|
+
level: 3,
|
|
51205
|
+
id: "list-agent-tasks-workflow",
|
|
51206
|
+
text: "Start the pull workflow"
|
|
51207
|
+
},
|
|
51208
|
+
{
|
|
51209
|
+
type: "list",
|
|
51210
|
+
ordered: true,
|
|
51211
|
+
items: [
|
|
51212
|
+
'Call `talonic_list_agent_tasks` with `status: "available"`.',
|
|
51213
|
+
"Inspect a candidate with `talonic_get_agent_task`.",
|
|
51214
|
+
"Claim it with `talonic_claim_agent_task` before doing work.",
|
|
51215
|
+
"Heartbeat while processing, then submit only fields declared in `output_contract`."
|
|
51216
|
+
]
|
|
51217
|
+
},
|
|
51218
|
+
{
|
|
51219
|
+
type: "param-table",
|
|
51220
|
+
params: [
|
|
51221
|
+
{
|
|
51222
|
+
name: "status",
|
|
51223
|
+
type: "available | claimed | submitted | timed_out | cancelled",
|
|
51224
|
+
description: "Optional lifecycle-state filter. Start with `available` when looking for work."
|
|
51225
|
+
},
|
|
51226
|
+
{
|
|
51227
|
+
name: "limit",
|
|
51228
|
+
type: "integer",
|
|
51229
|
+
description: "Page size from 1 to 100. Defaults to 50."
|
|
51230
|
+
},
|
|
51231
|
+
{
|
|
51232
|
+
name: "cursor",
|
|
51233
|
+
type: "string",
|
|
51234
|
+
description: "Opaque `pagination.next_cursor` from the previous page."
|
|
51235
|
+
}
|
|
51236
|
+
]
|
|
51237
|
+
},
|
|
51238
|
+
{
|
|
51239
|
+
type: "code",
|
|
51240
|
+
language: "json",
|
|
51241
|
+
title: "Tool input and response",
|
|
51242
|
+
code: '// talonic_list_agent_tasks({ "status": "available", "limit": 2 })\n{\n "data": [\n {\n "id": "11111111-1111-4111-8111-111111111111",\n "document_id": "22222222-2222-4222-8222-222222222222",\n "stage_id": "33333333-3333-4333-8333-333333333333",\n "status": "available",\n "execution_epoch": 1,\n "claimed_at": null,\n "lease_expires_at": null,\n "timeout_at": "2026-08-30T12:00:00.000Z",\n "created_at": "2026-08-29T09:15:00.000Z"\n }\n ],\n "pagination": { "has_more": false, "next_cursor": null }\n}'
|
|
51243
|
+
},
|
|
51244
|
+
{
|
|
51245
|
+
type: "paragraph",
|
|
51246
|
+
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`.'
|
|
51247
|
+
},
|
|
51248
|
+
{
|
|
51249
|
+
type: "callout",
|
|
51250
|
+
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."
|
|
51251
|
+
}
|
|
51252
|
+
],
|
|
51253
|
+
related: [
|
|
51254
|
+
{
|
|
51255
|
+
label: "talonic_get_agent_task",
|
|
51256
|
+
slug: "mcp-talonic-get-agent-task"
|
|
51257
|
+
},
|
|
51258
|
+
{
|
|
51259
|
+
label: "talonic_claim_agent_task",
|
|
51260
|
+
slug: "mcp-talonic-claim-agent-task"
|
|
51261
|
+
},
|
|
51262
|
+
{
|
|
51263
|
+
label: "talonic_submit_agent_task",
|
|
51264
|
+
slug: "mcp-talonic-submit-agent-task"
|
|
51265
|
+
}
|
|
51266
|
+
],
|
|
51267
|
+
faq: [
|
|
51268
|
+
{
|
|
51269
|
+
question: "Does listing Agent tasks expose document data?",
|
|
51270
|
+
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."
|
|
51271
|
+
},
|
|
51272
|
+
{
|
|
51273
|
+
question: "What do the Agent task statuses mean?",
|
|
51274
|
+
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."
|
|
51275
|
+
},
|
|
51276
|
+
{
|
|
51277
|
+
question: "How does pagination work on the Agent-task worklist?",
|
|
51278
|
+
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."
|
|
51279
|
+
}
|
|
51280
|
+
],
|
|
51281
|
+
mentions: [
|
|
51282
|
+
"Agent stage",
|
|
51283
|
+
"worklist",
|
|
51284
|
+
"MCP agent",
|
|
51285
|
+
"cursor pagination"
|
|
51286
|
+
]
|
|
51287
|
+
},
|
|
51288
|
+
{
|
|
51289
|
+
slug: "mcp-talonic-get-agent-task",
|
|
51290
|
+
parentSlug: "mcp-tools",
|
|
51291
|
+
title: "talonic_get_agent_task",
|
|
51292
|
+
seoTitle: "talonic_get_agent_task \u2014 Fetch an Agent Task's Payload",
|
|
51293
|
+
description: "MCP tool that fetches one Agent task's immutable input snapshot, instructions, and declared output contract. Every payload fetch is an audited disclosure.",
|
|
51294
|
+
content: [
|
|
51295
|
+
{
|
|
51296
|
+
type: "paragraph",
|
|
51297
|
+
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."
|
|
51298
|
+
},
|
|
51299
|
+
{
|
|
51300
|
+
type: "paragraph",
|
|
51301
|
+
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`."
|
|
51302
|
+
},
|
|
51303
|
+
{
|
|
51304
|
+
type: "paragraph",
|
|
51305
|
+
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."
|
|
51306
|
+
},
|
|
51307
|
+
{
|
|
51308
|
+
type: "param-table",
|
|
51309
|
+
params: [
|
|
51310
|
+
{
|
|
51311
|
+
name: "task_id",
|
|
51312
|
+
type: "UUID",
|
|
51313
|
+
required: true,
|
|
51314
|
+
description: "Task ID returned by `talonic_list_agent_tasks`."
|
|
51315
|
+
}
|
|
51316
|
+
]
|
|
51317
|
+
},
|
|
51318
|
+
{
|
|
51319
|
+
type: "code",
|
|
51320
|
+
language: "json",
|
|
51321
|
+
title: "Tool input",
|
|
51322
|
+
code: '{ "task_id": "11111111-1111-4111-8111-111111111111" }'
|
|
51323
|
+
},
|
|
51324
|
+
{
|
|
51325
|
+
type: "paragraph",
|
|
51326
|
+
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."
|
|
51327
|
+
},
|
|
51328
|
+
{
|
|
51329
|
+
type: "code",
|
|
51330
|
+
language: "json",
|
|
51331
|
+
title: "Key response fields",
|
|
51332
|
+
code: '{\n "id": "11111111-1111-4111-8111-111111111111",\n "status": "available",\n "input_snapshot": { "vendor_name": { "value": "Acme" } },\n "output_contract": [\n { "key": "risk_score", "dataType": "number", "required": true }\n ],\n "instructions": "Assess supplier risk from the supplied evidence.",\n "timeout_fallthrough": "route_to_review"\n}'
|
|
51333
|
+
},
|
|
51334
|
+
{
|
|
51335
|
+
type: "callout",
|
|
51336
|
+
variant: "warning",
|
|
51337
|
+
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."
|
|
51338
|
+
}
|
|
51339
|
+
],
|
|
51340
|
+
related: [
|
|
51341
|
+
{
|
|
51342
|
+
label: "talonic_list_agent_tasks",
|
|
51343
|
+
slug: "mcp-talonic-list-agent-tasks"
|
|
51344
|
+
},
|
|
51345
|
+
{
|
|
51346
|
+
label: "talonic_claim_agent_task",
|
|
51347
|
+
slug: "mcp-talonic-claim-agent-task"
|
|
51348
|
+
}
|
|
51349
|
+
],
|
|
51350
|
+
faq: [
|
|
51351
|
+
{
|
|
51352
|
+
question: "Can the snapshot change while an agent processes it?",
|
|
51353
|
+
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."
|
|
51354
|
+
},
|
|
51355
|
+
{
|
|
51356
|
+
question: "Does fetching an Agent task claim it?",
|
|
51357
|
+
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."
|
|
51358
|
+
},
|
|
51359
|
+
{
|
|
51360
|
+
question: "What does timeout_fallthrough mean?",
|
|
51361
|
+
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."
|
|
51362
|
+
}
|
|
51363
|
+
],
|
|
51364
|
+
mentions: [
|
|
51365
|
+
"immutable snapshot",
|
|
51366
|
+
"output contract",
|
|
51367
|
+
"audit trail",
|
|
51368
|
+
"document task"
|
|
51369
|
+
]
|
|
51370
|
+
},
|
|
51371
|
+
{
|
|
51372
|
+
slug: "mcp-talonic-claim-agent-task",
|
|
51373
|
+
parentSlug: "mcp-tools",
|
|
51374
|
+
title: "talonic_claim_agent_task",
|
|
51375
|
+
seoTitle: "talonic_claim_agent_task \u2014 Lease an Agent Task Safely",
|
|
51376
|
+
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.",
|
|
51377
|
+
content: [
|
|
51378
|
+
{
|
|
51379
|
+
type: "paragraph",
|
|
51380
|
+
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."
|
|
51381
|
+
},
|
|
51382
|
+
{
|
|
51383
|
+
type: "paragraph",
|
|
51384
|
+
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."
|
|
51385
|
+
},
|
|
51386
|
+
{
|
|
51387
|
+
type: "param-table",
|
|
51388
|
+
params: [
|
|
51389
|
+
{
|
|
51390
|
+
name: "task_id",
|
|
51391
|
+
type: "UUID",
|
|
51392
|
+
required: true,
|
|
51393
|
+
description: "Available task to claim, or an expired claim to reclaim."
|
|
51394
|
+
}
|
|
51395
|
+
]
|
|
51396
|
+
},
|
|
51397
|
+
{
|
|
51398
|
+
type: "code",
|
|
51399
|
+
language: "json",
|
|
51400
|
+
title: "Tool input and response (payload fields elided)",
|
|
51401
|
+
code: '// talonic_claim_agent_task({ "task_id": "11111111-1111-4111-8111-111111111111" })\n{\n "id": "11111111-1111-4111-8111-111111111111",\n "status": "claimed",\n "execution_epoch": 2,\n "claimed_at": "2026-08-29T10:00:00.000Z",\n "lease_expires_at": "2026-08-29T10:10:00.000Z",\n "input_snapshot": { "...": "full payload, same shape as talonic_get_agent_task" },\n "output_contract": [{ "key": "risk_score", "dataType": "number", "required": true }],\n "instructions": "Assess supplier risk from the supplied evidence."\n}'
|
|
51402
|
+
},
|
|
51403
|
+
{
|
|
51404
|
+
type: "callout",
|
|
51405
|
+
variant: "warning",
|
|
51406
|
+
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."
|
|
51407
|
+
},
|
|
51408
|
+
{
|
|
51409
|
+
type: "paragraph",
|
|
51410
|
+
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."
|
|
51411
|
+
},
|
|
51412
|
+
{
|
|
51413
|
+
type: "paragraph",
|
|
51414
|
+
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."
|
|
51415
|
+
}
|
|
51416
|
+
],
|
|
51417
|
+
related: [
|
|
51418
|
+
{
|
|
51419
|
+
label: "talonic_heartbeat_agent_task",
|
|
51420
|
+
slug: "mcp-talonic-heartbeat-agent-task"
|
|
51421
|
+
},
|
|
51422
|
+
{
|
|
51423
|
+
label: "talonic_submit_agent_task",
|
|
51424
|
+
slug: "mcp-talonic-submit-agent-task"
|
|
51425
|
+
}
|
|
51426
|
+
],
|
|
51427
|
+
faq: [
|
|
51428
|
+
{
|
|
51429
|
+
question: "What is an execution epoch?",
|
|
51430
|
+
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."
|
|
51431
|
+
},
|
|
51432
|
+
{
|
|
51433
|
+
question: "Can I claim a task that is already claimed?",
|
|
51434
|
+
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."
|
|
51435
|
+
},
|
|
51436
|
+
{
|
|
51437
|
+
question: "What happens if I claim a task and never finish it?",
|
|
51438
|
+
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."
|
|
51439
|
+
}
|
|
51440
|
+
],
|
|
51441
|
+
mentions: [
|
|
51442
|
+
"claim lease",
|
|
51443
|
+
"execution epoch",
|
|
51444
|
+
"conflict",
|
|
51445
|
+
"reclaim"
|
|
51446
|
+
]
|
|
51447
|
+
},
|
|
51448
|
+
{
|
|
51449
|
+
slug: "mcp-talonic-heartbeat-agent-task",
|
|
51450
|
+
parentSlug: "mcp-tools",
|
|
51451
|
+
title: "talonic_heartbeat_agent_task",
|
|
51452
|
+
seoTitle: "talonic_heartbeat_agent_task \u2014 Keep a Task Lease Alive",
|
|
51453
|
+
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.",
|
|
51454
|
+
content: [
|
|
51455
|
+
{
|
|
51456
|
+
type: "paragraph",
|
|
51457
|
+
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."
|
|
51458
|
+
},
|
|
51459
|
+
{
|
|
51460
|
+
type: "paragraph",
|
|
51461
|
+
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`."
|
|
51462
|
+
},
|
|
51463
|
+
{
|
|
51464
|
+
type: "code",
|
|
51465
|
+
language: "json",
|
|
51466
|
+
title: "Tool input and response (metadata only)",
|
|
51467
|
+
code: '// talonic_heartbeat_agent_task({\n// "task_id": "11111111-1111-4111-8111-111111111111",\n// "execution_epoch": 2\n// })\n{\n "id": "11111111-1111-4111-8111-111111111111",\n "status": "claimed",\n "execution_epoch": 2,\n "lease_expires_at": "2026-08-29T10:20:00.000Z",\n "timeout_at": "2026-08-30T12:00:00.000Z"\n}'
|
|
51468
|
+
},
|
|
51469
|
+
{
|
|
51470
|
+
type: "paragraph",
|
|
51471
|
+
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."
|
|
51472
|
+
},
|
|
51473
|
+
{
|
|
51474
|
+
type: "paragraph",
|
|
51475
|
+
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."
|
|
51476
|
+
},
|
|
51477
|
+
{
|
|
51478
|
+
type: "param-table",
|
|
51479
|
+
params: [
|
|
51480
|
+
{
|
|
51481
|
+
name: "task_id",
|
|
51482
|
+
type: "UUID",
|
|
51483
|
+
required: true,
|
|
51484
|
+
description: "Claimed task ID."
|
|
51485
|
+
},
|
|
51486
|
+
{
|
|
51487
|
+
name: "execution_epoch",
|
|
51488
|
+
type: "integer",
|
|
51489
|
+
required: true,
|
|
51490
|
+
description: "Exact epoch returned by the current successful claim."
|
|
51491
|
+
}
|
|
51492
|
+
]
|
|
51493
|
+
},
|
|
51494
|
+
{
|
|
51495
|
+
type: "callout",
|
|
51496
|
+
variant: "warning",
|
|
51497
|
+
text: "A stale epoch or a claim owned by another actor returns HTTP 409. Stop work and do not submit results after that conflict."
|
|
51498
|
+
}
|
|
51499
|
+
],
|
|
51500
|
+
related: [
|
|
51501
|
+
{
|
|
51502
|
+
label: "talonic_claim_agent_task",
|
|
51503
|
+
slug: "mcp-talonic-claim-agent-task"
|
|
51504
|
+
},
|
|
51505
|
+
{
|
|
51506
|
+
label: "talonic_submit_agent_task",
|
|
51507
|
+
slug: "mcp-talonic-submit-agent-task"
|
|
51508
|
+
}
|
|
51509
|
+
],
|
|
51510
|
+
faq: [
|
|
51511
|
+
{
|
|
51512
|
+
question: "How often should an agent heartbeat?",
|
|
51513
|
+
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."
|
|
51514
|
+
},
|
|
51515
|
+
{
|
|
51516
|
+
question: "What does a heartbeat return?",
|
|
51517
|
+
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."
|
|
51518
|
+
},
|
|
51519
|
+
{
|
|
51520
|
+
question: "My heartbeat returned HTTP 409 \u2014 can I still submit?",
|
|
51521
|
+
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."
|
|
51522
|
+
}
|
|
51523
|
+
],
|
|
51524
|
+
mentions: [
|
|
51525
|
+
"heartbeat",
|
|
51526
|
+
"lease expiry",
|
|
51527
|
+
"execution epoch",
|
|
51528
|
+
"long-running task"
|
|
51529
|
+
]
|
|
51530
|
+
},
|
|
51531
|
+
{
|
|
51532
|
+
slug: "mcp-talonic-submit-agent-task",
|
|
51533
|
+
parentSlug: "mcp-tools",
|
|
51534
|
+
title: "talonic_submit_agent_task",
|
|
51535
|
+
seoTitle: "talonic_submit_agent_task \u2014 Submit Typed Task Outputs",
|
|
51536
|
+
description: "MCP tool that submits declared, typed outputs for a claimed Agent task in one transaction, validated against the output contract, resuming the document.",
|
|
51537
|
+
content: [
|
|
51538
|
+
{
|
|
51539
|
+
type: "paragraph",
|
|
51540
|
+
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."
|
|
51541
|
+
},
|
|
51542
|
+
{
|
|
51543
|
+
type: "paragraph",
|
|
51544
|
+
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."
|
|
51545
|
+
},
|
|
51546
|
+
{
|
|
51547
|
+
type: "param-table",
|
|
51548
|
+
params: [
|
|
51549
|
+
{
|
|
51550
|
+
name: "task_id",
|
|
51551
|
+
type: "UUID",
|
|
51552
|
+
required: true,
|
|
51553
|
+
description: "Claimed task ID."
|
|
51554
|
+
},
|
|
51555
|
+
{
|
|
51556
|
+
name: "execution_epoch",
|
|
51557
|
+
type: "integer",
|
|
51558
|
+
required: true,
|
|
51559
|
+
description: "Exact epoch from the current claim."
|
|
51560
|
+
},
|
|
51561
|
+
{
|
|
51562
|
+
name: "outputs",
|
|
51563
|
+
type: "object",
|
|
51564
|
+
required: true,
|
|
51565
|
+
description: "Declared field key to `{ value, confidence?, reasoning? }`. Confidence is 0\u20131; reasoning is at most 4,000 characters."
|
|
51566
|
+
},
|
|
51567
|
+
{
|
|
51568
|
+
name: "summary",
|
|
51569
|
+
type: "string",
|
|
51570
|
+
description: "Optional overall result summary, at most 4,000 characters."
|
|
51571
|
+
}
|
|
51572
|
+
]
|
|
51573
|
+
},
|
|
51574
|
+
{
|
|
51575
|
+
type: "code",
|
|
51576
|
+
language: "json",
|
|
51577
|
+
title: "Submit result",
|
|
51578
|
+
code: '{\n "task_id": "11111111-1111-4111-8111-111111111111",\n "execution_epoch": 3,\n "outputs": {\n "risk_score": {\n "value": 0.72,\n "confidence": 0.88,\n "reasoning": "Two adverse indicators in the supplied evidence."\n }\n },\n "summary": "Supplier requires enhanced review."\n}'
|
|
51579
|
+
},
|
|
51580
|
+
{
|
|
51581
|
+
type: "paragraph",
|
|
51582
|
+
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."
|
|
51583
|
+
},
|
|
51584
|
+
{
|
|
51585
|
+
type: "paragraph",
|
|
51586
|
+
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."
|
|
51587
|
+
},
|
|
51588
|
+
{
|
|
51589
|
+
type: "callout",
|
|
51590
|
+
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."
|
|
51591
|
+
}
|
|
51592
|
+
],
|
|
51593
|
+
related: [
|
|
51594
|
+
{
|
|
51595
|
+
label: "talonic_get_agent_task",
|
|
51596
|
+
slug: "mcp-talonic-get-agent-task"
|
|
51597
|
+
},
|
|
51598
|
+
{
|
|
51599
|
+
label: "talonic_claim_agent_task",
|
|
51600
|
+
slug: "mcp-talonic-claim-agent-task"
|
|
51601
|
+
},
|
|
51602
|
+
{
|
|
51603
|
+
label: "talonic_heartbeat_agent_task",
|
|
51604
|
+
slug: "mcp-talonic-heartbeat-agent-task"
|
|
51605
|
+
}
|
|
51606
|
+
],
|
|
51607
|
+
faq: [
|
|
51608
|
+
{
|
|
51609
|
+
question: "Can an Agent task return extra fields it discovered?",
|
|
51610
|
+
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."
|
|
51611
|
+
},
|
|
51612
|
+
{
|
|
51613
|
+
question: "What happens if my submission fails validation?",
|
|
51614
|
+
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."
|
|
51615
|
+
},
|
|
51616
|
+
{
|
|
51617
|
+
question: "Can I resubmit or amend after a successful submit?",
|
|
51618
|
+
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."
|
|
51619
|
+
}
|
|
51620
|
+
],
|
|
51621
|
+
mentions: [
|
|
51622
|
+
"transactional submit",
|
|
51623
|
+
"AI Agent (MCP)",
|
|
51624
|
+
"mcp_agent",
|
|
51625
|
+
"typed outputs"
|
|
51626
|
+
]
|
|
51627
|
+
},
|
|
51628
|
+
{
|
|
51629
|
+
slug: "mcp-talonic-list-specs",
|
|
51630
|
+
parentSlug: "mcp-tools",
|
|
51631
|
+
title: "talonic_list_specs",
|
|
51632
|
+
seoTitle: "talonic_list_specs \u2014 List Workspace Specs",
|
|
51633
|
+
description: "MCP tool that lists the workspace's Specs \u2014 the configured pipelines an agent can run with talonic_run_spec \u2014 with schema ids, publish state, and field/node counts.",
|
|
51634
|
+
content: [
|
|
51635
|
+
{
|
|
51636
|
+
type: "paragraph",
|
|
51637
|
+
text: "List the workspace's **Specs** \u2014 the configured pipelines an agent can run with `talonic_run_spec`. Each row carries the Spec `id`, `name`, the `schema_id` it materializes onto (a different id from the Spec's own), the published `version` and `materialized_version` (null when never published), `field_count`, `node_count` and timestamps."
|
|
51638
|
+
},
|
|
51639
|
+
{
|
|
51640
|
+
type: "heading",
|
|
51641
|
+
level: 3,
|
|
51642
|
+
id: "list-specs-use-when",
|
|
51643
|
+
text: "When to use"
|
|
51644
|
+
},
|
|
51645
|
+
{
|
|
51646
|
+
type: "list",
|
|
51647
|
+
items: [
|
|
51648
|
+
"You need a `spec_id` to run the customer's pipeline.",
|
|
51649
|
+
"The user refers to 'our invoice pipeline' and you must find it.",
|
|
51650
|
+
"You want to see which Specs are published (`version` non-null) before running."
|
|
51651
|
+
]
|
|
51652
|
+
},
|
|
51653
|
+
{
|
|
51654
|
+
type: "heading",
|
|
51655
|
+
level: 3,
|
|
51656
|
+
id: "list-specs-do-not-use",
|
|
51657
|
+
text: "When not to use"
|
|
51658
|
+
},
|
|
51659
|
+
{
|
|
51660
|
+
type: "list",
|
|
51661
|
+
items: [
|
|
51662
|
+
"You want ad-hoc extraction schemas \u2014 use `talonic_list_schemas`.",
|
|
51663
|
+
"You want to discover fields \u2014 use `talonic_list_fields` / `talonic_find_data`."
|
|
51664
|
+
]
|
|
51665
|
+
},
|
|
51666
|
+
{
|
|
51667
|
+
type: "heading",
|
|
51668
|
+
level: 3,
|
|
51669
|
+
id: "list-specs-params",
|
|
51670
|
+
text: "Parameters"
|
|
51671
|
+
},
|
|
51672
|
+
{
|
|
51673
|
+
type: "param-table",
|
|
51674
|
+
params: [
|
|
51675
|
+
{
|
|
51676
|
+
name: "search",
|
|
51677
|
+
type: "string",
|
|
51678
|
+
description: "Case-insensitive contains match on the Spec name."
|
|
51679
|
+
},
|
|
51680
|
+
{
|
|
51681
|
+
name: "limit",
|
|
51682
|
+
type: "number",
|
|
51683
|
+
description: "Page size (default 20, max 100)."
|
|
51684
|
+
},
|
|
51685
|
+
{
|
|
51686
|
+
name: "cursor",
|
|
51687
|
+
type: "string",
|
|
51688
|
+
description: "Opaque cursor from `pagination.next_cursor`."
|
|
51689
|
+
},
|
|
51690
|
+
{
|
|
51691
|
+
name: "order",
|
|
51692
|
+
type: "string",
|
|
51693
|
+
description: "`asc` or `desc`, sorted by `updated_at` (default desc)."
|
|
51694
|
+
}
|
|
51695
|
+
]
|
|
51696
|
+
},
|
|
51697
|
+
{
|
|
51698
|
+
type: "heading",
|
|
51699
|
+
level: 3,
|
|
51700
|
+
id: "list-specs-response",
|
|
51701
|
+
text: "Response shape"
|
|
51702
|
+
},
|
|
51703
|
+
{
|
|
51704
|
+
type: "param-table",
|
|
51705
|
+
title: "Fields",
|
|
51706
|
+
params: [
|
|
51707
|
+
{
|
|
51708
|
+
name: "data[].id",
|
|
51709
|
+
type: "string",
|
|
51710
|
+
description: "Spec UUID."
|
|
51711
|
+
},
|
|
51712
|
+
{
|
|
51713
|
+
name: "data[].name",
|
|
51714
|
+
type: "string",
|
|
51715
|
+
description: "Spec name."
|
|
51716
|
+
},
|
|
51717
|
+
{
|
|
51718
|
+
name: "data[].schema_id",
|
|
51719
|
+
type: "string",
|
|
51720
|
+
description: "The schema this Spec materializes onto \u2014 a different id from the Spec's own."
|
|
51721
|
+
},
|
|
51722
|
+
{
|
|
51723
|
+
name: "data[].version",
|
|
51724
|
+
type: "number|null",
|
|
51725
|
+
description: "Published version number, or null if never published."
|
|
51726
|
+
},
|
|
51727
|
+
{
|
|
51728
|
+
name: "data[].materialized_version",
|
|
51729
|
+
type: "number|null",
|
|
51730
|
+
description: "Version currently materialized onto the schema, or null."
|
|
51731
|
+
},
|
|
51732
|
+
{
|
|
51733
|
+
name: "data[].field_count",
|
|
51734
|
+
type: "number",
|
|
51735
|
+
description: "Number of fields in the Spec."
|
|
51736
|
+
},
|
|
51737
|
+
{
|
|
51738
|
+
name: "data[].node_count",
|
|
51739
|
+
type: "number",
|
|
51740
|
+
description: "Number of nodes in the authored rail."
|
|
51741
|
+
},
|
|
51742
|
+
{
|
|
51743
|
+
name: "pagination.next_cursor",
|
|
51744
|
+
type: "string|null",
|
|
51745
|
+
description: "Cursor for the next page, or null when there isn't one."
|
|
51746
|
+
}
|
|
51747
|
+
]
|
|
51748
|
+
}
|
|
51749
|
+
],
|
|
51750
|
+
related: [
|
|
51751
|
+
{
|
|
51752
|
+
label: "talonic_get_spec",
|
|
51753
|
+
slug: "mcp-talonic-get-spec"
|
|
51754
|
+
},
|
|
51755
|
+
{
|
|
51756
|
+
label: "talonic_run_spec",
|
|
51757
|
+
slug: "mcp-talonic-run-spec"
|
|
51758
|
+
}
|
|
51759
|
+
],
|
|
51760
|
+
faq: [
|
|
51761
|
+
{
|
|
51762
|
+
question: "Why does a Spec have both an id and a schema_id?",
|
|
51763
|
+
answer: "The Spec is the authoring document; running it materializes onto a schema, which has its own id. `talonic_run_spec` takes the Spec id."
|
|
51764
|
+
}
|
|
51765
|
+
],
|
|
51766
|
+
mentions: [
|
|
51767
|
+
"specs",
|
|
51768
|
+
"list specs",
|
|
51769
|
+
"pipelines",
|
|
51770
|
+
"configured pipeline",
|
|
51771
|
+
"spec id"
|
|
51772
|
+
]
|
|
51773
|
+
},
|
|
51774
|
+
{
|
|
51775
|
+
slug: "mcp-talonic-get-spec",
|
|
51776
|
+
parentSlug: "mcp-tools",
|
|
51777
|
+
title: "talonic_get_spec",
|
|
51778
|
+
seoTitle: "talonic_get_spec \u2014 Get a Spec's Structure",
|
|
51779
|
+
description: "MCP tool that returns one Spec's full structure: identity, version state, the schema it materializes onto, the authored rail (nodes[]) and compiled execution plan (phases[]), and its fields.",
|
|
51780
|
+
content: [
|
|
51781
|
+
{
|
|
51782
|
+
type: "paragraph",
|
|
51783
|
+
text: "Get one Spec's full structure: identity and version state, the schema it materializes onto, `nodes[]` \u2014 the rail as authored, in editing order \u2014 and `phases[]` \u2014 the compiled execution plan, in run order. A validation checkpoint expands to one phase per gate, so the two lists differ on purpose. `fields[]` maps Spec fields to schema fields. Pass `include_versions` to also fetch `versions[]`, the Spec's published version history, newest first."
|
|
51784
|
+
},
|
|
51785
|
+
{
|
|
51786
|
+
type: "heading",
|
|
51787
|
+
level: 3,
|
|
51788
|
+
id: "get-spec-use-when",
|
|
51789
|
+
text: "When to use"
|
|
51790
|
+
},
|
|
51791
|
+
{
|
|
51792
|
+
type: "list",
|
|
51793
|
+
items: [
|
|
51794
|
+
"You need to explain what a run will do before starting it.",
|
|
51795
|
+
"You want to confirm a Spec is published (`version` non-null) before calling `talonic_run_spec`.",
|
|
51796
|
+
"You need to map Spec field names to schema field keys."
|
|
51797
|
+
]
|
|
51798
|
+
},
|
|
51799
|
+
{
|
|
51800
|
+
type: "heading",
|
|
51801
|
+
level: 3,
|
|
51802
|
+
id: "get-spec-do-not-use",
|
|
51803
|
+
text: "When not to use"
|
|
51804
|
+
},
|
|
51805
|
+
{
|
|
51806
|
+
type: "list",
|
|
51807
|
+
items: [
|
|
51808
|
+
"You want to list all Specs \u2014 use `talonic_list_specs`.",
|
|
51809
|
+
"You are ready to execute the pipeline \u2014 use `talonic_run_spec`."
|
|
51810
|
+
]
|
|
51811
|
+
},
|
|
51812
|
+
{
|
|
51813
|
+
type: "heading",
|
|
51814
|
+
level: 3,
|
|
51815
|
+
id: "get-spec-params",
|
|
51816
|
+
text: "Parameters"
|
|
51817
|
+
},
|
|
51818
|
+
{
|
|
51819
|
+
type: "param-table",
|
|
51820
|
+
params: [
|
|
51821
|
+
{
|
|
51822
|
+
name: "spec_id",
|
|
51823
|
+
type: "string",
|
|
51824
|
+
required: true,
|
|
51825
|
+
description: "Spec UUID (from `talonic_list_specs`)."
|
|
51826
|
+
},
|
|
51827
|
+
{
|
|
51828
|
+
name: "include_versions",
|
|
51829
|
+
type: "boolean",
|
|
51830
|
+
description: "Also fetch the published versions list (adds `versions[]`)."
|
|
51831
|
+
}
|
|
51832
|
+
]
|
|
51833
|
+
},
|
|
51834
|
+
{
|
|
51835
|
+
type: "heading",
|
|
51836
|
+
level: 3,
|
|
51837
|
+
id: "get-spec-response",
|
|
51838
|
+
text: "Response shape"
|
|
51839
|
+
},
|
|
51840
|
+
{
|
|
51841
|
+
type: "param-table",
|
|
51842
|
+
title: "Fields",
|
|
51843
|
+
params: [
|
|
51844
|
+
{
|
|
51845
|
+
name: "id",
|
|
51846
|
+
type: "string",
|
|
51847
|
+
description: "Spec UUID."
|
|
51848
|
+
},
|
|
51849
|
+
{
|
|
51850
|
+
name: "name",
|
|
51851
|
+
type: "string",
|
|
51852
|
+
description: "Spec name."
|
|
51853
|
+
},
|
|
51854
|
+
{
|
|
51855
|
+
name: "version",
|
|
51856
|
+
type: "number|null",
|
|
51857
|
+
description: "Published version number, or null if never published."
|
|
51858
|
+
},
|
|
51859
|
+
{
|
|
51860
|
+
name: "materialized_version",
|
|
51861
|
+
type: "number|null",
|
|
51862
|
+
description: "Version currently materialized onto the schema, or null."
|
|
51863
|
+
},
|
|
51864
|
+
{
|
|
51865
|
+
name: "schema.id",
|
|
51866
|
+
type: "string",
|
|
51867
|
+
description: "The schema this Spec materializes onto."
|
|
51868
|
+
},
|
|
51869
|
+
{
|
|
51870
|
+
name: "nodes[].type",
|
|
51871
|
+
type: "string",
|
|
51872
|
+
description: "Stage type in the authored rail: one of `source`, `registry`, `schema`, `resolve`, `valid`, `assembly`, `deliver`, `reconcile`, `sanitize`, `triage`, `switch`."
|
|
51873
|
+
},
|
|
51874
|
+
{
|
|
51875
|
+
name: "nodes[].name",
|
|
51876
|
+
type: "string",
|
|
51877
|
+
description: "Node display name."
|
|
51878
|
+
},
|
|
51879
|
+
{
|
|
51880
|
+
name: "phases[].number",
|
|
51881
|
+
type: "number",
|
|
51882
|
+
description: "Phase order in the compiled execution plan."
|
|
51883
|
+
},
|
|
51884
|
+
{
|
|
51885
|
+
name: "phases[].type",
|
|
51886
|
+
type: "string",
|
|
51887
|
+
description: "Compiled phase type, derived from the rail stage it came from (`rail_stage_id` joins back to `nodes[].node_id`); Source and Data Product stages produce no phase, and a validation checkpoint expands to one phase per gate."
|
|
51888
|
+
},
|
|
51889
|
+
{
|
|
51890
|
+
name: "phases[].name",
|
|
51891
|
+
type: "string",
|
|
51892
|
+
description: "Phase display name."
|
|
51893
|
+
},
|
|
51894
|
+
{
|
|
51895
|
+
name: "fields[].name",
|
|
51896
|
+
type: "string",
|
|
51897
|
+
description: "Spec field name, mapped to its schema field."
|
|
51898
|
+
},
|
|
51899
|
+
{
|
|
51900
|
+
name: "versions[].version",
|
|
51901
|
+
type: "number",
|
|
51902
|
+
description: "Published version number (present when `include_versions` is true)."
|
|
51903
|
+
},
|
|
51904
|
+
{
|
|
51905
|
+
name: "versions[].is_materialized",
|
|
51906
|
+
type: "boolean",
|
|
51907
|
+
description: "Whether this version is the one currently materialized onto the schema."
|
|
51908
|
+
}
|
|
51909
|
+
]
|
|
51910
|
+
}
|
|
51911
|
+
],
|
|
51912
|
+
related: [
|
|
51913
|
+
{
|
|
51914
|
+
label: "talonic_list_specs",
|
|
51915
|
+
slug: "mcp-talonic-list-specs"
|
|
51916
|
+
},
|
|
51917
|
+
{
|
|
51918
|
+
label: "talonic_run_spec",
|
|
51919
|
+
slug: "mcp-talonic-run-spec"
|
|
51920
|
+
}
|
|
51921
|
+
],
|
|
51922
|
+
faq: [
|
|
51923
|
+
{
|
|
51924
|
+
question: "Why do nodes and phases differ?",
|
|
51925
|
+
answer: "`nodes[]` is the rail as authored, in editing order; `phases[]` is the compiled execution plan, in run order. A validation checkpoint expands into one phase per gate, so a single authored node can produce several phases \u2014 the two lists differ on purpose."
|
|
51926
|
+
}
|
|
51927
|
+
],
|
|
51928
|
+
mentions: [
|
|
51929
|
+
"spec structure",
|
|
51930
|
+
"rail",
|
|
51931
|
+
"phases",
|
|
51932
|
+
"compiled plan",
|
|
51933
|
+
"spec versions"
|
|
51934
|
+
]
|
|
51935
|
+
},
|
|
51936
|
+
{
|
|
51937
|
+
slug: "mcp-talonic-run-spec",
|
|
51938
|
+
parentSlug: "mcp-tools",
|
|
51939
|
+
title: "talonic_run_spec",
|
|
51940
|
+
seoTitle: "talonic_run_spec \u2014 Run a Spec Pipeline",
|
|
51941
|
+
description: "MCP tool that runs a Spec \u2014 the customer's configured pipeline \u2014 over workspace documents or public file URLs in one call, returning a normalized RunEnvelope to poll.",
|
|
51942
|
+
content: [
|
|
51943
|
+
{
|
|
51944
|
+
type: "paragraph",
|
|
51945
|
+
text: "Run a Spec \u2014 the customer's configured pipeline \u2014 over a set of documents in one call. Provide exactly one of `document_ids` (documents already in the workspace) or `file_urls` (public https files, max 20 \u2014 Talonic ingests them first). The call returns a RunEnvelope that normalizes two different backends (`/v1/pipelines` for `document_ids`, `/v1/run` for `file_urls`) into one shape, so the agent never has to know which route ran \u2014 only which id to poll with: poll `talonic_get_run` with `pipeline_id` when `run_kind` is `pipeline`, or with `run_id` when it is `run`. Running a Spec consumes credits."
|
|
51946
|
+
},
|
|
51947
|
+
{
|
|
51948
|
+
type: "callout",
|
|
51949
|
+
variant: "info",
|
|
51950
|
+
text: "Documents not yet in the workspace: `talonic_request_upload` \u2192 poll `talonic_get_document` \u2192 `talonic_run_spec` with `document_ids`. Remote public files: `file_urls` (max 20)."
|
|
51951
|
+
},
|
|
51952
|
+
{
|
|
51953
|
+
type: "heading",
|
|
51954
|
+
level: 3,
|
|
51955
|
+
id: "run-spec-use-when",
|
|
51956
|
+
text: "When to use"
|
|
51957
|
+
},
|
|
51958
|
+
{
|
|
51959
|
+
type: "list",
|
|
51960
|
+
items: [
|
|
51961
|
+
"The user wants to run their configured pipeline (a Spec) over documents.",
|
|
51962
|
+
"You need to process files through a Spec and produce its structured rows.",
|
|
51963
|
+
"You already have a `spec_id` from `talonic_list_specs` and either workspace documents or public file URLs."
|
|
51964
|
+
]
|
|
51965
|
+
},
|
|
51966
|
+
{
|
|
51967
|
+
type: "heading",
|
|
51968
|
+
level: 3,
|
|
51969
|
+
id: "run-spec-do-not-use",
|
|
51970
|
+
text: "When not to use"
|
|
51971
|
+
},
|
|
51972
|
+
{
|
|
51973
|
+
type: "list",
|
|
51974
|
+
items: [
|
|
51975
|
+
"One-off extraction with an ad-hoc schema \u2014 use `talonic_extract`.",
|
|
51976
|
+
"Checking progress on a run already started \u2014 use `talonic_get_run`.",
|
|
51977
|
+
"Reading a completed run's rows \u2014 use `talonic_get_run_results`."
|
|
51978
|
+
]
|
|
51979
|
+
},
|
|
51980
|
+
{
|
|
51981
|
+
type: "heading",
|
|
51982
|
+
level: 3,
|
|
51983
|
+
id: "run-spec-params",
|
|
51984
|
+
text: "Parameters"
|
|
51985
|
+
},
|
|
51986
|
+
{
|
|
51987
|
+
type: "param-table",
|
|
51988
|
+
params: [
|
|
51989
|
+
{
|
|
51990
|
+
name: "spec_id",
|
|
51991
|
+
type: "string",
|
|
51992
|
+
required: true,
|
|
51993
|
+
description: "Spec UUID (from `talonic_list_specs`)."
|
|
51994
|
+
},
|
|
51995
|
+
{
|
|
51996
|
+
name: "document_ids",
|
|
51997
|
+
type: "string[]",
|
|
51998
|
+
description: "Workspace document ids (1\u2013500). Mutually exclusive with `file_urls`."
|
|
51999
|
+
},
|
|
52000
|
+
{
|
|
52001
|
+
name: "file_urls",
|
|
52002
|
+
type: "string[]",
|
|
52003
|
+
description: "Public https file URLs (1\u201320). Mutually exclusive with `document_ids`."
|
|
52004
|
+
},
|
|
52005
|
+
{
|
|
52006
|
+
name: "name",
|
|
52007
|
+
type: "string",
|
|
52008
|
+
description: "Display name for the run."
|
|
52009
|
+
},
|
|
52010
|
+
{
|
|
52011
|
+
name: "pipeline_mode",
|
|
52012
|
+
type: "string",
|
|
52013
|
+
description: "`new` (default) or `append` to the Spec's existing pipeline."
|
|
52014
|
+
},
|
|
52015
|
+
{
|
|
52016
|
+
name: "batch_id",
|
|
52017
|
+
type: "string",
|
|
52018
|
+
description: "Caller grouping key. Only applies to the `file_urls` path."
|
|
52019
|
+
},
|
|
52020
|
+
{
|
|
52021
|
+
name: "metadata",
|
|
52022
|
+
type: "object",
|
|
52023
|
+
description: "Flat caller tags stamped on every ingested document. Only applies to the `file_urls` path."
|
|
52024
|
+
}
|
|
52025
|
+
]
|
|
52026
|
+
},
|
|
52027
|
+
{
|
|
52028
|
+
type: "heading",
|
|
52029
|
+
level: 3,
|
|
52030
|
+
id: "run-spec-response",
|
|
52031
|
+
text: "Response shape"
|
|
52032
|
+
},
|
|
52033
|
+
{
|
|
52034
|
+
type: "param-table",
|
|
52035
|
+
title: "Fields",
|
|
52036
|
+
params: [
|
|
52037
|
+
{
|
|
52038
|
+
name: "run_kind",
|
|
52039
|
+
type: "string",
|
|
52040
|
+
description: "`pipeline` (document_ids route) or `run` (file_urls route)."
|
|
52041
|
+
},
|
|
52042
|
+
{
|
|
52043
|
+
name: "run_id",
|
|
52044
|
+
type: "string|null",
|
|
52045
|
+
description: "Run id when `run_kind` is `run`; null otherwise."
|
|
52046
|
+
},
|
|
52047
|
+
{
|
|
52048
|
+
name: "pipeline_id",
|
|
52049
|
+
type: "string|null",
|
|
52050
|
+
description: "Pipeline id when `run_kind` is `pipeline`; null otherwise."
|
|
52051
|
+
},
|
|
52052
|
+
{
|
|
52053
|
+
name: "spec_id",
|
|
52054
|
+
type: "string",
|
|
52055
|
+
description: "The Spec that ran."
|
|
52056
|
+
},
|
|
52057
|
+
{
|
|
52058
|
+
name: "spec_name",
|
|
52059
|
+
type: "string|null",
|
|
52060
|
+
description: "The Spec's display name, when the backend returned one; null otherwise."
|
|
52061
|
+
},
|
|
52062
|
+
{
|
|
52063
|
+
name: "status",
|
|
52064
|
+
type: "string",
|
|
52065
|
+
description: "`processing`, `completed` or `failed`, normalized across both backends."
|
|
52066
|
+
},
|
|
52067
|
+
{
|
|
52068
|
+
name: "raw_status",
|
|
52069
|
+
type: "string|null",
|
|
52070
|
+
description: "The backend's own status string, unnormalized."
|
|
52071
|
+
},
|
|
52072
|
+
{
|
|
52073
|
+
name: "input_count",
|
|
52074
|
+
type: "number",
|
|
52075
|
+
description: "Number of documents or URLs submitted."
|
|
52076
|
+
},
|
|
52077
|
+
{
|
|
52078
|
+
name: "enqueued_documents",
|
|
52079
|
+
type: "number|null",
|
|
52080
|
+
description: "Documents enqueued for processing on the `document_ids` route; absent on the `file_urls` route."
|
|
52081
|
+
},
|
|
52082
|
+
{
|
|
52083
|
+
name: "appended",
|
|
52084
|
+
type: "boolean",
|
|
52085
|
+
description: "Whether this run appended to the Spec's existing pipeline (`pipeline_mode: 'append'`); present on the `document_ids` route only."
|
|
52086
|
+
},
|
|
52087
|
+
{
|
|
52088
|
+
name: "documents[]",
|
|
52089
|
+
type: "array",
|
|
52090
|
+
description: "Per-document detail, present on the `file_urls` route."
|
|
52091
|
+
},
|
|
52092
|
+
{
|
|
52093
|
+
name: "message",
|
|
52094
|
+
type: "string|null",
|
|
52095
|
+
description: "Informational message from the API, e.g. 'Pipeline created and queued for processing.'; null when not provided."
|
|
52096
|
+
},
|
|
52097
|
+
{
|
|
52098
|
+
name: "links",
|
|
52099
|
+
type: "object",
|
|
52100
|
+
description: "Follow-up URLs, e.g. a poll link."
|
|
52101
|
+
}
|
|
52102
|
+
]
|
|
52103
|
+
}
|
|
52104
|
+
],
|
|
52105
|
+
related: [
|
|
52106
|
+
{
|
|
52107
|
+
label: "talonic_get_run",
|
|
52108
|
+
slug: "mcp-talonic-get-run"
|
|
52109
|
+
},
|
|
52110
|
+
{
|
|
52111
|
+
label: "talonic_get_run_results",
|
|
52112
|
+
slug: "mcp-talonic-get-run-results"
|
|
52113
|
+
},
|
|
52114
|
+
{
|
|
52115
|
+
label: "talonic_request_upload",
|
|
52116
|
+
slug: "mcp-talonic-request-upload"
|
|
52117
|
+
}
|
|
52118
|
+
],
|
|
52119
|
+
faq: [
|
|
52120
|
+
{
|
|
52121
|
+
question: "Does this cost credits?",
|
|
52122
|
+
answer: "Yes \u2014 ingestion/OCR and extraction meter credits per document exactly as a run started in the app does; validation and delivery stages are free. Check `talonic_get_pricing` and `talonic_get_balance` before a large batch."
|
|
52123
|
+
}
|
|
52124
|
+
],
|
|
52125
|
+
mentions: [
|
|
52126
|
+
"run spec",
|
|
52127
|
+
"run pipeline",
|
|
52128
|
+
"execute pipeline",
|
|
52129
|
+
"file_urls",
|
|
52130
|
+
"document_ids",
|
|
52131
|
+
"pipeline_mode"
|
|
52132
|
+
]
|
|
52133
|
+
},
|
|
52134
|
+
{
|
|
52135
|
+
slug: "mcp-talonic-get-run",
|
|
52136
|
+
parentSlug: "mcp-tools",
|
|
52137
|
+
title: "talonic_get_run",
|
|
52138
|
+
seoTitle: "talonic_get_run \u2014 Poll a Spec Run",
|
|
52139
|
+
description: "MCP tool that polls a Spec run started by talonic_run_spec, returning normalized status plus document- and phase-level progress.",
|
|
52140
|
+
content: [
|
|
52141
|
+
{
|
|
52142
|
+
type: "paragraph",
|
|
52143
|
+
text: "Poll a Spec run started by `talonic_run_spec`: a normalized `status`, document-level progress, and \u2014 for pipeline runs \u2014 per-phase progress. Pass exactly one of `run_id` or `pipeline_id` \u2014 poll with `pipeline_id` when `run_kind` is `pipeline`, or with `run_id` when it is `run`."
|
|
52144
|
+
},
|
|
52145
|
+
{
|
|
52146
|
+
type: "heading",
|
|
52147
|
+
level: 3,
|
|
52148
|
+
id: "get-run-use-when",
|
|
52149
|
+
text: "When to use"
|
|
52150
|
+
},
|
|
52151
|
+
{
|
|
52152
|
+
type: "list",
|
|
52153
|
+
items: [
|
|
52154
|
+
"You just called `talonic_run_spec` and need to track progress.",
|
|
52155
|
+
"You want to know when a run finished, or whether any documents errored.",
|
|
52156
|
+
"Poll every 5\u201310 seconds; stop as soon as `status` is `completed` or `failed`."
|
|
52157
|
+
]
|
|
52158
|
+
},
|
|
52159
|
+
{
|
|
52160
|
+
type: "heading",
|
|
52161
|
+
level: 3,
|
|
52162
|
+
id: "get-run-do-not-use",
|
|
52163
|
+
text: "When not to use"
|
|
52164
|
+
},
|
|
52165
|
+
{
|
|
52166
|
+
type: "list",
|
|
52167
|
+
items: [
|
|
52168
|
+
"Starting a run \u2014 use `talonic_run_spec`.",
|
|
52169
|
+
"Reading the structured rows once a run is complete \u2014 use `talonic_get_run_results`."
|
|
52170
|
+
]
|
|
52171
|
+
},
|
|
52172
|
+
{
|
|
52173
|
+
type: "heading",
|
|
52174
|
+
level: 3,
|
|
52175
|
+
id: "get-run-params",
|
|
52176
|
+
text: "Parameters"
|
|
52177
|
+
},
|
|
52178
|
+
{
|
|
52179
|
+
type: "param-table",
|
|
52180
|
+
params: [
|
|
52181
|
+
{
|
|
52182
|
+
name: "run_id",
|
|
52183
|
+
type: "string",
|
|
52184
|
+
description: "From a `run_kind: 'run'` envelope (`/v1/run`). Provide exactly one of `run_id` or `pipeline_id`."
|
|
52185
|
+
},
|
|
52186
|
+
{
|
|
52187
|
+
name: "pipeline_id",
|
|
52188
|
+
type: "string",
|
|
52189
|
+
description: "From a `run_kind: 'pipeline'` envelope (`/v1/pipelines`). Provide exactly one of `run_id` or `pipeline_id`."
|
|
52190
|
+
}
|
|
52191
|
+
]
|
|
52192
|
+
},
|
|
52193
|
+
{
|
|
52194
|
+
type: "heading",
|
|
52195
|
+
level: 3,
|
|
52196
|
+
id: "get-run-response",
|
|
52197
|
+
text: "Response shape"
|
|
52198
|
+
},
|
|
52199
|
+
{
|
|
52200
|
+
type: "param-table",
|
|
52201
|
+
title: "Fields",
|
|
52202
|
+
params: [
|
|
52203
|
+
{
|
|
52204
|
+
name: "status",
|
|
52205
|
+
type: "string",
|
|
52206
|
+
description: "`processing`, `completed` or `failed`, normalized across both backends."
|
|
52207
|
+
},
|
|
52208
|
+
{
|
|
52209
|
+
name: "raw_status",
|
|
52210
|
+
type: "string|null",
|
|
52211
|
+
description: "The backend's own status string, unnormalized."
|
|
52212
|
+
},
|
|
52213
|
+
{
|
|
52214
|
+
name: "progress.total_documents",
|
|
52215
|
+
type: "number|null",
|
|
52216
|
+
description: "Total documents in the run."
|
|
52217
|
+
},
|
|
52218
|
+
{
|
|
52219
|
+
name: "progress.completed_documents",
|
|
52220
|
+
type: "number|null",
|
|
52221
|
+
description: "Documents finished successfully."
|
|
52222
|
+
},
|
|
52223
|
+
{
|
|
52224
|
+
name: "progress.error_documents",
|
|
52225
|
+
type: "number|null",
|
|
52226
|
+
description: "Documents that errored."
|
|
52227
|
+
},
|
|
52228
|
+
{
|
|
52229
|
+
name: "progress.phases[]",
|
|
52230
|
+
type: "array",
|
|
52231
|
+
description: "Per-phase progress for pipeline runs \u2014 phase id, name, type, and completed/running/error counts."
|
|
52232
|
+
},
|
|
52233
|
+
{
|
|
52234
|
+
name: "documents[]",
|
|
52235
|
+
type: "array",
|
|
52236
|
+
description: "Per-document detail, when present."
|
|
52237
|
+
},
|
|
52238
|
+
{
|
|
52239
|
+
name: "error_message",
|
|
52240
|
+
type: "string|null",
|
|
52241
|
+
description: "Top-level error, when `status` is `failed`."
|
|
52242
|
+
}
|
|
52243
|
+
]
|
|
52244
|
+
}
|
|
52245
|
+
],
|
|
52246
|
+
related: [
|
|
52247
|
+
{
|
|
52248
|
+
label: "talonic_run_spec",
|
|
52249
|
+
slug: "mcp-talonic-run-spec"
|
|
52250
|
+
},
|
|
52251
|
+
{
|
|
52252
|
+
label: "talonic_get_run_results",
|
|
52253
|
+
slug: "mcp-talonic-get-run-results"
|
|
52254
|
+
}
|
|
52255
|
+
],
|
|
52256
|
+
faq: [
|
|
52257
|
+
{
|
|
52258
|
+
question: "How long does a run take?",
|
|
52259
|
+
answer: "Seconds per document for the extraction stage, plus whatever validation, resolution, assembly or delivery stages the Spec's rail contains; poll every 5\u201310 seconds and stop on completed or failed."
|
|
52260
|
+
}
|
|
52261
|
+
],
|
|
52262
|
+
mentions: [
|
|
52263
|
+
"run status",
|
|
52264
|
+
"poll run",
|
|
52265
|
+
"pipeline progress",
|
|
52266
|
+
"run progress"
|
|
52267
|
+
]
|
|
52268
|
+
},
|
|
52269
|
+
{
|
|
52270
|
+
slug: "mcp-talonic-get-run-results",
|
|
52271
|
+
parentSlug: "mcp-tools",
|
|
52272
|
+
title: "talonic_get_run_results",
|
|
52273
|
+
seoTitle: "talonic_get_run_results \u2014 Read a Spec Run's Rows",
|
|
52274
|
+
description: "MCP tool that reads a Spec run's structured rows \u2014 one per document, with column definitions and pending-review counts.",
|
|
52275
|
+
content: [
|
|
52276
|
+
{
|
|
52277
|
+
type: "paragraph",
|
|
52278
|
+
text: "Read a Spec run's structured rows: one row per document, with the Spec's fields as clean values, plus the `columns[]` definitions that describe each field's key, display name and data type. Cells held for review serialize as `null` until a reviewer approves them \u2014 check `pending_review_count` to see how many are still held. Pass `include: ['provenance']` for per-field source spans, or `include: ['cells']` for the heavier cell-level payload."
|
|
52279
|
+
},
|
|
52280
|
+
{
|
|
52281
|
+
type: "heading",
|
|
52282
|
+
level: 3,
|
|
52283
|
+
id: "get-run-results-use-when",
|
|
52284
|
+
text: "When to use"
|
|
52285
|
+
},
|
|
52286
|
+
{
|
|
52287
|
+
type: "list",
|
|
52288
|
+
items: [
|
|
52289
|
+
"`talonic_get_run` reports `completed` \u2014 or you want to read partial rows while it is still `processing`.",
|
|
52290
|
+
"You need the Spec's structured output for one document or the whole run."
|
|
52291
|
+
]
|
|
52292
|
+
},
|
|
52293
|
+
{
|
|
52294
|
+
type: "heading",
|
|
52295
|
+
level: 3,
|
|
52296
|
+
id: "get-run-results-do-not-use",
|
|
52297
|
+
text: "When not to use"
|
|
52298
|
+
},
|
|
52299
|
+
{
|
|
52300
|
+
type: "list",
|
|
52301
|
+
items: [
|
|
52302
|
+
"Checking run progress \u2014 use `talonic_get_run`.",
|
|
52303
|
+
"Per-field provenance of a single value \u2014 pass `include: ['provenance']` here, or use `talonic_field_values`."
|
|
52304
|
+
]
|
|
52305
|
+
},
|
|
52306
|
+
{
|
|
52307
|
+
type: "heading",
|
|
52308
|
+
level: 3,
|
|
52309
|
+
id: "get-run-results-params",
|
|
52310
|
+
text: "Parameters"
|
|
52311
|
+
},
|
|
52312
|
+
{
|
|
52313
|
+
type: "param-table",
|
|
52314
|
+
params: [
|
|
52315
|
+
{
|
|
52316
|
+
name: "run_id",
|
|
52317
|
+
type: "string",
|
|
52318
|
+
description: "From a `run_kind: 'run'` envelope, alone \u2014 or accompanying `pipeline_id` to scope that pipeline's results to one submission."
|
|
52319
|
+
},
|
|
52320
|
+
{
|
|
52321
|
+
name: "pipeline_id",
|
|
52322
|
+
type: "string",
|
|
52323
|
+
description: "From a `run_kind: 'pipeline'` envelope. Optionally pass `run_id` alongside it to scope results to one submission within the pipeline."
|
|
52324
|
+
},
|
|
52325
|
+
{
|
|
52326
|
+
name: "document_id",
|
|
52327
|
+
type: "string",
|
|
52328
|
+
description: "Restrict to one document."
|
|
52329
|
+
},
|
|
52330
|
+
{
|
|
52331
|
+
name: "include",
|
|
52332
|
+
type: "string[]",
|
|
52333
|
+
description: "`cells` and/or `provenance` \u2014 extra per-field detail; heavier payload."
|
|
52334
|
+
},
|
|
52335
|
+
{
|
|
52336
|
+
name: "limit",
|
|
52337
|
+
type: "number",
|
|
52338
|
+
description: "Page size (1\u2013200, default 50)."
|
|
52339
|
+
},
|
|
52340
|
+
{
|
|
52341
|
+
name: "cursor",
|
|
52342
|
+
type: "string",
|
|
52343
|
+
description: "Opaque cursor from `pagination.next_cursor`."
|
|
52344
|
+
}
|
|
52345
|
+
]
|
|
52346
|
+
},
|
|
52347
|
+
{
|
|
52348
|
+
type: "heading",
|
|
52349
|
+
level: 3,
|
|
52350
|
+
id: "get-run-results-response",
|
|
52351
|
+
text: "Response shape"
|
|
52352
|
+
},
|
|
52353
|
+
{
|
|
52354
|
+
type: "param-table",
|
|
52355
|
+
title: "Fields",
|
|
52356
|
+
params: [
|
|
52357
|
+
{
|
|
52358
|
+
name: "columns[].field_key",
|
|
52359
|
+
type: "string",
|
|
52360
|
+
description: "Stable field key, matches `data[].fields` keys."
|
|
52361
|
+
},
|
|
52362
|
+
{
|
|
52363
|
+
name: "columns[].display_name",
|
|
52364
|
+
type: "string",
|
|
52365
|
+
description: "Human-readable column label."
|
|
52366
|
+
},
|
|
52367
|
+
{
|
|
52368
|
+
name: "columns[].data_type",
|
|
52369
|
+
type: "string",
|
|
52370
|
+
description: "The field's data type (string, number, array, etc.)."
|
|
52371
|
+
},
|
|
52372
|
+
{
|
|
52373
|
+
name: "data[].document_id",
|
|
52374
|
+
type: "string",
|
|
52375
|
+
description: "The document this row belongs to."
|
|
52376
|
+
},
|
|
52377
|
+
{
|
|
52378
|
+
name: "data[].filename",
|
|
52379
|
+
type: "string",
|
|
52380
|
+
description: "The document's filename."
|
|
52381
|
+
},
|
|
52382
|
+
{
|
|
52383
|
+
name: "data[].status",
|
|
52384
|
+
type: "string",
|
|
52385
|
+
description: "`complete`, `partial`, `error` or `processing` for this document's row."
|
|
52386
|
+
},
|
|
52387
|
+
{
|
|
52388
|
+
name: "data[].fields",
|
|
52389
|
+
type: "object",
|
|
52390
|
+
description: "`{ field_key: value }` \u2014 the clean values; held cells are `null`."
|
|
52391
|
+
},
|
|
52392
|
+
{
|
|
52393
|
+
name: "pagination",
|
|
52394
|
+
type: "object",
|
|
52395
|
+
description: "`total`, `limit`, `has_more`, `next_cursor`."
|
|
52396
|
+
},
|
|
52397
|
+
{
|
|
52398
|
+
name: "pending_review_count",
|
|
52399
|
+
type: "number",
|
|
52400
|
+
description: "Number of held (pending-review) cells on this page."
|
|
52401
|
+
}
|
|
52402
|
+
]
|
|
52403
|
+
}
|
|
52404
|
+
],
|
|
52405
|
+
related: [
|
|
52406
|
+
{
|
|
52407
|
+
label: "talonic_get_run",
|
|
52408
|
+
slug: "mcp-talonic-get-run"
|
|
52409
|
+
},
|
|
52410
|
+
{
|
|
52411
|
+
label: "talonic_field_values",
|
|
52412
|
+
slug: "mcp-talonic-field-values"
|
|
52413
|
+
}
|
|
52414
|
+
],
|
|
52415
|
+
faq: [
|
|
52416
|
+
{
|
|
52417
|
+
question: "Why is a value null?",
|
|
52418
|
+
answer: "Held (pending review) cells serialize as null until a reviewer approves them; `pending_review_count` tells you how many are held on the page."
|
|
52419
|
+
}
|
|
52420
|
+
],
|
|
52421
|
+
mentions: [
|
|
52422
|
+
"run results",
|
|
52423
|
+
"pipeline results",
|
|
52424
|
+
"structured rows",
|
|
52425
|
+
"columns",
|
|
52426
|
+
"pending review"
|
|
52427
|
+
]
|
|
52428
|
+
},
|
|
52429
|
+
{
|
|
52430
|
+
slug: "mcp-talonic-ask",
|
|
52431
|
+
parentSlug: "mcp-tools",
|
|
52432
|
+
title: "talonic_ask",
|
|
52433
|
+
seoTitle: "talonic_ask \u2014 Ask a Cited, Verified Question",
|
|
52434
|
+
description: "MCP tool that answers a natural-language question over the workspace's documents with a cited, verified markdown answer.",
|
|
52435
|
+
content: [
|
|
52436
|
+
{
|
|
52437
|
+
type: "paragraph",
|
|
52438
|
+
text: "Ask a natural-language question over the workspace's documents and get a cited, verified answer in markdown. The Talonic agent plans over the structured field plane, runs read-only SQL over extracted cells, reads document text, and grounds every load-bearing claim in a source span. The call waits up to `wait_seconds` (default 45, max 55) for the answer; if it is not ready in time, the response comes back `processing` with an `ask_id` to poll. Consumes credits."
|
|
52439
|
+
},
|
|
52440
|
+
{
|
|
52441
|
+
type: "callout",
|
|
52442
|
+
variant: "warning",
|
|
52443
|
+
text: "Costs credits. For a known field's values use `talonic_field_values` or `talonic_filter` \u2014 they are free."
|
|
52444
|
+
},
|
|
52445
|
+
{
|
|
52446
|
+
type: "heading",
|
|
52447
|
+
level: 3,
|
|
52448
|
+
id: "ask-use-when",
|
|
52449
|
+
text: "When to use"
|
|
52450
|
+
},
|
|
52451
|
+
{
|
|
52452
|
+
type: "list",
|
|
52453
|
+
items: [
|
|
52454
|
+
"The user asks an open question about their documents, e.g. 'which vendors invoiced us twice in May?'",
|
|
52455
|
+
"The user wants a summary across documents.",
|
|
52456
|
+
"The answer needs reasoning over several fields, not a single known value."
|
|
52457
|
+
]
|
|
52458
|
+
},
|
|
52459
|
+
{
|
|
52460
|
+
type: "heading",
|
|
52461
|
+
level: 3,
|
|
52462
|
+
id: "ask-do-not-use",
|
|
52463
|
+
text: "When not to use"
|
|
52464
|
+
},
|
|
52465
|
+
{
|
|
52466
|
+
type: "list",
|
|
52467
|
+
items: [
|
|
52468
|
+
"Reading a known field's values \u2014 use `talonic_field_values` (free).",
|
|
52469
|
+
"Filtering documents by a known value \u2014 use `talonic_filter` (free).",
|
|
52470
|
+
"Locating which field holds a concept \u2014 use `talonic_find_data`."
|
|
52471
|
+
]
|
|
52472
|
+
},
|
|
52473
|
+
{
|
|
52474
|
+
type: "heading",
|
|
52475
|
+
level: 3,
|
|
52476
|
+
id: "ask-params",
|
|
52477
|
+
text: "Parameters"
|
|
52478
|
+
},
|
|
52479
|
+
{
|
|
52480
|
+
type: "param-table",
|
|
52481
|
+
params: [
|
|
52482
|
+
{
|
|
52483
|
+
name: "question",
|
|
52484
|
+
type: "string",
|
|
52485
|
+
required: true,
|
|
52486
|
+
description: "The question, in the user's words (max 4000 characters)."
|
|
52487
|
+
},
|
|
52488
|
+
{
|
|
52489
|
+
name: "scope",
|
|
52490
|
+
type: "object",
|
|
52491
|
+
description: "Restrict the question to a slice of the workspace \u2014 `document_ids[]`, `schema_id`, `pipeline_id`, `data_product_id`, `document_type`, `source_id`, `tags[]`, `ingested_after`, `ingested_before`. Present fields are ANDed."
|
|
52492
|
+
},
|
|
52493
|
+
{
|
|
52494
|
+
name: "conversation_id",
|
|
52495
|
+
type: "string",
|
|
52496
|
+
description: "Continue an existing conversation; the agent sees prior turns."
|
|
52497
|
+
},
|
|
52498
|
+
{
|
|
52499
|
+
name: "output_format",
|
|
52500
|
+
type: "object",
|
|
52501
|
+
description: "Shape the answer \u2014 `instruction` and/or `template`. Form only, never grounding."
|
|
52502
|
+
},
|
|
52503
|
+
{
|
|
52504
|
+
name: "wait_seconds",
|
|
52505
|
+
type: "number",
|
|
52506
|
+
default: "45",
|
|
52507
|
+
description: "Seconds to wait for the answer before returning `processing` (0\u201355, default 45)."
|
|
52508
|
+
}
|
|
52509
|
+
]
|
|
52510
|
+
},
|
|
52511
|
+
{
|
|
52512
|
+
type: "heading",
|
|
52513
|
+
level: 3,
|
|
52514
|
+
id: "ask-response",
|
|
52515
|
+
text: "Response shape"
|
|
52516
|
+
},
|
|
52517
|
+
{
|
|
52518
|
+
type: "param-table",
|
|
52519
|
+
title: "Fields",
|
|
52520
|
+
params: [
|
|
52521
|
+
{
|
|
52522
|
+
name: "ask_id",
|
|
52523
|
+
type: "string",
|
|
52524
|
+
description: "The ask's id \u2014 pass to `talonic_get_answer` if still processing."
|
|
52525
|
+
},
|
|
52526
|
+
{
|
|
52527
|
+
name: "status",
|
|
52528
|
+
type: "string",
|
|
52529
|
+
description: "`completed`, `processing` or `error`."
|
|
52530
|
+
},
|
|
52531
|
+
{
|
|
52532
|
+
name: "conversation_id",
|
|
52533
|
+
type: "string",
|
|
52534
|
+
description: "This ask's conversation id; pass it back to continue the thread."
|
|
52535
|
+
},
|
|
52536
|
+
{
|
|
52537
|
+
name: "answer",
|
|
52538
|
+
type: "string",
|
|
52539
|
+
description: "The answer, in markdown."
|
|
52540
|
+
},
|
|
52541
|
+
{
|
|
52542
|
+
name: "citations[].quote",
|
|
52543
|
+
type: "string",
|
|
52544
|
+
description: "The exact source span backing a claim."
|
|
52545
|
+
},
|
|
52546
|
+
{
|
|
52547
|
+
name: "citations[].document_id",
|
|
52548
|
+
type: "string",
|
|
52549
|
+
description: "The document the citation came from."
|
|
52550
|
+
},
|
|
52551
|
+
{
|
|
52552
|
+
name: "citations[].filename",
|
|
52553
|
+
type: "string",
|
|
52554
|
+
description: "That document's filename."
|
|
52555
|
+
},
|
|
52556
|
+
{
|
|
52557
|
+
name: "verification.verdict",
|
|
52558
|
+
type: "string",
|
|
52559
|
+
description: "Whether every load-bearing claim checked out against its citation."
|
|
52560
|
+
},
|
|
52561
|
+
{
|
|
52562
|
+
name: "usage.credits_charged",
|
|
52563
|
+
type: "number",
|
|
52564
|
+
description: "Credits consumed by this ask."
|
|
52565
|
+
},
|
|
52566
|
+
{
|
|
52567
|
+
name: "waited_ms",
|
|
52568
|
+
type: "number",
|
|
52569
|
+
description: "How long the call actually waited before returning."
|
|
52570
|
+
}
|
|
52571
|
+
]
|
|
52572
|
+
}
|
|
52573
|
+
],
|
|
52574
|
+
related: [
|
|
52575
|
+
{
|
|
52576
|
+
label: "talonic_get_answer",
|
|
52577
|
+
slug: "mcp-talonic-get-answer"
|
|
52578
|
+
},
|
|
52579
|
+
{
|
|
52580
|
+
label: "talonic_find_data",
|
|
52581
|
+
slug: "mcp-talonic-find-data"
|
|
52582
|
+
},
|
|
52583
|
+
{
|
|
52584
|
+
label: "talonic_field_values",
|
|
52585
|
+
slug: "mcp-talonic-field-values"
|
|
52586
|
+
}
|
|
52587
|
+
],
|
|
52588
|
+
faq: [
|
|
52589
|
+
{
|
|
52590
|
+
question: "What if the answer is not ready in time?",
|
|
52591
|
+
answer: "The tool returns status `processing` with the `ask_id`; call `talonic_get_answer` with it a few seconds later. Passing `conversation_id` lets follow-up questions see earlier turns."
|
|
52592
|
+
}
|
|
52593
|
+
],
|
|
52594
|
+
mentions: [
|
|
52595
|
+
"ask",
|
|
52596
|
+
"question answering",
|
|
52597
|
+
"RAG",
|
|
52598
|
+
"cited answer",
|
|
52599
|
+
"verification",
|
|
52600
|
+
"conversation"
|
|
52601
|
+
]
|
|
52602
|
+
},
|
|
52603
|
+
{
|
|
52604
|
+
slug: "mcp-talonic-get-answer",
|
|
52605
|
+
parentSlug: "mcp-tools",
|
|
52606
|
+
title: "talonic_get_answer",
|
|
52607
|
+
seoTitle: "talonic_get_answer \u2014 Poll an Ask for Its Answer",
|
|
52608
|
+
description: "MCP tool that polls an ask started by talonic_ask for its completed, cited answer.",
|
|
52609
|
+
content: [
|
|
52610
|
+
{
|
|
52611
|
+
type: "paragraph",
|
|
52612
|
+
text: "Poll an ask started by `talonic_ask` that was still `processing` when its wait ended. Returns the same cited, verified answer envelope once the ask completes."
|
|
52613
|
+
},
|
|
52614
|
+
{
|
|
52615
|
+
type: "heading",
|
|
52616
|
+
level: 3,
|
|
52617
|
+
id: "get-answer-use-when",
|
|
52618
|
+
text: "When to use"
|
|
52619
|
+
},
|
|
52620
|
+
{
|
|
52621
|
+
type: "list",
|
|
52622
|
+
items: [
|
|
52623
|
+
"`talonic_ask` returned `status: 'processing'` with an `ask_id` \u2014 poll every few seconds until `completed` or `error`."
|
|
52624
|
+
]
|
|
52625
|
+
},
|
|
52626
|
+
{
|
|
52627
|
+
type: "heading",
|
|
52628
|
+
level: 3,
|
|
52629
|
+
id: "get-answer-do-not-use",
|
|
52630
|
+
text: "When not to use"
|
|
52631
|
+
},
|
|
52632
|
+
{
|
|
52633
|
+
type: "list",
|
|
52634
|
+
items: [
|
|
52635
|
+
"Asking a new question \u2014 use `talonic_ask`."
|
|
52636
|
+
]
|
|
52637
|
+
},
|
|
52638
|
+
{
|
|
52639
|
+
type: "heading",
|
|
52640
|
+
level: 3,
|
|
52641
|
+
id: "get-answer-params",
|
|
52642
|
+
text: "Parameters"
|
|
52643
|
+
},
|
|
52644
|
+
{
|
|
52645
|
+
type: "param-table",
|
|
52646
|
+
params: [
|
|
52647
|
+
{
|
|
52648
|
+
name: "ask_id",
|
|
52649
|
+
type: "string",
|
|
52650
|
+
required: true,
|
|
52651
|
+
description: "The ask id, from `talonic_ask`."
|
|
52652
|
+
}
|
|
52653
|
+
]
|
|
52654
|
+
},
|
|
52655
|
+
{
|
|
52656
|
+
type: "heading",
|
|
52657
|
+
level: 3,
|
|
52658
|
+
id: "get-answer-response",
|
|
52659
|
+
text: "Response shape"
|
|
52660
|
+
},
|
|
52661
|
+
{
|
|
52662
|
+
type: "param-table",
|
|
52663
|
+
title: "Fields",
|
|
52664
|
+
params: [
|
|
52665
|
+
{
|
|
52666
|
+
name: "status",
|
|
52667
|
+
type: "string",
|
|
52668
|
+
description: "`completed`, `processing` or `error`."
|
|
52669
|
+
},
|
|
52670
|
+
{
|
|
52671
|
+
name: "answer",
|
|
52672
|
+
type: "string",
|
|
52673
|
+
description: "The answer, in markdown, once completed."
|
|
52674
|
+
},
|
|
52675
|
+
{
|
|
52676
|
+
name: "citations[]",
|
|
52677
|
+
type: "array",
|
|
52678
|
+
description: "Source spans backing the answer, once completed."
|
|
52679
|
+
},
|
|
52680
|
+
{
|
|
52681
|
+
name: "verification",
|
|
52682
|
+
type: "object",
|
|
52683
|
+
description: "Verdict on whether claims checked out, once completed."
|
|
52684
|
+
},
|
|
52685
|
+
{
|
|
52686
|
+
name: "usage",
|
|
52687
|
+
type: "object",
|
|
52688
|
+
description: "Credits and tokens consumed."
|
|
52689
|
+
},
|
|
52690
|
+
{
|
|
52691
|
+
name: "poll_hint",
|
|
52692
|
+
type: "string",
|
|
52693
|
+
description: "Present only while `status` is `processing`; a hint to poll again shortly."
|
|
52694
|
+
}
|
|
52695
|
+
]
|
|
52696
|
+
}
|
|
52697
|
+
],
|
|
52698
|
+
related: [
|
|
52699
|
+
{
|
|
52700
|
+
label: "talonic_ask",
|
|
52701
|
+
slug: "mcp-talonic-ask"
|
|
52702
|
+
}
|
|
52703
|
+
],
|
|
52704
|
+
faq: [
|
|
52705
|
+
{
|
|
52706
|
+
question: "How often should I poll?",
|
|
52707
|
+
answer: "Every 2\u20135 seconds; most asks complete within a minute."
|
|
52708
|
+
}
|
|
52709
|
+
],
|
|
52710
|
+
mentions: [
|
|
52711
|
+
"get answer",
|
|
52712
|
+
"poll ask",
|
|
52713
|
+
"answer status"
|
|
52714
|
+
]
|
|
52715
|
+
},
|
|
52716
|
+
{
|
|
52717
|
+
slug: "mcp-talonic-list-decision-tasks",
|
|
52718
|
+
parentSlug: "mcp-tools",
|
|
52719
|
+
title: "talonic_list_decision_tasks",
|
|
52720
|
+
seoTitle: "talonic_list_decision_tasks \u2014 External-Mode App Inbox",
|
|
52721
|
+
description: "MCP tool that lists one External-mode app's decision tasks \u2014 runs parked for an outside agent to decide \u2014 with status filters and cursor pagination, metadata only.",
|
|
52722
|
+
content: [
|
|
52723
|
+
{
|
|
52724
|
+
type: "paragraph",
|
|
52725
|
+
text: "List the decision tasks of one Talonic App, newest first. A decision task is how an **External-mode** app hands a run's decision to an agent outside the platform: the run assembles its input package, freezes it, enters `awaiting_decision`, and offers a task. This tool is the polling alternative to the `app.decision_task.offered` webhook and the entry point of the decision workflow."
|
|
52726
|
+
},
|
|
52727
|
+
{
|
|
52728
|
+
type: "paragraph",
|
|
52729
|
+
text: "Each row in `data[]` carries identifiers (`id`, `run_id`, `app_id`), the lifecycle `status`, the current `execution_epoch`, the lease settings (`lease_seconds`, `claimed_by`, `claimed_at`, `lease_expires_at`, `heartbeat_at`), the hard `sla_deadline_at`, and `submitted_at` / `created_at`. The input package is never inlined here: it is read page by page after a claim, and every page read is journaled onto the run."
|
|
52730
|
+
},
|
|
52731
|
+
{
|
|
52732
|
+
type: "callout",
|
|
52733
|
+
text: 'Every one of these tools runs at the platform\'s `decide` tier. A `tlnc_` workspace API key needs a `decide` grant on the app. An OAuth connector session (Claude.ai) needs the `apps:decide` scope \u2014 consented in person when the connector is added, never pre-consented \u2014 plus a live workspace role of `senior_member` or above; the claim is then recorded as the client acting for that person ("Claude for Jane Doe"). Web sessions are refused. A 403 names what is missing (`decide_grant_required`, `insufficient_scope`, `insufficient_tier`); the agent should report it rather than retry.'
|
|
52734
|
+
},
|
|
52735
|
+
{
|
|
52736
|
+
type: "heading",
|
|
52737
|
+
level: 3,
|
|
52738
|
+
id: "list-decision-tasks-workflow",
|
|
52739
|
+
text: "The decision workflow"
|
|
52740
|
+
},
|
|
52741
|
+
{
|
|
52742
|
+
type: "list",
|
|
52743
|
+
ordered: true,
|
|
52744
|
+
items: [
|
|
52745
|
+
'Call `talonic_list_decision_tasks` with the `app_id` and `status: "available"`.',
|
|
52746
|
+
"Claim a task with `talonic_claim_decision_task`; the claim returns the output contract, precedents and the package descriptor.",
|
|
52747
|
+
"Read the frozen input package with `talonic_read_decision_package`, page by page from `package.first_cursor`.",
|
|
52748
|
+
"Heartbeat with `talonic_heartbeat_decision_task` while deciding, then finish with `talonic_submit_decision_task` \u2014 or `talonic_release_decision_task` / `talonic_fail_decision_task`."
|
|
52749
|
+
]
|
|
52750
|
+
},
|
|
52751
|
+
{
|
|
52752
|
+
type: "param-table",
|
|
52753
|
+
params: [
|
|
52754
|
+
{
|
|
52755
|
+
name: "app_id",
|
|
52756
|
+
type: "UUID",
|
|
52757
|
+
required: true,
|
|
52758
|
+
description: "The External-mode app whose inbox to read."
|
|
52759
|
+
},
|
|
52760
|
+
{
|
|
52761
|
+
name: "status",
|
|
52762
|
+
type: "available | claimed | submitted | released | failed | timed_out | cancelled",
|
|
52763
|
+
description: "Optional lifecycle-state filter. Start with `available` when looking for work."
|
|
52764
|
+
},
|
|
52765
|
+
{
|
|
52766
|
+
name: "limit",
|
|
52767
|
+
type: "integer",
|
|
52768
|
+
description: "Page size from 1 to 100. Defaults to 50."
|
|
52769
|
+
},
|
|
52770
|
+
{
|
|
52771
|
+
name: "cursor",
|
|
52772
|
+
type: "string",
|
|
52773
|
+
description: "Opaque `pagination.next_cursor` from the previous page."
|
|
52774
|
+
}
|
|
52775
|
+
]
|
|
52776
|
+
},
|
|
52777
|
+
{
|
|
52778
|
+
type: "code",
|
|
52779
|
+
language: "json",
|
|
52780
|
+
title: "Tool input and response",
|
|
52781
|
+
code: '// talonic_list_decision_tasks({ "app_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa", "status": "available", "limit": 1 })\n{\n "data": [\n {\n "id": "11111111-1111-4111-8111-111111111111",\n "customer_id": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",\n "run_id": "22222222-2222-4222-8222-222222222222",\n "app_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",\n "status": "available",\n "execution_epoch": 0,\n "input_package_ref": "run",\n "lease_seconds": 120,\n "claimed_by": null,\n "claimed_at": null,\n "lease_expires_at": null,\n "heartbeat_at": null,\n "sla_deadline_at": "2026-09-22T10:10:00.000Z",\n "submitted_at": null,\n "created_at": "2026-09-22T10:00:00.000Z",\n "updated_at": "2026-09-22T10:00:00.000Z"\n }\n ],\n "pagination": { "has_more": false, "next_cursor": null }\n}'
|
|
52782
|
+
},
|
|
52783
|
+
{
|
|
52784
|
+
type: "paragraph",
|
|
52785
|
+
text: "`sla_deadline_at` is the decision SLA (default 10 minutes, configurable per app): if no valid decision arrives by then, the platform applies the app's declared fallback policy \u2014 a resident rule set decides, the run parks as a system-raised review, or the run fails. Filtering by `claimed` or `timed_out` is useful for supervision; a task whose lease expired is eligible for reclaiming."
|
|
52786
|
+
}
|
|
52787
|
+
],
|
|
52788
|
+
related: [
|
|
52789
|
+
{
|
|
52790
|
+
label: "talonic_claim_decision_task",
|
|
52791
|
+
slug: "mcp-talonic-claim-decision-task"
|
|
52792
|
+
},
|
|
52793
|
+
{
|
|
52794
|
+
label: "talonic_read_decision_package",
|
|
52795
|
+
slug: "mcp-talonic-read-decision-package"
|
|
52796
|
+
},
|
|
52797
|
+
{
|
|
52798
|
+
label: "talonic_submit_decision_task",
|
|
52799
|
+
slug: "mcp-talonic-submit-decision-task"
|
|
52800
|
+
},
|
|
52801
|
+
{
|
|
52802
|
+
label: "talonic_list_agent_tasks",
|
|
52803
|
+
slug: "mcp-talonic-list-agent-tasks"
|
|
52804
|
+
}
|
|
52805
|
+
],
|
|
52806
|
+
faq: [
|
|
52807
|
+
{
|
|
52808
|
+
question: "How is a decision task different from an Agent task?",
|
|
52809
|
+
answer: "An Agent task parks one document at a pipeline stage and asks for declared output fields. A decision task parks one App run and asks for the run's decision: the outcome is validated against the app's output contract, must cite evidence from the frozen input package, and is written to the app's ledger with decided_by.type external_agent. The two protocols share the lease, heartbeat and execution-epoch mechanics."
|
|
52810
|
+
},
|
|
52811
|
+
{
|
|
52812
|
+
question: "Why does the tool return 403 insufficient_scope, or carry talonic/can_invoke: false in its _meta?",
|
|
52813
|
+
answer: "The decide tier is an independent grant: operate does not imply it. A tlnc_ key needs a decide grant on that app, granted by a workspace owner. An OAuth connector session needs the apps:decide scope and a senior_member role or above, read live on every call. If the connector was added before the scope existed, its token lacks it: the hosted server then lists the seven tools flagged with _meta.talonic/can_invoke: false (descriptions stay unchanged), and the fix is to remove and re-add the Talonic connector so the consent screen offers 'Claim and decide tasks'."
|
|
52814
|
+
},
|
|
52815
|
+
{
|
|
52816
|
+
question: "What do the decision task statuses mean?",
|
|
52817
|
+
answer: "available means no one holds the task; claimed means an agent holds a live lease; submitted means a decision was accepted and the run resumed; released means the claimant gave it back (it returns to available); failed means the claimant declared it undecidable and the fallback applied; timed_out means the SLA passed; cancelled means the run was cancelled or the task withdrawn."
|
|
52818
|
+
}
|
|
52819
|
+
],
|
|
52820
|
+
mentions: [
|
|
52821
|
+
"decision task",
|
|
52822
|
+
"External mode",
|
|
52823
|
+
"Talonic Apps",
|
|
52824
|
+
"decide grant",
|
|
52825
|
+
"cursor pagination"
|
|
52826
|
+
]
|
|
52827
|
+
},
|
|
52828
|
+
{
|
|
52829
|
+
slug: "mcp-talonic-claim-decision-task",
|
|
52830
|
+
parentSlug: "mcp-tools",
|
|
52831
|
+
title: "talonic_claim_decision_task",
|
|
52832
|
+
seoTitle: "talonic_claim_decision_task \u2014 Lease a Run's Decision",
|
|
52833
|
+
description: "MCP tool that claims an External-mode decision task and returns the decision bundle: task metadata with a fresh execution epoch, the output contract, precedents and the package descriptor.",
|
|
52834
|
+
content: [
|
|
52835
|
+
{
|
|
52836
|
+
type: "paragraph",
|
|
52837
|
+
text: "Take the exclusive lease on a decision task. A successful claim bumps `execution_epoch`, sets `lease_expires_at`, and returns everything needed to decide except the records themselves: the `task` metadata, the `output_contract` the decision must satisfy, the `precedents` reference block (resolved reviews on similar runs), and a `package` descriptor."
|
|
52838
|
+
},
|
|
52839
|
+
{
|
|
52840
|
+
type: "paragraph",
|
|
52841
|
+
text: "There is no separate fetch step in this protocol: claiming **is** the payload disclosure, and it is journaled onto the run. The claim is an exclusive lease with a default TTL of 120 seconds (configurable per app), clamped by the task's SLA deadline. A task whose lease lapsed can be reclaimed; the epoch moves on and the previous claimant's submit is rejected."
|
|
52842
|
+
},
|
|
52843
|
+
{
|
|
52844
|
+
type: "param-table",
|
|
52845
|
+
params: [
|
|
52846
|
+
{
|
|
52847
|
+
name: "task_id",
|
|
52848
|
+
type: "UUID",
|
|
52849
|
+
required: true,
|
|
52850
|
+
description: "Task ID from `talonic_list_decision_tasks` or the offered webhook."
|
|
52851
|
+
}
|
|
52852
|
+
]
|
|
52853
|
+
},
|
|
52854
|
+
{
|
|
52855
|
+
type: "code",
|
|
52856
|
+
language: "json",
|
|
52857
|
+
title: "Claim response",
|
|
52858
|
+
code: '// talonic_claim_decision_task({ "task_id": "11111111-1111-4111-8111-111111111111" })\n{\n "task": {\n "id": "11111111-1111-4111-8111-111111111111",\n "run_id": "22222222-2222-4222-8222-222222222222",\n "app_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",\n "status": "claimed",\n "execution_epoch": 1,\n "lease_seconds": 120,\n "claimed_by": "kkkkkkkk-kkkk-4kkk-8kkk-kkkkkkkkkkkk",\n "lease_expires_at": "2026-09-22T10:02:00.000Z",\n "sla_deadline_at": "2026-09-22T10:10:00.000Z",\n "...": "remaining metadata as in the list"\n },\n "output_contract": {\n "type": "object",\n "required": ["approve"],\n "properties": {\n "approve": { "type": "boolean" },\n "hold_reason": { "type": "string" }\n }\n },\n "precedents": [],\n "package": {\n "package_kind": "records",\n "record_count": 3,\n "page_size": 500,\n "first_cursor": "eyJvZmZzZXQiOjB9",\n "documents": [\n {\n "document_id": "dddddddd-dddd-4ddd-8ddd-dddddddddddd",\n "filename": "invoice-4711.pdf",\n "mime_type": "application/pdf",\n "file_url": "/v1/documents/dddddddd-dddd-4ddd-8ddd-dddddddddddd/file"\n }\n ]\n }\n}'
|
|
52859
|
+
},
|
|
52860
|
+
{
|
|
52861
|
+
type: "paragraph",
|
|
52862
|
+
text: "`output_contract` arrives in the manifest's own convention: a plain contract is the bare JSON Schema the `outcome` validates against; a `verdict_matrix` or `record_set` contract is wrapped with its `kind` so the agent knows which envelope to submit. `package.first_cursor` is `null` when the package has no records. `package_kind` is `mining_round` for a rule-mining round driven from outside, whose package is one record holding the round's prompts and tool listing."
|
|
52863
|
+
},
|
|
52864
|
+
{
|
|
52865
|
+
type: "callout",
|
|
52866
|
+
text: "Save `execution_epoch` from the claim. Heartbeat, submit, release and fail all require it; a stale epoch is HTTP 409 and never enters the ledger."
|
|
52867
|
+
}
|
|
52868
|
+
],
|
|
52869
|
+
related: [
|
|
52870
|
+
{
|
|
52871
|
+
label: "talonic_read_decision_package",
|
|
52872
|
+
slug: "mcp-talonic-read-decision-package"
|
|
52873
|
+
},
|
|
52874
|
+
{
|
|
52875
|
+
label: "talonic_heartbeat_decision_task",
|
|
52876
|
+
slug: "mcp-talonic-heartbeat-decision-task"
|
|
52877
|
+
},
|
|
52878
|
+
{
|
|
52879
|
+
label: "talonic_submit_decision_task",
|
|
52880
|
+
slug: "mcp-talonic-submit-decision-task"
|
|
52881
|
+
}
|
|
52882
|
+
],
|
|
52883
|
+
faq: [
|
|
52884
|
+
{
|
|
52885
|
+
question: "Can I inspect a decision task before claiming it?",
|
|
52886
|
+
answer: "Only its metadata, through the list. The platform discloses the output contract, precedents and package only to the claimant, and journals that disclosure. Claim, read, and release it if it is not yours to decide."
|
|
52887
|
+
},
|
|
52888
|
+
{
|
|
52889
|
+
question: "What happens when two agents claim the same task?",
|
|
52890
|
+
answer: "The second claim returns HTTP 409 while the first lease is live. Once the lease expires without a heartbeat, the task can be reclaimed; the epoch is bumped and any submit carrying the old epoch is rejected."
|
|
52891
|
+
}
|
|
52892
|
+
],
|
|
52893
|
+
mentions: [
|
|
52894
|
+
"claim",
|
|
52895
|
+
"exclusive lease",
|
|
52896
|
+
"execution epoch",
|
|
52897
|
+
"output contract",
|
|
52898
|
+
"precedents"
|
|
52899
|
+
]
|
|
52900
|
+
},
|
|
52901
|
+
{
|
|
52902
|
+
slug: "mcp-talonic-read-decision-package",
|
|
52903
|
+
parentSlug: "mcp-tools",
|
|
52904
|
+
title: "talonic_read_decision_package",
|
|
52905
|
+
seoTitle: "talonic_read_decision_package \u2014 Read a Frozen Input Package",
|
|
52906
|
+
description: "MCP tool that reads one page of a claimed decision task's frozen input package \u2014 the records and provenance locators the decision must be made from \u2014 with opaque cursor pagination.",
|
|
52907
|
+
content: [
|
|
52908
|
+
{
|
|
52909
|
+
type: "paragraph",
|
|
52910
|
+
text: "Read the run's frozen input package, one page at a time. The package was assembled and enriched when the run started and is served exactly as persisted; nothing is added at read time, so every claimant of the same task sees the same bytes. Only the client holding the live claim may read it (anyone else gets HTTP 409), and each page read journals a `package_read` event onto the run."
|
|
52911
|
+
},
|
|
52912
|
+
{
|
|
52913
|
+
type: "paragraph",
|
|
52914
|
+
text: "Each record in `data[]` is `{ binding, index, record }` \u2014 the input binding alias, the record's position within it, and the record with its cells and their provenance locators. The first page (no `cursor`) additionally carries `documents`, the source documents behind the package's cells, so a surface can offer the originals without walking every page."
|
|
52915
|
+
},
|
|
52916
|
+
{
|
|
52917
|
+
type: "param-table",
|
|
52918
|
+
params: [
|
|
52919
|
+
{
|
|
52920
|
+
name: "task_id",
|
|
52921
|
+
type: "UUID",
|
|
52922
|
+
required: true,
|
|
52923
|
+
description: "Claimed task ID."
|
|
52924
|
+
},
|
|
52925
|
+
{
|
|
52926
|
+
name: "cursor",
|
|
52927
|
+
type: "string",
|
|
52928
|
+
description: "Opaque package cursor: `package.first_cursor` from the claim, then `pagination.next_cursor`. Omit for the first page."
|
|
52929
|
+
},
|
|
52930
|
+
{
|
|
52931
|
+
name: "limit",
|
|
52932
|
+
type: "integer",
|
|
52933
|
+
description: "Records per page, 1 to 2,000. Defaults to the platform page size reported as `package.page_size` on the claim (500 unless the deployment configures otherwise)."
|
|
52934
|
+
}
|
|
52935
|
+
]
|
|
52936
|
+
},
|
|
52937
|
+
{
|
|
52938
|
+
type: "code",
|
|
52939
|
+
language: "json",
|
|
52940
|
+
title: "First page",
|
|
52941
|
+
code: '// talonic_read_decision_package({ "task_id": "11111111-1111-4111-8111-111111111111", "limit": 2 })\n{\n "task_id": "11111111-1111-4111-8111-111111111111",\n "run_id": "22222222-2222-4222-8222-222222222222",\n "record_count": 3,\n "page_size": 2,\n "documents": [\n {\n "document_id": "dddddddd-dddd-4ddd-8ddd-dddddddddddd",\n "filename": "invoice-4711.pdf",\n "mime_type": "application/pdf",\n "file_url": "/v1/documents/dddddddd-dddd-4ddd-8ddd-dddddddddddd/file"\n }\n ],\n "data": [\n {\n "binding": "invoice",\n "index": 0,\n "record": {\n "invoice_total": {\n "value": 1250.0,\n "locator": "dp:pppppppp-pppp-4ppp-8ppp-pppppppppppp:rrrrrrrr-rrrr-4rrr-8rrr-rrrrrrrrrrrr:invoice_total",\n "confidence": 0.97,\n "document_id": "dddddddd-dddd-4ddd-8ddd-dddddddddddd"\n },\n "supplier_name": {\n "value": "Acme GmbH",\n "locator": "dp:pppppppp-pppp-4ppp-8ppp-pppppppppppp:rrrrrrrr-rrrr-4rrr-8rrr-rrrrrrrrrrrr:supplier_name",\n "confidence": 0.99,\n "document_id": "dddddddd-dddd-4ddd-8ddd-dddddddddddd"\n }\n }\n }\n ],\n "pagination": { "has_more": true, "next_cursor": "eyJvZmZzZXQiOjJ9" }\n}'
|
|
52942
|
+
},
|
|
52943
|
+
{
|
|
52944
|
+
type: "paragraph",
|
|
52945
|
+
text: "Keep the locators. The submit's `evidence` block must cite the package references the decision relied on, and the platform checks each one against this package \u2014 copy them verbatim rather than reconstructing them. Walk pages while `pagination.has_more` is true; the cursor is an offset into the frozen record order, so a walk is stable even across a release and reclaim."
|
|
52946
|
+
},
|
|
52947
|
+
{
|
|
52948
|
+
type: "callout",
|
|
52949
|
+
text: "For a rule-mining round driven from outside (`package_kind: mining_round`), the package is a single record `{ system_prompt, first_turn, tools }` \u2014 what the hosted model would have seen. The round's tools are called over the platform's REST routes; this MCP surface does not wrap them yet."
|
|
52950
|
+
}
|
|
52951
|
+
],
|
|
52952
|
+
related: [
|
|
52953
|
+
{
|
|
52954
|
+
label: "talonic_claim_decision_task",
|
|
52955
|
+
slug: "mcp-talonic-claim-decision-task"
|
|
52956
|
+
},
|
|
52957
|
+
{
|
|
52958
|
+
label: "talonic_submit_decision_task",
|
|
52959
|
+
slug: "mcp-talonic-submit-decision-task"
|
|
52960
|
+
}
|
|
52961
|
+
],
|
|
52962
|
+
faq: [
|
|
52963
|
+
{
|
|
52964
|
+
question: "Why does reading the package return HTTP 409?",
|
|
52965
|
+
answer: "The package is readable by the current claimant only. Either the task was never claimed by this credential, or the lease lapsed and another agent reclaimed it. Claim (or reclaim) the task first, then read."
|
|
52966
|
+
},
|
|
52967
|
+
{
|
|
52968
|
+
question: "Is reading the package a side effect?",
|
|
52969
|
+
answer: "It changes nothing in the task or run, but each page read is journaled as package_read with the offset and count, so the run's ledger shows what the deciding agent actually looked at."
|
|
52970
|
+
}
|
|
52971
|
+
],
|
|
52972
|
+
mentions: [
|
|
52973
|
+
"input package",
|
|
52974
|
+
"provenance locator",
|
|
52975
|
+
"package_read",
|
|
52976
|
+
"evidence",
|
|
52977
|
+
"cursor pagination"
|
|
52978
|
+
]
|
|
52979
|
+
},
|
|
52980
|
+
{
|
|
52981
|
+
slug: "mcp-talonic-heartbeat-decision-task",
|
|
52982
|
+
parentSlug: "mcp-tools",
|
|
52983
|
+
title: "talonic_heartbeat_decision_task",
|
|
52984
|
+
seoTitle: "talonic_heartbeat_decision_task \u2014 Keep a Decision Lease",
|
|
52985
|
+
description: "MCP tool that extends the lease on a claimed decision task using the execution epoch from the claim \u2014 never past the task's SLA deadline.",
|
|
52986
|
+
content: [
|
|
52987
|
+
{
|
|
52988
|
+
type: "paragraph",
|
|
52989
|
+
text: "Extend the lease on a claimed decision task. The lease is short by design (120 seconds by default) so an abandoned claim frees quickly; a decision that takes longer keeps its claim alive by heartbeating before `lease_expires_at`. The lease never extends past `sla_deadline_at` \u2014 that is the hard decision deadline, after which the app's fallback policy applies."
|
|
52990
|
+
},
|
|
52991
|
+
{
|
|
52992
|
+
type: "param-table",
|
|
52993
|
+
params: [
|
|
52994
|
+
{
|
|
52995
|
+
name: "task_id",
|
|
52996
|
+
type: "UUID",
|
|
52997
|
+
required: true,
|
|
52998
|
+
description: "Claimed task ID."
|
|
52999
|
+
},
|
|
53000
|
+
{
|
|
53001
|
+
name: "execution_epoch",
|
|
53002
|
+
type: "integer",
|
|
53003
|
+
required: true,
|
|
53004
|
+
description: "Exact epoch from the current claim."
|
|
53005
|
+
}
|
|
53006
|
+
]
|
|
53007
|
+
},
|
|
53008
|
+
{
|
|
53009
|
+
type: "code",
|
|
53010
|
+
language: "json",
|
|
53011
|
+
title: "Heartbeat response",
|
|
53012
|
+
code: '// talonic_heartbeat_decision_task({ "task_id": "11111111-1111-4111-8111-111111111111", "execution_epoch": 1 })\n{\n "id": "11111111-1111-4111-8111-111111111111",\n "status": "claimed",\n "execution_epoch": 1,\n "heartbeat_at": "2026-09-22T10:01:30.000Z",\n "lease_expires_at": "2026-09-22T10:03:30.000Z",\n "sla_deadline_at": "2026-09-22T10:10:00.000Z",\n "...": "remaining metadata as in the list"\n}'
|
|
53013
|
+
},
|
|
53014
|
+
{
|
|
53015
|
+
type: "paragraph",
|
|
53016
|
+
text: "Treat a failed heartbeat as a hard stop. HTTP 409 means the epoch is stale \u2014 the lease lapsed and the task was reclaimed, released, cancelled or timed out \u2014 so any decision you were forming belongs to a claim that no longer exists and will be rejected on submit. Discard it and return to `talonic_list_decision_tasks`."
|
|
53017
|
+
}
|
|
53018
|
+
],
|
|
53019
|
+
related: [
|
|
53020
|
+
{
|
|
53021
|
+
label: "talonic_claim_decision_task",
|
|
53022
|
+
slug: "mcp-talonic-claim-decision-task"
|
|
53023
|
+
},
|
|
53024
|
+
{
|
|
53025
|
+
label: "talonic_submit_decision_task",
|
|
53026
|
+
slug: "mcp-talonic-submit-decision-task"
|
|
53027
|
+
},
|
|
53028
|
+
{
|
|
53029
|
+
label: "talonic_release_decision_task",
|
|
53030
|
+
slug: "mcp-talonic-release-decision-task"
|
|
53031
|
+
}
|
|
53032
|
+
],
|
|
53033
|
+
faq: [
|
|
53034
|
+
{
|
|
53035
|
+
question: "How often should an agent heartbeat a decision task?",
|
|
53036
|
+
answer: "Comfortably inside the lease: with the default 120-second lease, roughly every 60 seconds while the decision is still being worked on. Stop once the task is submitted, released or failed."
|
|
53037
|
+
},
|
|
53038
|
+
{
|
|
53039
|
+
question: "Can a heartbeat extend past the SLA deadline?",
|
|
53040
|
+
answer: "No. The lease is clamped to sla_deadline_at. If the decision cannot be made before then, submit what you have with an honest confidence, release the task, or fail it with a reason so the fallback policy runs deliberately rather than by timeout."
|
|
53041
|
+
}
|
|
53042
|
+
],
|
|
53043
|
+
mentions: [
|
|
53044
|
+
"heartbeat",
|
|
53045
|
+
"lease expiry",
|
|
53046
|
+
"SLA deadline",
|
|
53047
|
+
"execution epoch"
|
|
53048
|
+
]
|
|
53049
|
+
},
|
|
53050
|
+
{
|
|
53051
|
+
slug: "mcp-talonic-submit-decision-task",
|
|
53052
|
+
parentSlug: "mcp-tools",
|
|
53053
|
+
title: "talonic_submit_decision_task",
|
|
53054
|
+
seoTitle: "talonic_submit_decision_task \u2014 Submit an Evidenced Decision",
|
|
53055
|
+
description: "MCP tool that submits the decision for a claimed External-mode task \u2014 outcome validated against the output contract, evidence checked against the frozen input package, a mandatory rationale \u2014 and resumes the run.",
|
|
53056
|
+
content: [
|
|
53057
|
+
{
|
|
53058
|
+
type: "paragraph",
|
|
53059
|
+
text: "Return the decision for a claimed task. The platform verifies three things transactionally before writing anything: the `outcome` against the task's `output_contract`, every `evidence` locator against the run's frozen input package, and the presence of a `rationale`. On success the task becomes `submitted`, the run resumes through the app's threshold checks and action layer, and the sealed record names `decided_by.type: external_agent`. Talonic writes the ledger; the agent never does."
|
|
53060
|
+
},
|
|
53061
|
+
{
|
|
53062
|
+
type: "param-table",
|
|
53063
|
+
params: [
|
|
53064
|
+
{
|
|
53065
|
+
name: "task_id",
|
|
53066
|
+
type: "UUID",
|
|
53067
|
+
required: true,
|
|
53068
|
+
description: "Claimed task ID."
|
|
53069
|
+
},
|
|
53070
|
+
{
|
|
53071
|
+
name: "execution_epoch",
|
|
53072
|
+
type: "integer",
|
|
53073
|
+
required: true,
|
|
53074
|
+
description: "Exact epoch from the current claim."
|
|
53075
|
+
},
|
|
53076
|
+
{
|
|
53077
|
+
name: "outcome",
|
|
53078
|
+
type: "object",
|
|
53079
|
+
required: true,
|
|
53080
|
+
description: "The decision. For a plain contract, the object its JSON Schema validates. For a `verdict_matrix` contract, `{ subjects: [{ subject_key, rule_outcomes, auto?, detail? }] }`. For a `record_set` contract, its fields-and-rows envelope."
|
|
53081
|
+
},
|
|
53082
|
+
{
|
|
53083
|
+
name: "evidence",
|
|
53084
|
+
type: "string[]",
|
|
53085
|
+
required: true,
|
|
53086
|
+
description: "Provenance locators the decision relied on, copied verbatim from the package (or `db:` / `ref:` locators the app holds a read grant on). Up to 10,000 entries of at most 512 characters. An empty array is accepted only when the app allows unevidenced decisions."
|
|
53087
|
+
},
|
|
53088
|
+
{
|
|
53089
|
+
name: "rationale",
|
|
53090
|
+
type: "string",
|
|
53091
|
+
required: true,
|
|
53092
|
+
description: "A short summary of why \u2014 never private chain-of-thought. At most 4,000 characters."
|
|
53093
|
+
},
|
|
53094
|
+
{
|
|
53095
|
+
name: "confidence",
|
|
53096
|
+
type: "number",
|
|
53097
|
+
description: "Optional confidence from 0 to 1; the app's confidence floor may route a low value to review."
|
|
53098
|
+
},
|
|
53099
|
+
{
|
|
53100
|
+
name: "service_version",
|
|
53101
|
+
type: "string",
|
|
53102
|
+
description: "Optional build identifier of the deciding service (at most 64 characters); recorded as `decided_by.label`."
|
|
53103
|
+
}
|
|
53104
|
+
]
|
|
53105
|
+
},
|
|
53106
|
+
{
|
|
53107
|
+
type: "code",
|
|
53108
|
+
language: "json",
|
|
53109
|
+
title: "Submit a decision",
|
|
53110
|
+
code: '// talonic_submit_decision_task({\n// "task_id": "11111111-1111-4111-8111-111111111111",\n// "execution_epoch": 1,\n// "outcome": { "approve": true },\n// "evidence": [\n// "dp:pppppppp-pppp-4ppp-8ppp-pppppppppppp:rrrrrrrr-rrrr-4rrr-8rrr-rrrrrrrrrrrr:invoice_total",\n// "dp:pppppppp-pppp-4ppp-8ppp-pppppppppppp:rrrrrrrr-rrrr-4rrr-8rrr-rrrrrrrrrrrr:supplier_name"\n// ],\n// "rationale": "Total matches the purchase order and the supplier is on the approved list.",\n// "confidence": 0.93\n// })\n{\n "id": "11111111-1111-4111-8111-111111111111",\n "run_id": "22222222-2222-4222-8222-222222222222",\n "status": "submitted",\n "execution_epoch": 1,\n "submitted_at": "2026-09-22T10:02:10.000Z",\n "...": "remaining metadata as in the list"\n}'
|
|
53111
|
+
},
|
|
53112
|
+
{
|
|
53113
|
+
type: "paragraph",
|
|
53114
|
+
text: "A refused submission is HTTP 422 with the reason (`Decision violates the output contract: \u2026`, `An evidence block is required \u2026`, a locator outside the package, or a malformed matrix envelope), is journaled as `rejected`, and changes nothing: the task stays `claimed` under your epoch, so fix the payload and submit again before the lease ends. A stale epoch is HTTP 409. A successful submit is terminal \u2014 corrections happen downstream in review, not by a second submit."
|
|
53115
|
+
},
|
|
53116
|
+
{
|
|
53117
|
+
type: "callout",
|
|
53118
|
+
text: "The rationale is a summary for the ledger and for the humans who review it, not a transcript. For a rule-mining round driven from outside, the round's long summary travels in `outcome.summary` and the rationale is one line."
|
|
53119
|
+
}
|
|
53120
|
+
],
|
|
53121
|
+
related: [
|
|
53122
|
+
{
|
|
53123
|
+
label: "talonic_claim_decision_task",
|
|
53124
|
+
slug: "mcp-talonic-claim-decision-task"
|
|
53125
|
+
},
|
|
53126
|
+
{
|
|
53127
|
+
label: "talonic_read_decision_package",
|
|
53128
|
+
slug: "mcp-talonic-read-decision-package"
|
|
53129
|
+
},
|
|
53130
|
+
{
|
|
53131
|
+
label: "talonic_release_decision_task",
|
|
53132
|
+
slug: "mcp-talonic-release-decision-task"
|
|
53133
|
+
},
|
|
53134
|
+
{
|
|
53135
|
+
label: "talonic_fail_decision_task",
|
|
53136
|
+
slug: "mcp-talonic-fail-decision-task"
|
|
53137
|
+
}
|
|
53138
|
+
],
|
|
53139
|
+
faq: [
|
|
53140
|
+
{
|
|
53141
|
+
question: "Can the evidence cite something outside the input package?",
|
|
53142
|
+
answer: "Only a db: or ref: locator naming a source connection or reference table the app holds a read grant on; those are accepted as attestations and journaled. Any other off-package locator, and the reserved api: prefix, is rejected. Everything else must appear verbatim in the package."
|
|
53143
|
+
},
|
|
53144
|
+
{
|
|
53145
|
+
question: "What if the app's thresholds disagree with my decision?",
|
|
53146
|
+
answer: "The submit is still accepted. Thresholds \u2014 the confidence floor for auto-execution and value ceilings requiring approval \u2014 are enforced by the platform after the decision and before execution, for every mode. A breach routes the run to a human review; it never fails silently."
|
|
53147
|
+
}
|
|
53148
|
+
],
|
|
53149
|
+
mentions: [
|
|
53150
|
+
"evidence block",
|
|
53151
|
+
"rationale",
|
|
53152
|
+
"output contract",
|
|
53153
|
+
"external_agent",
|
|
53154
|
+
"transactional submit"
|
|
53155
|
+
]
|
|
53156
|
+
},
|
|
53157
|
+
{
|
|
53158
|
+
slug: "mcp-talonic-release-decision-task",
|
|
53159
|
+
parentSlug: "mcp-tools",
|
|
53160
|
+
title: "talonic_release_decision_task",
|
|
53161
|
+
seoTitle: "talonic_release_decision_task \u2014 Give a Decision Task Back",
|
|
53162
|
+
description: "MCP tool that releases a claimed decision task back to available without deciding it, so another claimant can pick it up; the next claim bumps the execution epoch.",
|
|
53163
|
+
content: [
|
|
53164
|
+
{
|
|
53165
|
+
type: "paragraph",
|
|
53166
|
+
text: "Give a claimed decision task back. The task returns to `available` with its row intact, the release is journaled, and the next claim bumps the epoch. Use it when you cannot finish within the lease or the SLA but another agent \u2014 or you, later \u2014 could still decide it; the task is not failed and no review is raised."
|
|
53167
|
+
},
|
|
53168
|
+
{
|
|
53169
|
+
type: "param-table",
|
|
53170
|
+
params: [
|
|
53171
|
+
{
|
|
53172
|
+
name: "task_id",
|
|
53173
|
+
type: "UUID",
|
|
53174
|
+
required: true,
|
|
53175
|
+
description: "Claimed task ID."
|
|
53176
|
+
},
|
|
53177
|
+
{
|
|
53178
|
+
name: "execution_epoch",
|
|
53179
|
+
type: "integer",
|
|
53180
|
+
required: true,
|
|
53181
|
+
description: "Exact epoch from the current claim."
|
|
53182
|
+
}
|
|
53183
|
+
]
|
|
53184
|
+
},
|
|
53185
|
+
{
|
|
53186
|
+
type: "code",
|
|
53187
|
+
language: "json",
|
|
53188
|
+
title: "Release response",
|
|
53189
|
+
code: '// talonic_release_decision_task({ "task_id": "11111111-1111-4111-8111-111111111111", "execution_epoch": 1 })\n{\n "id": "11111111-1111-4111-8111-111111111111",\n "status": "available",\n "execution_epoch": 1,\n "claimed_by": null,\n "lease_expires_at": null,\n "...": "remaining metadata as in the list"\n}'
|
|
53190
|
+
},
|
|
53191
|
+
{
|
|
53192
|
+
type: "paragraph",
|
|
53193
|
+
text: "Releasing is cheaper than letting the lease lapse: the task is immediately claimable instead of waiting out the lease, and the ledger records a deliberate give-back rather than a silent timeout. The SLA clock keeps running throughout, so a task released late in its window may time out before anyone reclaims it."
|
|
53194
|
+
}
|
|
53195
|
+
],
|
|
53196
|
+
related: [
|
|
53197
|
+
{
|
|
53198
|
+
label: "talonic_claim_decision_task",
|
|
53199
|
+
slug: "mcp-talonic-claim-decision-task"
|
|
53200
|
+
},
|
|
53201
|
+
{
|
|
53202
|
+
label: "talonic_fail_decision_task",
|
|
53203
|
+
slug: "mcp-talonic-fail-decision-task"
|
|
53204
|
+
}
|
|
53205
|
+
],
|
|
53206
|
+
faq: [
|
|
53207
|
+
{
|
|
53208
|
+
question: "Release or fail \u2014 which one?",
|
|
53209
|
+
answer: "Release when the task is decidable but not by you right now: another claimant gets the same package and contract. Fail when no claimant could decide it from this package: that raises a Human Review with your reason and applies the app's fallback policy."
|
|
53210
|
+
}
|
|
53211
|
+
],
|
|
53212
|
+
mentions: [
|
|
53213
|
+
"release",
|
|
53214
|
+
"give-back",
|
|
53215
|
+
"execution epoch"
|
|
53216
|
+
]
|
|
53217
|
+
},
|
|
53218
|
+
{
|
|
53219
|
+
slug: "mcp-talonic-fail-decision-task",
|
|
53220
|
+
parentSlug: "mcp-tools",
|
|
53221
|
+
title: "talonic_fail_decision_task",
|
|
53222
|
+
seoTitle: "talonic_fail_decision_task \u2014 Declare a Task Undecidable",
|
|
53223
|
+
description: "MCP tool that reports a claimed decision task cannot be decided: raises a Human Review with the agent's reason and applies the app's declared fallback policy.",
|
|
53224
|
+
content: [
|
|
53225
|
+
{
|
|
53226
|
+
type: "paragraph",
|
|
53227
|
+
text: "Declare that the claimed task cannot be decided. The platform raises a Human Review carrying your `reason` and applies the app's declared **fallback policy**: `rules` (a resident rule set decides \u2014 the only policy with a deterministic safety net), `hold` (the run parks as a system-raised review) or `none` (the run fails explicitly). The task ends in status `failed`; the ledger records the fallback decision with `fallback: true`."
|
|
53228
|
+
},
|
|
53229
|
+
{
|
|
53230
|
+
type: "param-table",
|
|
53231
|
+
params: [
|
|
53232
|
+
{
|
|
53233
|
+
name: "task_id",
|
|
53234
|
+
type: "UUID",
|
|
53235
|
+
required: true,
|
|
53236
|
+
description: "Claimed task ID."
|
|
53237
|
+
},
|
|
53238
|
+
{
|
|
53239
|
+
name: "execution_epoch",
|
|
53240
|
+
type: "integer",
|
|
53241
|
+
required: true,
|
|
53242
|
+
description: "Exact epoch from the current claim."
|
|
53243
|
+
},
|
|
53244
|
+
{
|
|
53245
|
+
name: "reason",
|
|
53246
|
+
type: "string",
|
|
53247
|
+
required: true,
|
|
53248
|
+
description: "Why the task cannot be decided, at most 2,000 characters. Becomes the review's question context, so name the missing or contradictory evidence."
|
|
53249
|
+
}
|
|
53250
|
+
]
|
|
53251
|
+
},
|
|
53252
|
+
{
|
|
53253
|
+
type: "code",
|
|
53254
|
+
language: "json",
|
|
53255
|
+
title: "Fail response",
|
|
53256
|
+
code: '// talonic_fail_decision_task({\n// "task_id": "11111111-1111-4111-8111-111111111111",\n// "execution_epoch": 1,\n// "reason": "The package carries two supplier names for one invoice and neither matches the purchase order."\n// })\n{\n "id": "11111111-1111-4111-8111-111111111111",\n "status": "failed",\n "execution_epoch": 1,\n "...": "remaining metadata as in the list"\n}'
|
|
53257
|
+
},
|
|
53258
|
+
{
|
|
53259
|
+
type: "paragraph",
|
|
53260
|
+
text: "Fail is for genuinely undecidable tasks \u2014 contradictory or insufficient input that no claimant could resolve. A decision you can make with low confidence is better submitted with `confidence` set: the app's confidence floor routes it to review if needed, and the reviewer sees your outcome and rationale instead of an empty slot. For a rule-mining round driven from outside, fail seals the round as `interrupted` with your reason and raises no review."
|
|
53261
|
+
}
|
|
53262
|
+
],
|
|
53263
|
+
related: [
|
|
53264
|
+
{
|
|
53265
|
+
label: "talonic_release_decision_task",
|
|
53266
|
+
slug: "mcp-talonic-release-decision-task"
|
|
53267
|
+
},
|
|
53268
|
+
{
|
|
53269
|
+
label: "talonic_submit_decision_task",
|
|
53270
|
+
slug: "mcp-talonic-submit-decision-task"
|
|
53271
|
+
}
|
|
53272
|
+
],
|
|
53273
|
+
faq: [
|
|
53274
|
+
{
|
|
53275
|
+
question: "Is failing a decision task destructive?",
|
|
53276
|
+
answer: "No data is deleted. The task moves to failed, a review is raised with your reason, and the fallback policy the app declared runs \u2014 which under the rules policy still produces a decision. It cannot be undone, though: a failed task is not reclaimable."
|
|
53277
|
+
}
|
|
53278
|
+
],
|
|
53279
|
+
mentions: [
|
|
53280
|
+
"fail",
|
|
53281
|
+
"fallback policy",
|
|
53282
|
+
"Human Review",
|
|
53283
|
+
"undecidable"
|
|
53284
|
+
]
|
|
50916
53285
|
}
|
|
50917
53286
|
];
|
|
50918
53287
|
|