Skip to main content
Glama

Get context provenance

get_context_provenance
Read-only

Show which Trent results reference the customer's own material.

For one scan, group findings, recommendations, and security requirements
by the exact version of the document or tool report they reference.
Sources can be uploaded, pushed by CI, or synced by a connector. Use this
to answer "where did the file I uploaded get used?" or
"does this version still matter?".

This tool gives a read-only view of recorded references. Describe them
as "Trent referenced this passage when producing this finding". Do not claim the
document caused a finding or that Trent would have missed it without the
document; Trent has not run that comparison. When provenance_recorded is
false, say the scan kept no record of what it read. A missing record does
not prove that the scan used no context.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_context_provenance"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNoOpaque cursor from a previous call's `next_cursor`.
momentNoWhich scan to answer from: 'current' (the newest completed one), 'settled' (the same, but refused while a scan is publishing), or 'scan:{scan_id}' to pin one scan.current
project_idNoProject ID (provide either project_id or project_name)
revision_idNoNarrow the answer to one exact source version, as returned in a previous call or on a result's provenance. Omit for every version this scan read.
project_nameNoProject name (provide either project_id or project_name)

Output Schema

NameRequiredDescriptionDefault
errorNoTrue when the call itself failed. False for successful calls, including a scan still running, an already approved plan, or a repository classified as non-agentic. The reason field describes these workflow states.
reasonNoA stable snake_case code from the allowed set. Present on every error and on successful calls that carry a workflow state.
messageNoExactly one sentence written for the user. Never raw exception text or a backend error string, which may expose private details.
scan_idNoThe scan the answer is taken from.
metadataNoCaller metadata, such as 'expiration_warning'. Substantive results have their own fields. Never includes exception or backend error text, which may expose private details.
revisionsNoOne entry per version of the customer's material this scan accounts for.
next_stepsNoRecommended next actions.
project_idNoResolved Trent project identifier.
next_cursorNoPass back as `cursor` to read the next page. Absent when the last page was served.
provenance_recordedNoFalse when no record can be shown. reason says why: no_analysis, the scan kept no record (it predates provenance recording or read none); no_completed_scan; scan_running; or scan_not_in_project. Report the missing record. It does not establish that the scan used no customer context.
retry_after_secondsNoWith reason rate_limited, how many seconds Trent asks the caller to wait.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / $defs / ProvenanceRevision / properties / claim_counts / description
      Previous value: -"For external findings: how many of the file's findings Trent confirmed or dismissed. Dismissed findings are the ones get_security_posture lists as Rejected, with Trent's reason, in external_findings.unadopted_claims."New value: +"For external findings: how many of the file's findings Trent confirmed or dismissed. Dismissed findings are the ones get_security_posture lists as Rejected, with Trent's reason, in external_findings.unadopted_claims; an organization workspace withholds a reason Trent's analysis wrote. external_findings.upload_outcomes has each upload's outcomes."
  2. Changed6 schema fields changed
    • changedOutput schema / $defs / ProvenanceRevision / properties / claim_counts / description
      Previous value: -"For external findings: how many of the file's findings Trent confirmed or dismissed."New value: +"For external findings: how many of the file's findings Trent confirmed or dismissed. Dismissed findings are the ones get_security_posture lists as Rejected, with Trent's reason, in external_findings.unadopted_claims."
    • addedOutput schema / $defs / ProvenanceRevision / properties / limit_bytes
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "With failure_reason size_limit, the limit it exceeded, when Trent recorded it.",
      +  "title": "Limit Bytes"
      +}
    • addedOutput schema / $defs / ProvenanceRevision / properties / size_bytes
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "With failure_reason size_limit, the source's size, when Trent recorded it.",
      +  "title": "Size Bytes"
      +}
    • changedOutput schema / $defs / ProvenanceRevision / properties / status / description
      Previous value: -"ready, failed, anchors_unavailable, or carried. carried means an earlier scan read the source. Attribute that read to the earlier scan."New value: +"ready, failed, anchors_unavailable, or carried. carried means an earlier scan read the source. Attribute that read to the earlier scan. anchors_unavailable means Trent read the source but has no passages in it to cite; for an external findings file this is normal, since its findings reach results as claims (claim_counts), not as cited passages."
    • changedOutput schema / properties / provenance_recorded / description
      Previous value: -"False when the scan kept no record of the customer material it read, either because it predates provenance recording or read none. Report the missing record. It does not establish that the scan used no customer context."New value: +"False when no record can be shown. reason says why: no_analysis, the scan kept no record (it predates provenance recording or read none); no_completed_scan; scan_running; or scan_not_in_project. Report the missing record. It does not establish that the scan used no customer context."
    • addedOutput schema / properties / retry_after_seconds
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "With reason rate_limited, how many seconds Trent asks the caller to wait.",
      +  "title": "Retry After Seconds"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond readOnlyHint=true and openWorldHint=false, the description discloses the interpretive contract: describe references as 'Trent referenced this passage', never claim causation or that Trent would have missed something without the document. It also documents the provenance_recorded=false case and warns that a missing record does not prove no context was used. That is exactly the behavioral context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first two sentences, and each later sentence carries distinct information (source types, use-case questions, interpretation rules, degraded-record handling). The closing interpretive block runs several sentences and could be tightened, but nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return structure need not be explained; the description instead covers what an agent cannot infer: scan selection intent, source origins (uploaded, CI-pushed, connector-synced), and the degraded-record case. For a five-parameter read tool with full annotation and schema coverage, nothing essential is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the moment and revision_id parameters are already fully documented in the schema, so the baseline is 3. The description adds conceptual framing — provenance is per-scan and keyed to exact document/tool-report versions — but offers no syntax, formats, or constraints beyond what the schema supplies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource ('Show which Trent results reference the customer's own material') and the follow-up narrows the scope to one scan, grouping findings, recommendations, and security requirements by exact source version. That is far more precise than the title alone. It stops short of naming a sibling it is distinct from (e.g., find_related_sources or get_artifact), so the differentiation is inferred rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives concrete usage framing with two quoted user questions ('where did the file I uploaded get used?' and 'does this version still matter?') that tell an agent exactly which situation this tool answers. It also scopes the tool to 'one scan' and points at the recorded-reference view. There is no explicit when-not-to-use statement or named alternative, which keeps it below a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.