get_grounding_result
Read the two-pass result of a grounding scan (supported, conflict, gap, note). The poll companion to check_content_grounding - it never starts a scan and never charges credits. Poll with scan_id; content_id skips a still-running scan.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
team_id | integer | Yes | — | Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions. |
scan_id | string (uuid) | No | — | The scan id returned by check_content_grounding. Pass this when polling — it reads the exact run you started, whatever its status. Either scan_id or content_id is required. |
content_id | string (uuid) | No | — | The content id returned by check_content_grounding. Passed alone, it reads the latest COMPLETED grounding for that document and skips any scan still running — so use scan_id, not this, when polling. Either scan_id or content_id is required. |
Input Schema
{
"type": "object",
"required": [
"team_id"
],
"properties": {
"scan_id": {
"type": "string",
"format": "uuid",
"description": "The scan id returned by check_content_grounding. Pass this when polling — it reads the exact run you started, whatever its status. Either scan_id or content_id is required."
},
"team_id": {
"type": "integer",
"minimum": 1,
"description": "Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions."
},
"content_id": {
"type": "string",
"format": "uuid",
"description": "The content id returned by check_content_grounding. Passed alone, it reads the latest COMPLETED grounding for that document and skips any scan still running — so use scan_id, not this, when polling. Either scan_id or content_id is required."
}
}
}Output Schema
{
"type": "object",
"required": [
"content_id",
"status",
"link_url",
"summary"
],
"properties": {
"claims": {
"type": "array",
"items": {
"type": "object",
"properties": {
"refs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": [
"string",
"null"
]
},
"pass": {
"enum": [
1,
2
],
"type": "integer"
},
"urls": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"title": {
"type": "string"
}
}
}
},
"source": {
"enum": [
"context_item",
"project_brief",
"brand_foundation",
"web_research",
"connected_app"
],
"type": "string"
},
"link_url": {
"type": "string"
},
"owner_id": {
"type": "integer"
},
"collection": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"shared_collection_id": {
"type": "integer"
}
}
},
"app_sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"record_id": {
"type": "string"
}
}
}
},
"research_id": {
"type": "string"
},
"context_item_id": {
"type": [
"string",
"null"
]
},
"research_turn_id": {
"type": "string"
},
"core_context_item_id": {
"type": "integer"
}
}
}
},
"notes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"enum": [
"other_collection_disagrees"
],
"type": "string"
},
"refs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": [
"string",
"null"
]
},
"pass": {
"enum": [
1,
2
],
"type": "integer"
},
"urls": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"title": {
"type": "string"
}
}
}
},
"source": {
"enum": [
"context_item",
"project_brief",
"brand_foundation",
"web_research",
"connected_app"
],
"type": "string"
},
"link_url": {
"type": "string"
},
"owner_id": {
"type": "integer"
},
"collection": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"shared_collection_id": {
"type": "integer"
}
}
},
"app_sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"record_id": {
"type": "string"
}
}
}
},
"research_id": {
"type": "string"
},
"context_item_id": {
"type": [
"string",
"null"
]
},
"research_turn_id": {
"type": "string"
},
"core_context_item_id": {
"type": "integer"
}
}
}
},
"message": {
"type": "string"
}
}
},
"description": "Pass-2 disagreements from other collections (no finding/fix)."
},
"value": {
"type": [
"string",
"null"
]
},
"bucket": {
"enum": [
"supported",
"conflict",
"gap",
"note"
],
"type": "string"
},
"subject": {
"type": [
"string",
"null"
]
},
"claim_id": {
"type": [
"string",
"null"
]
},
"claim_text": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": [
"string",
"null"
],
"description": "Decimal string confidence (e.g. \"0.82\")."
},
"finding_id": {
"type": [
"string",
"null"
]
},
"claim_subject": {
"type": "object",
"required": [
"kind",
"company_name",
"confidence"
],
"properties": {
"kind": {
"enum": [
"team",
"company",
"general",
"unknown"
],
"type": "string"
},
"confidence": {
"type": [
"number",
"null"
],
"maximum": 1,
"minimum": 0
},
"company_name": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"conflict_scope": {
"enum": [
"team_facts",
"company_material"
],
"type": "string"
},
"source_excerpt": {
"type": [
"string",
"null"
]
},
"support_only_calls": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"type": [
"string",
"null"
]
},
"kind": {
"type": [
"string",
"null"
]
},
"company": {
"type": [
"string",
"null"
]
}
}
},
"description": "Present when claim rests solely on calls; tell the user it relies only on spoken calls."
},
"add_to_library_eligible": {
"type": "boolean",
"description": "True only for complete-coverage gaps eligible to add to library (false for company gaps and notes)."
}
}
},
"description": "Extracted factual claims with verdicts (creator-only)."
},
"status": {
"enum": [
"running",
"complete",
"failed",
"none"
],
"type": "string",
"description": "running = poll get_grounding_result(scan_id), do not re-scan. none = never scanned."
},
"message": {
"type": "string",
"description": "Present when running or when details are withheld."
},
"scan_id": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "Scan run UUID (null only if no scan has run)."
},
"summary": {
"type": "object",
"properties": {
"gaps": {
"type": "integer",
"description": "Claims unsupported across checked sources."
},
"notes": {
"type": "integer",
"description": "Claims contradicted only in pass 2 collections (disjoint from supported/conflicts/gaps). Present when > 0."
},
"conflicts": {
"type": "integer",
"description": "Claims contradicting a built-from (pass 1) source."
},
"supported": {
"type": "integer",
"description": "Claims backed by built-from sources, other collections, or recorded research."
},
"total_claims": {
"type": "integer"
},
"corpus_freshness": {
"type": [
"object",
"null"
],
"description": "Pre-scan freshness sweep details (free).",
"additionalProperties": true
}
},
"description": "Claim counts (present even when details_visible is false)."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": [
"string",
"null"
],
"description": "conflict or gap."
},
"status": {
"type": [
"string",
"null"
],
"description": "pending, acknowledged, dismissed, or resolved."
},
"subject": {
"type": [
"string",
"null"
]
},
"link_url": {
"type": [
"string",
"null"
]
},
"severity": {
"type": [
"string",
"null"
]
},
"statement": {
"type": [
"string",
"null"
],
"description": "Document claim vs library evidence."
},
"finding_id": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "Pass to apply_finding_fix, get_ci_finding, or update_ci_finding_status."
},
"claim_subject": {
"type": "object",
"required": [
"kind",
"company_name",
"confidence"
],
"properties": {
"kind": {
"enum": [
"team",
"company",
"general",
"unknown"
],
"type": "string"
},
"confidence": {
"type": [
"number",
"null"
],
"maximum": 1,
"minimum": 0
},
"company_name": {
"type": [
"string",
"null"
]
}
},
"description": "Company attribution (team, company, general, unknown).",
"additionalProperties": false
},
"suggested_fix": {
"type": [
"object",
"null"
],
"description": "Stored recommendation (ai_prompt/new_value/append_value/insert_value); review before calling apply_finding_fix.",
"additionalProperties": true
},
"conflict_scope": {
"enum": [
"team_facts",
"company_material"
],
"type": "string",
"description": "Conflicts only: team_facts vs company_material (fixes document, never team facts)."
},
"recommendation": {
"type": [
"string",
"null"
]
},
"context_item_id": {
"type": [
"string",
"null"
],
"description": "Target context item for apply_finding_fix, or null if revising the document."
},
"has_suggested_fix": {
"type": "boolean"
}
}
},
"description": "Actionable conflicts and gaps (creator-only)."
},
"link_url": {
"type": "string",
"description": "App URL opening the document grounding panel."
},
"content_id": {
"type": "string",
"format": "uuid",
"description": "Scanned content UUID (new item ID when submitted via content)."
},
"corpus_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": [
"string",
"null"
]
},
"pass": {
"enum": [
1,
2
],
"type": "integer"
},
"urls": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"title": {
"type": "string"
}
}
}
},
"source": {
"type": [
"string",
"null"
],
"description": "context_item, project_brief, brand_foundation, web_research, connected_app, or generation."
},
"link_url": {
"type": [
"string",
"null"
]
},
"owner_id": {
"type": "integer"
},
"collection": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"shared_collection_id": {
"type": "integer"
}
}
},
"app_sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"app": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"record_id": {
"type": "string"
}
}
}
},
"research_id": {
"type": "string"
},
"context_item_id": {
"type": [
"string",
"null"
]
},
"content_category": {
"type": [
"string",
"null"
],
"description": "company_authoritative, reference_material, or unclassified."
},
"research_turn_id": {
"type": "string"
},
"core_context_item_id": {
"type": "integer"
}
}
},
"description": "Sources grounded against at scan time (creator-only)."
},
"conflict_check": {
"type": "object",
"required": [
"available",
"reason",
"confirmed_items",
"unconfirmed_items",
"message"
],
"properties": {
"reason": {
"enum": [
"no_company_overview",
"no_confirmed_sources",
"items_unconfirmed"
],
"type": "string"
},
"message": {
"type": "string",
"description": "Plain-language status and next step; relay to the user."
},
"available": {
"type": "boolean",
"description": "False = no conflicts could be raised; true with reason = partial check."
},
"confirmed_items": {
"type": "integer"
},
"unconfirmed_items": {
"type": "integer"
}
},
"description": "Present to creators only when conflict checking could not run or was partial. If present, warn the user that 0 conflicts is incomplete and relay message."
},
"excluded_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"string",
"null"
]
},
"name": {
"type": "string"
},
"reason": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
}
},
"additionalProperties": true
},
"description": "Unread items skipped due to sync_lock or library_token_budget (name shown to scan runner only)."
},
"coverage_reason": {
"type": [
"string",
"null"
],
"description": "Why coverage was incomplete (library_catch_up, library_extraction_failed, library_token_budget, source_access_changed, reader_scope_narrower, source_content_changed, support_lookup_incomplete); null when complete."
},
"details_visible": {
"type": "boolean",
"description": "False for non-creators (findings, claims, corpus_items omitted)."
},
"coverage_complete": {
"type": "boolean",
"description": "False when some sources were unread; also inspect coverage_reason and excluded_items before acting on gaps."
}
}
}Instructions
When to use: check_content_grounding returned running and you need to poll it, or the user wants to re-read a document's last grounding result without paying for a new scan.
Reads the two-pass result of a grounding scan (supported, conflict, gap, note). It never starts a scan, never browses, and never charges credits, so it is always safe to call. Reads shared scans only; isolated private-evidence grounding runs in the Marcora app are excluded.
How two-pass grounding works
- Pass 1 (built-from sources): checks the sources the document was built from -
context_item,project_briefandbrand_foundation, plus recordedweb_researchandconnected_appmaterial used during generation. Conflicts come only from what the document was built from. Recorded research can support a claim, never contradict it. - Pass 2 (other collections): checks the team's other accessible collections for support on the remaining claims. Other collections can support a claim or add a note, never raise a conflict. A claim that pass 1 could not back and another collection disagrees with comes back in the
notebucket; a supported claim that another collection disagrees with carriesnotes[](kind: "other_collection_disagrees"). Notes have no finding and no fix action. - Claim subject (company attribution): each claim and finding reports
claim_subject({ kind: "team" | "company" | "general" | "unknown", company_name, confidence }). A claim about the user's own company (team) is checked only against material about their company; a claim about another named company (company) is checked against material about that company, which can support or contradict it. On conflict claims and conflict findings,conflict_scopeis"team_facts"(disagrees with your own facts) or"company_material"(the document disagrees with your material about that company, not your own facts). A company conflict's fix revises the document (context_item_id: null), never your facts, and a company gap offers no add-to-library (add_to_library_eligible: false; the backend refuses it). - Recorded research appears as a source; grounding itself never browses. It reads the team's library and the research and connected-app records captured while the document was drafted. It does not search the web or query live apps.
Which id to pass - this is the part that matters
scan_id- reads that exact scan, whatever its status. This is what you want when polling: it always reports the run you actually started. On a completed scan with stored scan history (ci_scan_claims), it returns that scan's frozen snapshot: the claims and finding statuses and counts as they were captured when the scan completed. If a source the scan cited was later erased, the snapshot can no longer be served and the call returnsGrounding result not found.(404).content_id(with noscan_id) - reads the latest completed scan's metadata together with the document's live claims and live finding statuses and counts. Good for "what is this document's grounding state right now": a finding you dismissed withupdate_ci_finding_status(dismissed) or resolved withapply_finding_fix(resolved) shows its updated status and summary counts immediately, without re-scanning.
:warning: Do not poll with
content_id
content_iddeliberately skips a scan that is still running. If you poll with it, you get the previous result back markedcomplete- and you will believe your new scan has finished when it has not. Nothing errors; the answer is just quietly the wrong one.When
check_content_groundinghands you ascan_id, poll with thatscan_id.
Poll every 15-30 seconds. A fresh scan usually needs 120-150 seconds.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
team_id |
integer | Yes** | Team ID to act in (required on external MCP; optional in bound sessions) |
scan_id |
string (uuid) | No* | The scan to read. Use this when polling |
content_id |
string (uuid) | No* | Read the latest completed grounding for this document |
* One of scan_id or content_id is required. ** team_id is required on external MCP.
Output
Identical to check_content_grounding - the same envelope, so the same handling works for both. See that tool for the full field list.
Each claim also carries bucket (supported, conflict, gap or note), optional notes[], claim_subject, conflict_scope and add_to_library_eligible; summary includes a notes count; and each source reference carries source, pass and its provenance metadata (collection, core_context_item_id, research_id, research_turn_id, owner_id, urls, app_sources). check_content_grounding lists every field.
As there: confidence on each claim is a string, e.g. "0.82", not a number.
conflict_check(object): Present only for the content's creator when conflicts could not be checked (available: false) or were only partly checked (available: truewith a reason). Fields:available,reason(no_company_overview,no_confirmed_sources,items_unconfirmed),confirmed_items,unconfirmed_items,message. When present, tell the user thatsummary.conflictsof0does not mean the content agrees with their sources and relaymessage
As there, a supported claim may carry support_only_calls: it is present only when every source that supports the claim is a call, with one entry per call (date, kind, company), and absent otherwise or for calls the user cannot see. Tell the user such a claim rests only on calls, which are one conversation's word rather than a written source.
get_grounding_result returns the same coverage fields as check_content_grounding.
Coverage: before you call a gap unsupported
A gap means the check found nothing in the reference library that backs a claim. That only means the claim is unsupported if the check could read the whole library. The response tells you whether it could:
coverage_complete(boolean):falsemeans some context items were not read, so a claim reported as a gap may still have support in an unread item.truedoes not by itself mean every context item was read:excluded_itemslists any item the check left out, and it can be present even whencoverage_completeistrue.coverage_reason(string or null): why coverage is incomplete.nullwhencoverage_completeistrue.library_catch_up: some context items have not been prepared for grounding yet, so this check did not use them. Re-run the check to include more of them.library_extraction_failed: some context items could not be prepared, so this check could not use them.library_token_budget: the reference library is larger than one check can read, so this check did not use every item.excluded_itemslists the unread items (reason: "library_token_budget").source_access_changed: one or more sources the document was built from are no longer accessible to the scan, so coverage is incomplete.reader_scope_narrower: you can read fewer sources than the person who ran the check, so results may be incomplete for you. Re-check to refresh.source_content_changed: the document or a source this check read was edited after the check completed. Re-run the check to refresh the results.support_lookup_incomplete: the pass-2 support lookup across other collections did not finish.
excluded_items(array, present only when the check skipped at least one context item): context items this check did not read because they were being edited while the check ran (sync_lock) or because the reference library was larger than one check can read (library_token_budget). Each entry hasid,reason(sync_lockorlibrary_token_budget) andsource(context_itemorproject_brief). An item's name is never shown to anyone except the person who ran the check; everyone else, including the content's creator, gets ids only. A skipped item can appear even whencoverage_completeistrue, so check both fields.
Check coverage_complete (and excluded_items) before treating any gap as unsupported. A gap from an incomplete check means "not confirmed by what was checked", not "the reference library has nothing on this".
Errors
- Provide 'scan_id' or 'content_id' (400) - neither was supplied.
- Not a valid UUID (400) - malformed
scan_idorcontent_id. - You are not authorized to perform this action. (403) - the token's user has a collaborator role (collaborators can't read grounding results; reading them requires an Admin or Creator role).
- Grounding result not found. (tool error) — no accessible grounding scan or document result for that scan_id or content_id in your team. For a historical
scan_idsnapshot it is also returned when a source the scan cited was later erased - scan_id and content_id refer to different content (400) - pass
scan_idalone.
Example prompts
- "Is that check done yet?"
- "What did the last grounding pass find on this doc?"
Links: present link_url to the user exactly as returned — copy it character for character. Never retype, shorten, or rebuild a link or the IDs inside it.