@talonic/mcp 0.1.77 → 0.1.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/content.js CHANGED
@@ -47,6 +47,13 @@ var MCP_NAV_SECTIONS = [
47
47
  { id: "talonic-claim-agent-task", label: "talonic_claim_agent_task" },
48
48
  { id: "talonic-heartbeat-agent-task", label: "talonic_heartbeat_agent_task" },
49
49
  { id: "talonic-submit-agent-task", label: "talonic_submit_agent_task" },
50
+ { id: "talonic-list-specs", label: "talonic_list_specs" },
51
+ { id: "talonic-get-spec", label: "talonic_get_spec" },
52
+ { id: "talonic-run-spec", label: "talonic_run_spec" },
53
+ { id: "talonic-get-run", label: "talonic_get_run" },
54
+ { id: "talonic-get-run-results", label: "talonic_get_run_results" },
55
+ { id: "talonic-ask", label: "talonic_ask" },
56
+ { id: "talonic-get-answer", label: "talonic_get_answer" },
50
57
  { id: "talonic-list-decision-tasks", label: "talonic_list_decision_tasks" },
51
58
  { id: "talonic-claim-decision-task", label: "talonic_claim_decision_task" },
52
59
  { id: "talonic-read-decision-package", label: "talonic_read_decision_package" },
@@ -122,7 +129,7 @@ var sections = [
122
129
  },
123
130
  {
124
131
  type: "paragraph",
125
- text: "The tool set covers the full document workflow: extraction (`talonic_extract`, `talonic_to_markdown`, `talonic_request_upload`), workspace retrieval (`talonic_search`, `talonic_filter`, `talonic_get_document`), schema management (`talonic_list_schemas`, `talonic_save_schema`), cost visibility (`talonic_get_balance`, `talonic_get_pricing`, `talonic_get_usage`), the Agent-task worklist (`talonic_list_agent_tasks` through `talonic_submit_agent_task`), and the External-mode decision-task protocol for Talonic Apps (`talonic_list_decision_tasks` through `talonic_fail_decision_task`), plus the `talonic://schemas` and `talonic://webhooks/reference` resources."
132
+ text: "The tool set covers the full document workflow: extraction (`talonic_extract`, `talonic_to_markdown`, `talonic_request_upload`), workspace retrieval (`talonic_search`, `talonic_filter`, `talonic_get_document`), schema management (`talonic_list_schemas`, `talonic_save_schema`), cost visibility (`talonic_get_balance`, `talonic_get_pricing`, `talonic_get_usage`), the Agent-task worklist (`talonic_list_agent_tasks` through `talonic_submit_agent_task`), the External-mode decision-task protocol for Talonic Apps (`talonic_list_decision_tasks` through `talonic_fail_decision_task`), Spec runs (`talonic_run_spec`, `talonic_get_run`, `talonic_get_run_results`), and cited question answering over the workspace (`talonic_ask`, `talonic_get_answer`), plus the `talonic://schemas` and `talonic://webhooks/reference` resources."
126
133
  },
127
134
  {
128
135
  type: "paragraph",
@@ -4596,6 +4603,11 @@ Payment terms: Net 30`
4596
4603
  type: "paragraph",
4597
4604
  text: "List the platform's **agent tool registry**: every retrieval, provenance and analysis primitive the in-product Talonic agent runs on (`find_data`, `describe_data`, `query_data` for read-only SQL over the extracted data, `get_document_markdown`, `workspace_overview`, \u2026), each with its JSON input schema and whether **this** credential may invoke it. An API key reaches the read-only subset; the platform enforces the capability matrix on every call."
4598
4605
  },
4606
+ {
4607
+ type: "callout",
4608
+ variant: "info",
4609
+ text: "Target API: [Talonic API reference](https://talonic.com/docs/api) \u2014 `GET /v1/agent/tools`."
4610
+ },
4599
4611
  { type: "heading", level: 3, id: "list-agent-tools-use-when", text: "When to use" },
4600
4612
  {
4601
4613
  type: "list",
@@ -4702,7 +4714,12 @@ Payment terms: Net 30`
4702
4714
  content: [
4703
4715
  {
4704
4716
  type: "paragraph",
4705
- text: "Invoke **one named tool** from the platform's agent tool registry directly, with no model in the loop \u2014 you choose the arguments. This is how an external agent uses Talonic's retrieval and provenance while driving control flow itself: `query_data` for a read-only SQL `SELECT` over the extracted data, `describe_data` for the queryable field list, `get_document_markdown` to read a document's text. Denied capabilities come back as an error naming the capability required; the platform re-checks every call."
4717
+ 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."
4718
+ },
4719
+ {
4720
+ type: "callout",
4721
+ variant: "info",
4722
+ text: "Target API: [Talonic API reference](https://talonic.com/docs/api) \u2014 `POST /v1/agent/tools/{name}/invoke`."
4706
4723
  },
4707
4724
  { type: "heading", level: 3, id: "invoke-agent-tool-use-when", text: "When to use" },
4708
4725
  {
@@ -4781,6 +4798,799 @@ Payment terms: Net 30`
4781
4798
  "agent tool",
4782
4799
  "no model in the loop"
4783
4800
  ]
4801
+ },
4802
+ {
4803
+ slug: "talonic-list-specs",
4804
+ parentSlug: "tools",
4805
+ title: "talonic_list_specs",
4806
+ seoTitle: "talonic_list_specs \u2014 List Workspace Specs",
4807
+ 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.",
4808
+ content: [
4809
+ {
4810
+ type: "paragraph",
4811
+ 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."
4812
+ },
4813
+ { type: "heading", level: 3, id: "list-specs-use-when", text: "When to use" },
4814
+ {
4815
+ type: "list",
4816
+ items: [
4817
+ "You need a `spec_id` to run the customer's pipeline.",
4818
+ "The user refers to 'our invoice pipeline' and you must find it.",
4819
+ "You want to see which Specs are published (`version` non-null) before running."
4820
+ ]
4821
+ },
4822
+ { type: "heading", level: 3, id: "list-specs-do-not-use", text: "When not to use" },
4823
+ {
4824
+ type: "list",
4825
+ items: [
4826
+ "You want ad-hoc extraction schemas \u2014 use `talonic_list_schemas`.",
4827
+ "You want to discover fields \u2014 use `talonic_list_fields` / `talonic_find_data`."
4828
+ ]
4829
+ },
4830
+ { type: "heading", level: 3, id: "list-specs-params", text: "Parameters" },
4831
+ {
4832
+ type: "param-table",
4833
+ params: [
4834
+ {
4835
+ name: "search",
4836
+ type: "string",
4837
+ description: "Case-insensitive contains match on the Spec name."
4838
+ },
4839
+ { name: "limit", type: "number", description: "Page size (default 20, max 100)." },
4840
+ {
4841
+ name: "cursor",
4842
+ type: "string",
4843
+ description: "Opaque cursor from `pagination.next_cursor`."
4844
+ },
4845
+ {
4846
+ name: "order",
4847
+ type: "string",
4848
+ description: "`asc` or `desc`, sorted by `updated_at` (default desc)."
4849
+ }
4850
+ ]
4851
+ },
4852
+ { type: "heading", level: 3, id: "list-specs-response", text: "Response shape" },
4853
+ {
4854
+ type: "param-table",
4855
+ title: "Fields",
4856
+ params: [
4857
+ { name: "data[].id", type: "string", description: "Spec UUID." },
4858
+ { name: "data[].name", type: "string", description: "Spec name." },
4859
+ {
4860
+ name: "data[].schema_id",
4861
+ type: "string",
4862
+ description: "The schema this Spec materializes onto \u2014 a different id from the Spec's own."
4863
+ },
4864
+ {
4865
+ name: "data[].version",
4866
+ type: "number|null",
4867
+ description: "Published version number, or null if never published."
4868
+ },
4869
+ {
4870
+ name: "data[].materialized_version",
4871
+ type: "number|null",
4872
+ description: "Version currently materialized onto the schema, or null."
4873
+ },
4874
+ {
4875
+ name: "data[].field_count",
4876
+ type: "number",
4877
+ description: "Number of fields in the Spec."
4878
+ },
4879
+ {
4880
+ name: "data[].node_count",
4881
+ type: "number",
4882
+ description: "Number of nodes in the authored rail."
4883
+ },
4884
+ {
4885
+ name: "pagination.next_cursor",
4886
+ type: "string|null",
4887
+ description: "Cursor for the next page, or null when there isn't one."
4888
+ }
4889
+ ]
4890
+ }
4891
+ ],
4892
+ related: [
4893
+ { label: "talonic_get_spec", slug: "talonic-get-spec" },
4894
+ { label: "talonic_run_spec", slug: "talonic-run-spec" }
4895
+ ],
4896
+ faq: [
4897
+ {
4898
+ question: "Why does a Spec have both an id and a schema_id?",
4899
+ 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."
4900
+ }
4901
+ ],
4902
+ mentions: ["specs", "list specs", "pipelines", "configured pipeline", "spec id"]
4903
+ },
4904
+ {
4905
+ slug: "talonic-get-spec",
4906
+ parentSlug: "tools",
4907
+ title: "talonic_get_spec",
4908
+ seoTitle: "talonic_get_spec \u2014 Get a Spec's Structure",
4909
+ 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.",
4910
+ content: [
4911
+ {
4912
+ type: "paragraph",
4913
+ 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."
4914
+ },
4915
+ { type: "heading", level: 3, id: "get-spec-use-when", text: "When to use" },
4916
+ {
4917
+ type: "list",
4918
+ items: [
4919
+ "You need to explain what a run will do before starting it.",
4920
+ "You want to confirm a Spec is published (`version` non-null) before calling `talonic_run_spec`.",
4921
+ "You need to map Spec field names to schema field keys."
4922
+ ]
4923
+ },
4924
+ { type: "heading", level: 3, id: "get-spec-do-not-use", text: "When not to use" },
4925
+ {
4926
+ type: "list",
4927
+ items: [
4928
+ "You want to list all Specs \u2014 use `talonic_list_specs`.",
4929
+ "You are ready to execute the pipeline \u2014 use `talonic_run_spec`."
4930
+ ]
4931
+ },
4932
+ { type: "heading", level: 3, id: "get-spec-params", text: "Parameters" },
4933
+ {
4934
+ type: "param-table",
4935
+ params: [
4936
+ {
4937
+ name: "spec_id",
4938
+ type: "string",
4939
+ required: true,
4940
+ description: "Spec UUID (from `talonic_list_specs`)."
4941
+ },
4942
+ {
4943
+ name: "include_versions",
4944
+ type: "boolean",
4945
+ description: "Also fetch the published versions list (adds `versions[]`)."
4946
+ }
4947
+ ]
4948
+ },
4949
+ { type: "heading", level: 3, id: "get-spec-response", text: "Response shape" },
4950
+ {
4951
+ type: "param-table",
4952
+ title: "Fields",
4953
+ params: [
4954
+ { name: "id", type: "string", description: "Spec UUID." },
4955
+ { name: "name", type: "string", description: "Spec name." },
4956
+ {
4957
+ name: "version",
4958
+ type: "number|null",
4959
+ description: "Published version number, or null if never published."
4960
+ },
4961
+ {
4962
+ name: "materialized_version",
4963
+ type: "number|null",
4964
+ description: "Version currently materialized onto the schema, or null."
4965
+ },
4966
+ {
4967
+ name: "schema.id",
4968
+ type: "string",
4969
+ description: "The schema this Spec materializes onto."
4970
+ },
4971
+ {
4972
+ name: "nodes[].type",
4973
+ type: "string",
4974
+ description: "Stage type in the authored rail: one of `source`, `registry`, `schema`, `resolve`, `valid`, `assembly`, `deliver`, `reconcile`, `sanitize`, `triage`, `switch`."
4975
+ },
4976
+ { name: "nodes[].name", type: "string", description: "Node display name." },
4977
+ {
4978
+ name: "phases[].number",
4979
+ type: "number",
4980
+ description: "Phase order in the compiled execution plan."
4981
+ },
4982
+ {
4983
+ name: "phases[].type",
4984
+ type: "string",
4985
+ 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."
4986
+ },
4987
+ { name: "phases[].name", type: "string", description: "Phase display name." },
4988
+ {
4989
+ name: "fields[].name",
4990
+ type: "string",
4991
+ description: "Spec field name, mapped to its schema field."
4992
+ },
4993
+ {
4994
+ name: "versions[].version",
4995
+ type: "number",
4996
+ description: "Published version number (present when `include_versions` is true)."
4997
+ },
4998
+ {
4999
+ name: "versions[].is_materialized",
5000
+ type: "boolean",
5001
+ description: "Whether this version is the one currently materialized onto the schema."
5002
+ }
5003
+ ]
5004
+ }
5005
+ ],
5006
+ related: [
5007
+ { label: "talonic_list_specs", slug: "talonic-list-specs" },
5008
+ { label: "talonic_run_spec", slug: "talonic-run-spec" }
5009
+ ],
5010
+ faq: [
5011
+ {
5012
+ question: "Why do nodes and phases differ?",
5013
+ 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."
5014
+ }
5015
+ ],
5016
+ mentions: ["spec structure", "rail", "phases", "compiled plan", "spec versions"]
5017
+ },
5018
+ {
5019
+ slug: "talonic-run-spec",
5020
+ parentSlug: "tools",
5021
+ title: "talonic_run_spec",
5022
+ seoTitle: "talonic_run_spec \u2014 Run a Spec Pipeline",
5023
+ 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.",
5024
+ content: [
5025
+ {
5026
+ type: "paragraph",
5027
+ 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."
5028
+ },
5029
+ {
5030
+ type: "callout",
5031
+ variant: "info",
5032
+ 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)."
5033
+ },
5034
+ { type: "heading", level: 3, id: "run-spec-use-when", text: "When to use" },
5035
+ {
5036
+ type: "list",
5037
+ items: [
5038
+ "The user wants to run their configured pipeline (a Spec) over documents.",
5039
+ "You need to process files through a Spec and produce its structured rows.",
5040
+ "You already have a `spec_id` from `talonic_list_specs` and either workspace documents or public file URLs."
5041
+ ]
5042
+ },
5043
+ { type: "heading", level: 3, id: "run-spec-do-not-use", text: "When not to use" },
5044
+ {
5045
+ type: "list",
5046
+ items: [
5047
+ "One-off extraction with an ad-hoc schema \u2014 use `talonic_extract`.",
5048
+ "Checking progress on a run already started \u2014 use `talonic_get_run`.",
5049
+ "Reading a completed run's rows \u2014 use `talonic_get_run_results`."
5050
+ ]
5051
+ },
5052
+ { type: "heading", level: 3, id: "run-spec-params", text: "Parameters" },
5053
+ {
5054
+ type: "param-table",
5055
+ params: [
5056
+ {
5057
+ name: "spec_id",
5058
+ type: "string",
5059
+ required: true,
5060
+ description: "Spec UUID (from `talonic_list_specs`)."
5061
+ },
5062
+ {
5063
+ name: "document_ids",
5064
+ type: "string[]",
5065
+ description: "Workspace document ids (1\u2013500). Mutually exclusive with `file_urls`."
5066
+ },
5067
+ {
5068
+ name: "file_urls",
5069
+ type: "string[]",
5070
+ description: "Public https file URLs (1\u201320). Mutually exclusive with `document_ids`."
5071
+ },
5072
+ { name: "name", type: "string", description: "Display name for the run." },
5073
+ {
5074
+ name: "pipeline_mode",
5075
+ type: "string",
5076
+ description: "`new` (default) or `append` to the Spec's existing pipeline."
5077
+ },
5078
+ {
5079
+ name: "batch_id",
5080
+ type: "string",
5081
+ description: "Caller grouping key. Only applies to the `file_urls` path."
5082
+ },
5083
+ {
5084
+ name: "metadata",
5085
+ type: "object",
5086
+ description: "Flat caller tags stamped on every ingested document. Only applies to the `file_urls` path."
5087
+ }
5088
+ ]
5089
+ },
5090
+ { type: "heading", level: 3, id: "run-spec-response", text: "Response shape" },
5091
+ {
5092
+ type: "param-table",
5093
+ title: "Fields",
5094
+ params: [
5095
+ {
5096
+ name: "run_kind",
5097
+ type: "string",
5098
+ description: "`pipeline` (document_ids route) or `run` (file_urls route)."
5099
+ },
5100
+ {
5101
+ name: "run_id",
5102
+ type: "string|null",
5103
+ description: "Run id when `run_kind` is `run`; null otherwise."
5104
+ },
5105
+ {
5106
+ name: "pipeline_id",
5107
+ type: "string|null",
5108
+ description: "Pipeline id when `run_kind` is `pipeline`; null otherwise."
5109
+ },
5110
+ { name: "spec_id", type: "string", description: "The Spec that ran." },
5111
+ {
5112
+ name: "spec_name",
5113
+ type: "string|null",
5114
+ description: "The Spec's display name, when the backend returned one; null otherwise."
5115
+ },
5116
+ {
5117
+ name: "status",
5118
+ type: "string",
5119
+ description: "`processing`, `completed` or `failed`, normalized across both backends."
5120
+ },
5121
+ {
5122
+ name: "raw_status",
5123
+ type: "string|null",
5124
+ description: "The backend's own status string, unnormalized."
5125
+ },
5126
+ {
5127
+ name: "input_count",
5128
+ type: "number",
5129
+ description: "Number of documents or URLs submitted."
5130
+ },
5131
+ {
5132
+ name: "enqueued_documents",
5133
+ type: "number|null",
5134
+ description: "Documents enqueued for processing on the `document_ids` route; absent on the `file_urls` route."
5135
+ },
5136
+ {
5137
+ name: "appended",
5138
+ type: "boolean",
5139
+ description: "Whether this run appended to the Spec's existing pipeline (`pipeline_mode: 'append'`); present on the `document_ids` route only."
5140
+ },
5141
+ {
5142
+ name: "documents[]",
5143
+ type: "array",
5144
+ description: "Per-document detail, present on the `file_urls` route."
5145
+ },
5146
+ {
5147
+ name: "message",
5148
+ type: "string|null",
5149
+ description: "Informational message from the API, e.g. 'Pipeline created and queued for processing.'; null when not provided."
5150
+ },
5151
+ { name: "links", type: "object", description: "Follow-up URLs, e.g. a poll link." }
5152
+ ]
5153
+ }
5154
+ ],
5155
+ related: [
5156
+ { label: "talonic_get_run", slug: "talonic-get-run" },
5157
+ { label: "talonic_get_run_results", slug: "talonic-get-run-results" },
5158
+ { label: "talonic_request_upload", slug: "talonic-request-upload" }
5159
+ ],
5160
+ faq: [
5161
+ {
5162
+ question: "Does this cost credits?",
5163
+ 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."
5164
+ }
5165
+ ],
5166
+ mentions: [
5167
+ "run spec",
5168
+ "run pipeline",
5169
+ "execute pipeline",
5170
+ "file_urls",
5171
+ "document_ids",
5172
+ "pipeline_mode"
5173
+ ]
5174
+ },
5175
+ {
5176
+ slug: "talonic-get-run",
5177
+ parentSlug: "tools",
5178
+ title: "talonic_get_run",
5179
+ seoTitle: "talonic_get_run \u2014 Poll a Spec Run",
5180
+ description: "MCP tool that polls a Spec run started by talonic_run_spec, returning normalized status plus document- and phase-level progress.",
5181
+ content: [
5182
+ {
5183
+ type: "paragraph",
5184
+ 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`."
5185
+ },
5186
+ { type: "heading", level: 3, id: "get-run-use-when", text: "When to use" },
5187
+ {
5188
+ type: "list",
5189
+ items: [
5190
+ "You just called `talonic_run_spec` and need to track progress.",
5191
+ "You want to know when a run finished, or whether any documents errored.",
5192
+ "Poll every 5\u201310 seconds; stop as soon as `status` is `completed` or `failed`."
5193
+ ]
5194
+ },
5195
+ { type: "heading", level: 3, id: "get-run-do-not-use", text: "When not to use" },
5196
+ {
5197
+ type: "list",
5198
+ items: [
5199
+ "Starting a run \u2014 use `talonic_run_spec`.",
5200
+ "Reading the structured rows once a run is complete \u2014 use `talonic_get_run_results`."
5201
+ ]
5202
+ },
5203
+ { type: "heading", level: 3, id: "get-run-params", text: "Parameters" },
5204
+ {
5205
+ type: "param-table",
5206
+ params: [
5207
+ {
5208
+ name: "run_id",
5209
+ type: "string",
5210
+ description: "From a `run_kind: 'run'` envelope (`/v1/run`). Provide exactly one of `run_id` or `pipeline_id`."
5211
+ },
5212
+ {
5213
+ name: "pipeline_id",
5214
+ type: "string",
5215
+ description: "From a `run_kind: 'pipeline'` envelope (`/v1/pipelines`). Provide exactly one of `run_id` or `pipeline_id`."
5216
+ }
5217
+ ]
5218
+ },
5219
+ { type: "heading", level: 3, id: "get-run-response", text: "Response shape" },
5220
+ {
5221
+ type: "param-table",
5222
+ title: "Fields",
5223
+ params: [
5224
+ {
5225
+ name: "status",
5226
+ type: "string",
5227
+ description: "`processing`, `completed` or `failed`, normalized across both backends."
5228
+ },
5229
+ {
5230
+ name: "raw_status",
5231
+ type: "string|null",
5232
+ description: "The backend's own status string, unnormalized."
5233
+ },
5234
+ {
5235
+ name: "progress.total_documents",
5236
+ type: "number|null",
5237
+ description: "Total documents in the run."
5238
+ },
5239
+ {
5240
+ name: "progress.completed_documents",
5241
+ type: "number|null",
5242
+ description: "Documents finished successfully."
5243
+ },
5244
+ {
5245
+ name: "progress.error_documents",
5246
+ type: "number|null",
5247
+ description: "Documents that errored."
5248
+ },
5249
+ {
5250
+ name: "progress.phases[]",
5251
+ type: "array",
5252
+ description: "Per-phase progress for pipeline runs \u2014 phase id, name, type, and completed/running/error counts."
5253
+ },
5254
+ { name: "documents[]", type: "array", description: "Per-document detail, when present." },
5255
+ {
5256
+ name: "error_message",
5257
+ type: "string|null",
5258
+ description: "Top-level error, when `status` is `failed`."
5259
+ }
5260
+ ]
5261
+ }
5262
+ ],
5263
+ related: [
5264
+ { label: "talonic_run_spec", slug: "talonic-run-spec" },
5265
+ { label: "talonic_get_run_results", slug: "talonic-get-run-results" }
5266
+ ],
5267
+ faq: [
5268
+ {
5269
+ question: "How long does a run take?",
5270
+ 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."
5271
+ }
5272
+ ],
5273
+ mentions: ["run status", "poll run", "pipeline progress", "run progress"]
5274
+ },
5275
+ {
5276
+ slug: "talonic-get-run-results",
5277
+ parentSlug: "tools",
5278
+ title: "talonic_get_run_results",
5279
+ seoTitle: "talonic_get_run_results \u2014 Read a Spec Run's Rows",
5280
+ description: "MCP tool that reads a Spec run's structured rows \u2014 one per document, with column definitions and pending-review counts.",
5281
+ content: [
5282
+ {
5283
+ type: "paragraph",
5284
+ 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."
5285
+ },
5286
+ { type: "heading", level: 3, id: "get-run-results-use-when", text: "When to use" },
5287
+ {
5288
+ type: "list",
5289
+ items: [
5290
+ "`talonic_get_run` reports `completed` \u2014 or you want to read partial rows while it is still `processing`.",
5291
+ "You need the Spec's structured output for one document or the whole run."
5292
+ ]
5293
+ },
5294
+ { type: "heading", level: 3, id: "get-run-results-do-not-use", text: "When not to use" },
5295
+ {
5296
+ type: "list",
5297
+ items: [
5298
+ "Checking run progress \u2014 use `talonic_get_run`.",
5299
+ "Per-field provenance of a single value \u2014 pass `include: ['provenance']` here, or use `talonic_field_values`."
5300
+ ]
5301
+ },
5302
+ { type: "heading", level: 3, id: "get-run-results-params", text: "Parameters" },
5303
+ {
5304
+ type: "param-table",
5305
+ params: [
5306
+ {
5307
+ name: "run_id",
5308
+ type: "string",
5309
+ description: "From a `run_kind: 'run'` envelope, alone \u2014 or accompanying `pipeline_id` to scope that pipeline's results to one submission."
5310
+ },
5311
+ {
5312
+ name: "pipeline_id",
5313
+ type: "string",
5314
+ description: "From a `run_kind: 'pipeline'` envelope. Optionally pass `run_id` alongside it to scope results to one submission within the pipeline."
5315
+ },
5316
+ { name: "document_id", type: "string", description: "Restrict to one document." },
5317
+ {
5318
+ name: "include",
5319
+ type: "string[]",
5320
+ description: "`cells` and/or `provenance` \u2014 extra per-field detail; heavier payload."
5321
+ },
5322
+ { name: "limit", type: "number", description: "Page size (1\u2013200, default 50)." },
5323
+ {
5324
+ name: "cursor",
5325
+ type: "string",
5326
+ description: "Opaque cursor from `pagination.next_cursor`."
5327
+ }
5328
+ ]
5329
+ },
5330
+ { type: "heading", level: 3, id: "get-run-results-response", text: "Response shape" },
5331
+ {
5332
+ type: "param-table",
5333
+ title: "Fields",
5334
+ params: [
5335
+ {
5336
+ name: "columns[].field_key",
5337
+ type: "string",
5338
+ description: "Stable field key, matches `data[].fields` keys."
5339
+ },
5340
+ {
5341
+ name: "columns[].display_name",
5342
+ type: "string",
5343
+ description: "Human-readable column label."
5344
+ },
5345
+ {
5346
+ name: "columns[].data_type",
5347
+ type: "string",
5348
+ description: "The field's data type (string, number, array, etc.)."
5349
+ },
5350
+ {
5351
+ name: "data[].document_id",
5352
+ type: "string",
5353
+ description: "The document this row belongs to."
5354
+ },
5355
+ { name: "data[].filename", type: "string", description: "The document's filename." },
5356
+ {
5357
+ name: "data[].status",
5358
+ type: "string",
5359
+ description: "`complete`, `partial`, `error` or `processing` for this document's row."
5360
+ },
5361
+ {
5362
+ name: "data[].fields",
5363
+ type: "object",
5364
+ description: "`{ field_key: value }` \u2014 the clean values; held cells are `null`."
5365
+ },
5366
+ {
5367
+ name: "pagination",
5368
+ type: "object",
5369
+ description: "`total`, `limit`, `has_more`, `next_cursor`."
5370
+ },
5371
+ {
5372
+ name: "pending_review_count",
5373
+ type: "number",
5374
+ description: "Number of held (pending-review) cells on this page."
5375
+ }
5376
+ ]
5377
+ }
5378
+ ],
5379
+ related: [
5380
+ { label: "talonic_get_run", slug: "talonic-get-run" },
5381
+ { label: "talonic_field_values", slug: "talonic-field-values" }
5382
+ ],
5383
+ faq: [
5384
+ {
5385
+ question: "Why is a value null?",
5386
+ 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."
5387
+ }
5388
+ ],
5389
+ mentions: ["run results", "pipeline results", "structured rows", "columns", "pending review"]
5390
+ },
5391
+ {
5392
+ slug: "talonic-ask",
5393
+ parentSlug: "tools",
5394
+ title: "talonic_ask",
5395
+ seoTitle: "talonic_ask \u2014 Ask a Cited, Verified Question",
5396
+ description: "MCP tool that answers a natural-language question over the workspace's documents with a cited, verified markdown answer.",
5397
+ content: [
5398
+ {
5399
+ type: "paragraph",
5400
+ 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."
5401
+ },
5402
+ {
5403
+ type: "callout",
5404
+ variant: "warning",
5405
+ text: "Costs credits. For a known field's values use `talonic_field_values` or `talonic_filter` \u2014 they are free."
5406
+ },
5407
+ { type: "heading", level: 3, id: "ask-use-when", text: "When to use" },
5408
+ {
5409
+ type: "list",
5410
+ items: [
5411
+ "The user asks an open question about their documents, e.g. 'which vendors invoiced us twice in May?'",
5412
+ "The user wants a summary across documents.",
5413
+ "The answer needs reasoning over several fields, not a single known value."
5414
+ ]
5415
+ },
5416
+ { type: "heading", level: 3, id: "ask-do-not-use", text: "When not to use" },
5417
+ {
5418
+ type: "list",
5419
+ items: [
5420
+ "Reading a known field's values \u2014 use `talonic_field_values` (free).",
5421
+ "Filtering documents by a known value \u2014 use `talonic_filter` (free).",
5422
+ "Locating which field holds a concept \u2014 use `talonic_find_data`."
5423
+ ]
5424
+ },
5425
+ { type: "heading", level: 3, id: "ask-params", text: "Parameters" },
5426
+ {
5427
+ type: "param-table",
5428
+ params: [
5429
+ {
5430
+ name: "question",
5431
+ type: "string",
5432
+ required: true,
5433
+ description: "The question, in the user's words (max 4000 characters)."
5434
+ },
5435
+ {
5436
+ name: "scope",
5437
+ type: "object",
5438
+ 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."
5439
+ },
5440
+ {
5441
+ name: "conversation_id",
5442
+ type: "string",
5443
+ description: "Continue an existing conversation; the agent sees prior turns."
5444
+ },
5445
+ {
5446
+ name: "output_format",
5447
+ type: "object",
5448
+ description: "Shape the answer \u2014 `instruction` and/or `template`. Form only, never grounding."
5449
+ },
5450
+ {
5451
+ name: "wait_seconds",
5452
+ type: "number",
5453
+ default: "45",
5454
+ description: "Seconds to wait for the answer before returning `processing` (0\u201355, default 45)."
5455
+ }
5456
+ ]
5457
+ },
5458
+ { type: "heading", level: 3, id: "ask-response", text: "Response shape" },
5459
+ {
5460
+ type: "param-table",
5461
+ title: "Fields",
5462
+ params: [
5463
+ {
5464
+ name: "ask_id",
5465
+ type: "string",
5466
+ description: "The ask's id \u2014 pass to `talonic_get_answer` if still processing."
5467
+ },
5468
+ { name: "status", type: "string", description: "`completed`, `processing` or `error`." },
5469
+ {
5470
+ name: "conversation_id",
5471
+ type: "string",
5472
+ description: "This ask's conversation id; pass it back to continue the thread."
5473
+ },
5474
+ { name: "answer", type: "string", description: "The answer, in markdown." },
5475
+ {
5476
+ name: "citations[].quote",
5477
+ type: "string",
5478
+ description: "The exact source span backing a claim."
5479
+ },
5480
+ {
5481
+ name: "citations[].document_id",
5482
+ type: "string",
5483
+ description: "The document the citation came from."
5484
+ },
5485
+ {
5486
+ name: "citations[].filename",
5487
+ type: "string",
5488
+ description: "That document's filename."
5489
+ },
5490
+ {
5491
+ name: "verification.verdict",
5492
+ type: "string",
5493
+ description: "Whether every load-bearing claim checked out against its citation."
5494
+ },
5495
+ {
5496
+ name: "usage.credits_charged",
5497
+ type: "number",
5498
+ description: "Credits consumed by this ask."
5499
+ },
5500
+ {
5501
+ name: "waited_ms",
5502
+ type: "number",
5503
+ description: "How long the call actually waited before returning."
5504
+ }
5505
+ ]
5506
+ }
5507
+ ],
5508
+ related: [
5509
+ { label: "talonic_get_answer", slug: "talonic-get-answer" },
5510
+ { label: "talonic_find_data", slug: "talonic-find-data" },
5511
+ { label: "talonic_field_values", slug: "talonic-field-values" }
5512
+ ],
5513
+ faq: [
5514
+ {
5515
+ question: "What if the answer is not ready in time?",
5516
+ 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."
5517
+ }
5518
+ ],
5519
+ mentions: ["ask", "question answering", "RAG", "cited answer", "verification", "conversation"]
5520
+ },
5521
+ {
5522
+ slug: "talonic-get-answer",
5523
+ parentSlug: "tools",
5524
+ title: "talonic_get_answer",
5525
+ seoTitle: "talonic_get_answer \u2014 Poll an Ask for Its Answer",
5526
+ description: "MCP tool that polls an ask started by talonic_ask for its completed, cited answer.",
5527
+ content: [
5528
+ {
5529
+ type: "paragraph",
5530
+ 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."
5531
+ },
5532
+ { type: "heading", level: 3, id: "get-answer-use-when", text: "When to use" },
5533
+ {
5534
+ type: "list",
5535
+ items: [
5536
+ "`talonic_ask` returned `status: 'processing'` with an `ask_id` \u2014 poll every few seconds until `completed` or `error`."
5537
+ ]
5538
+ },
5539
+ { type: "heading", level: 3, id: "get-answer-do-not-use", text: "When not to use" },
5540
+ {
5541
+ type: "list",
5542
+ items: ["Asking a new question \u2014 use `talonic_ask`."]
5543
+ },
5544
+ { type: "heading", level: 3, id: "get-answer-params", text: "Parameters" },
5545
+ {
5546
+ type: "param-table",
5547
+ params: [
5548
+ {
5549
+ name: "ask_id",
5550
+ type: "string",
5551
+ required: true,
5552
+ description: "The ask id, from `talonic_ask`."
5553
+ }
5554
+ ]
5555
+ },
5556
+ { type: "heading", level: 3, id: "get-answer-response", text: "Response shape" },
5557
+ {
5558
+ type: "param-table",
5559
+ title: "Fields",
5560
+ params: [
5561
+ { name: "status", type: "string", description: "`completed`, `processing` or `error`." },
5562
+ {
5563
+ name: "answer",
5564
+ type: "string",
5565
+ description: "The answer, in markdown, once completed."
5566
+ },
5567
+ {
5568
+ name: "citations[]",
5569
+ type: "array",
5570
+ description: "Source spans backing the answer, once completed."
5571
+ },
5572
+ {
5573
+ name: "verification",
5574
+ type: "object",
5575
+ description: "Verdict on whether claims checked out, once completed."
5576
+ },
5577
+ { name: "usage", type: "object", description: "Credits and tokens consumed." },
5578
+ {
5579
+ name: "poll_hint",
5580
+ type: "string",
5581
+ description: "Present only while `status` is `processing`; a hint to poll again shortly."
5582
+ }
5583
+ ]
5584
+ }
5585
+ ],
5586
+ related: [{ label: "talonic_ask", slug: "talonic-ask" }],
5587
+ faq: [
5588
+ {
5589
+ question: "How often should I poll?",
5590
+ answer: "Every 2\u20135 seconds; most asks complete within a minute."
5591
+ }
5592
+ ],
5593
+ mentions: ["get answer", "poll ask", "answer status"]
4784
5594
  }
4785
5595
  ];
4786
5596