Skip to main content
Glama

Analysis Crosscheck

analysis.crosscheck
Read-onlyIdempotent

Analyzes already extracted rows for consistency issues and underwriting risk contradictions, returning findings with row and field references in this call. Does not run or wait for extraction or save changes. Requires mcp:read and sends bounded row evidence to an external model: at most 80 rows from the first 200 matches, with long values shortened. Returns evidence coverage metadata.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "table_id": "<table_id>"
    },
    "name": "analysis.crosscheck"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idNoExtraction job ID, as returned when the job was created. Limits the analyzed rows to that job's documents; it must belong to table_id. Omit it to analyze rows from every job. This selects existing evidence; it does not start or wait for extraction.
filtersNoRow conditions combined with AND, also intersected with the job document restriction when job_id is supplied. An omitted or empty array adds no filtering. Each condition contains column, op, and value.
table_idYesID or slug of the table in the selected project whose already extracted rows are analyzed. When job_id is also given, that job must belong to this table.
project_slugNoSlug of the owned project to act on, as listed with the account's projects. When omitted, the account's single visible project is selected; omitting it fails if the account has several projects.

Output Schema

NameRequiredDescriptionDefault
summaryYesOverall assessment of the analyzed rows.
evidenceNoHow much row evidence the analysis covered.
mismatchesYesConsistency issues and risk contradictions found; empty when none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changed
    • changedInput schema / properties / filters / items / properties / column / description
      Previous value: -"Exact column name in the selected table, or document_record_id to select source file IDs. Unknown columns are rejected."New value: +"Name of a column in the selected table, as listed in its extraction columns, or document_record_id to match the source file ID of each row."
    • changedInput schema / properties / filters / items / properties / op / description
      Previous value: -"Comparison operator: eq/ne for equality/inequality, gt/gte/lt/lte for ordered comparisons, like for SQL patterns (% matches any sequence, _ one character), or in for membership."New value: +"How value is compared with the column: equal or not equal, greater or less than (or equal), SQL pattern match where % matches any sequence and _ one character, or membership in a list."
    • changedInput schema / properties / filters / items / properties / value / description
      Previous value: -"Value matching the column type. Use a scalar for comparisons, a string pattern for like (for example Acme%), or an array for in (a scalar is also accepted as one item; an empty array matches no rows)."New value: +"Value compared with the column, in the column's type. Supply a string pattern such as Acme% for like, and an array of candidates for in (a single value counts as a one-item list; an empty array matches no rows)."
    • changedInput schema / properties / job_id / description
      Previous value: -"Positive integer extraction job ID. Restricts rows to that job's document file IDs and must belong to table_id in the selected project. Omitting it adds no job restriction. This selects existing evidence; it does not start or wait for extraction."New value: +"Extraction job ID, as returned when the job was created. Limits the analyzed rows to that job's documents; it must belong to table_id. Omit it to analyze rows from every job. This selects existing evidence; it does not start or wait for extraction."
    • changedInput schema / properties / project_slug / description
      Previous value: -"Slug of an owned project. Optional only when the account has exactly one visible project; required for accounts with multiple visible projects."New value: +"Slug of the owned project to act on, as listed with the account's projects. When omitted, the account's single visible project is selected; omitting it fails if the account has several projects."
    • changedInput schema / properties / table_id / description
      Previous value: -"ID or slug of the table containing already extracted rows in the selected project. Required even with job_id; the job must belong to this table."New value: +"ID or slug of the table in the selected project whose already extracted rows are analyzed. When job_id is also given, that job must belong to this table."
    • addedOutput schema / properties / evidence / description
      Added value: +"How much row evidence the analysis covered."
    • addedOutput schema / properties / evidence / properties / job_document_count / description
      Added value: +"Documents in that job, or null without a job restriction."
    • addedOutput schema / properties / evidence / properties / job_id / description
      Added value: +"Job the rows were restricted to, or null."
    • addedOutput schema / properties / evidence / properties / rows_total / description
      Added value: +"Rows matching the selection."
    • addedOutput schema / properties / evidence / properties / rows_used / description
      Added value: +"Rows actually sent to the model."
    • addedOutput schema / properties / evidence / properties / truncated / description
      Added value: +"True when rows or long values were cut to fit the evidence limits."
    • addedOutput schema / properties / mismatches / description
      Added value: +"Consistency issues and risk contradictions found; empty when none."
    • addedOutput schema / properties / mismatches / items / properties / code / description
      Added value: +"Short label for the type of finding."
    • addedOutput schema / properties / mismatches / items / properties / message / description
      Added value: +"Explanation of the inconsistency or risk."
    • addedOutput schema / properties / mismatches / items / properties / row_refs / description
      Added value: +"document_record_id values of the rows involved."
    • addedOutput schema / properties / mismatches / items / properties / severity / description
      Added value: +"Impact of the finding."
    • addedOutput schema / properties / mismatches / items / properties / source_refs / description
      Added value: +"Field names from those rows that support the finding."
    • addedOutput schema / properties / summary / description
      Added value: +"Overall assessment of the analyzed rows."
  2. Changed7 schema fields changed
    • addedInput schema / properties / filters / description
      Added value: +"Row conditions combined with AND, also intersected with the job document restriction when job_id is supplied. An omitted or empty array adds no filtering. Each condition contains column, op, and value."
    • addedInput schema / properties / filters / items / properties / column / description
      Added value: +"Exact column name in the selected table, or document_record_id to select source file IDs. Unknown columns are rejected."
    • addedInput schema / properties / filters / items / properties / op / description
      Added value: +"Comparison operator: eq/ne for equality/inequality, gt/gte/lt/lte for ordered comparisons, like for SQL patterns (% matches any sequence, _ one character), or in for membership."
    • addedInput schema / properties / filters / items / properties / value / description
      Added value: +"Value matching the column type. Use a scalar for comparisons, a string pattern for like (for example Acme%), or an array for in (a scalar is also accepted as one item; an empty array matches no rows)."
    • addedInput schema / properties / job_id / description
      Added value: +"Positive integer extraction job ID. Restricts rows to that job's document file IDs and must belong to table_id in the selected project. Omitting it adds no job restriction. This selects existing evidence; it does not start or wait for extraction."
    • addedInput schema / properties / project_slug / description
      Added value: +"Slug of an owned project. Optional only when the account has exactly one visible project; required for accounts with multiple visible projects."
    • addedInput schema / properties / table_id / description
      Added value: +"ID or slug of the table containing already extracted rows in the selected project. Required even with job_id; the job must belong to this table."
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing a permission requirement ('Requires mcp:read'), data egress to an external model, and precise bounding behavior ('at most 80 rows from the first 200 matches, with long values shortened'). It also pre-empts the most likely false assumption by stating no extraction is started or awaited and no changes are saved, and notes evidence coverage metadata is returned.

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?

Three sentences, front-loaded with the purpose before constraints and egress details; each sentence carries distinct information (scope, side-effect disclaimers, permission/egress/bounds, return metadata). It is dense but not padded, though the final sentence about coverage metadata is nearly redundant with the output schema.

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?

For a read-only analysis tool with four params, full schema coverage and an output schema, the description covers everything an agent needs to decide and call correctly: prerequisites, absence of side effects, external data transmission, sampling limits, and the existence of coverage metadata.

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%, so job_id, filters, table_id and project_slug are already fully documented in the schema, including the job/table ownership constraint and AND semantics. The description adds no parameter-level detail beyond the general 'already extracted rows' framing, so the baseline of 3 applies.

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

Purpose5/5

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

States a specific verb and resource ('Analyzes already extracted rows') plus the exact artifact produced ('findings with row and field references'), and explicitly scopes itself as post-extraction analysis, which separates it from the jobs/splitters extraction family in the sibling list.

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?

Gives clear selection context: it operates on rows that were already extracted, and it 'Does not run or wait for extraction or save changes,' telling the agent this is neither an extraction trigger nor a write path. It stops short of naming a concrete alternative (e.g. analysis.credit_memo) for related analysis needs, so there are no explicit redirection rules.

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.