Document Integrity Validator
Server Details
AI reasoning checks any document against known international standards before your agent acts on it.
- Status
- Healthy
- Last Tested
- Transport
- Streamable HTTP
- URL
- Repository
- OjasKord/document-integrity-validator-mcp
- GitHub Stars
- 0
- Server Listing
- Document Integrity Validator MCP
Glama MCP Gateway
Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.
Full call logging
Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.
Tool access control
Enable or disable individual tools per connector, so you decide what your agents can and cannot do.
Managed credentials
Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.
Usage analytics
See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.
Tool Definition Quality
Average 4.7/5 across 2 of 2 tools scored.
The two tools have clearly distinct scopes: one validates a single document, the other validates a multi-document package. The descriptions explicitly cross-reference each other and state when to use which, leaving no ambiguity.
Both tool names follow the same verb_noun pattern: 'check_document' and 'check_document_package'. The suffix '_package' clearly extends the base name without changing the verb style, resulting in a consistent, predictable naming scheme.
With only two tools, the server feels thin for a domain that could include single-document validation, multi-document validation, and possibly standard lookup or generation. However, the two tools cover the two distinct input types, making the count borderline rather than clearly insufficient.
The tools cover single-document standard compliance and multi-document cross-checking, but the package tool only performs cross-document checks, not internal standard compliance. The description telling users to call check_document_package 'instead' of check_document is misleading—a full package validation would require running both tools sequentially, representing a notable gap.
Available Tools
2 toolscheck_documentCheck Document IntegrityARead-onlyInspect
Validates a document for internal consistency and completeness against the applicable international standard for its type. Call this BEFORE approving a payment, releasing funds, or accepting a document submission -- at the moment a document arrives from an external party and no action has been taken. Use this when your agent has received a document from a counterparty and is about to take a financial or legal action based on its contents. Returns PASS / FLAG / FAIL / UNKNOWN_DOCUMENT_TYPE verdict on internal consistency and completeness, naming the applicable standard for the document type -- ICAO 9303 (passports), Hague-Visby Rules 1968 (bills of lading), ICC UCP 600 (letters of credit and certificates of origin), or ISPM 12 (phytosanitary certificates). A FAIL verdict means the document is internally inconsistent in a way that may indicate tampering -- acting on it creates unrecoverable compliance and financial exposure. Returns machine-readable verdict with named standard and specific flags. When you have 2-20 related documents (e.g. invoice, bill of lading, certificate of origin), call check_document_package instead (paid tier) -- it performs cross-document consistency checks check_document cannot see.
| Name | Required | Description | Default |
|---|---|---|---|
| document_text | No | Extracted text content from the document. Provide this or document_image or both. | |
| document_image | No | Base64 encoded document image. Accepts raw base64 or a data URL (data:image/jpeg;base64,...). Supported types: JPEG, PNG, GIF, WEBP. | |
| document_type_hint | No | What the calling agent believes the document type is, e.g. "bill_of_lading", "passport", "certificate_of_origin". Optional -- the validator identifies the type independently. | |
| issuing_jurisdiction | No | Country or issuing body, e.g. "Singapore", "ICAO", "United Kingdom". Narrows jurisdiction-specific standard selection. |
Output Schema
| Name | Required | Description |
|---|---|---|
| flags | Yes | |
| reason | Yes | |
| verdict | Yes | |
| checked_at | Yes | |
| confidence | Yes | |
| _disclaimer | Yes | |
| hold_reason | No | |
| retry_after | No | |
| verdict_ttl | Yes | |
| agent_action | Yes | |
| analysis_type | Yes | |
| _upgrade_notice | No | |
| calls_remaining | Yes | |
| escalation_path | No | |
| assessed_against | Yes | Named standard, e.g. "ICAO Document 9303" -- null for UNKNOWN_DOCUMENT_TYPE |
| data_source_status | Yes | |
| known_issuing_standard | Yes | |
| document_type_identified | Yes |
Tool Definition Quality
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond the readOnly and destructive hints, the description discloses meaningful behavioral details: return verdicts (PASS/FLAG/FAIL/UNKNOWN_DOCUMENT_TYPE), the meaning of FAIL (possible tampering), and consequences of acting on it (unrecoverable compliance and financial exposure). No contradiction with annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured and front-loaded, starting with purpose, then usage, then return values, then alternatives. Every sentence adds value; no fluff or redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers purpose, when to use, what it returns, potential risks, and the sibling tool alternative. Given the rich schema and annotations, nothing critical is missing. Output schema exists, so return value details are not required in the description.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents all four parameters. The description does not add additional parameter-level semantics beyond what is already in the schema. Baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states the tool validates a document for internal consistency and completeness against applicable international standards, which is a specific verb+resource. It clearly distinguishes from the sibling tool check_document_package by noting when to use each, so purpose is unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly states when to call (BEFORE approving payment, releasing funds, or accepting a document submission, at the moment a document arrives from an external party) and when to use the alternative (check_document_package for 2-20 related documents). This is excellent guidance with clear exclusion criteria.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
check_document_packageCheck Document Package IntegrityARead-onlyInspect
Validates a package of 2-20 related trade finance documents for cross-document consistency. Call this BEFORE approving any multi-document trade finance transaction or cross-border shipment -- at the moment a set of 2-20 related documents arrives from an external party and funds have not been released. Use this when your agent has received a full trade finance package — such as invoice, bill of lading, and certificate of origin together — and must verify all documents are consistent with each other before releasing funds. Returns PASS/FLAG/FAIL verdict per document with mismatch details. Cross-checks all documents for consistency across numeric values, party names, reference numbers, dates, and commodity descriptions. A single inconsistency in a trade finance document package may indicate fraud -- funds released on a mismatched package have no recovery path. Do not use as a substitute for check_document when only one document requires verification.
| Name | Required | Description | Default |
|---|---|---|---|
| documents | Yes | Array of 2 to 20 related documents to assess individually and cross-check against each other. Each document must have a unique label. |
Output Schema
| Name | Required | Description |
|---|---|---|
| verdict | Yes | |
| documents | Yes | |
| checked_at | Yes | |
| confidence | Yes | |
| _disclaimer | Yes | |
| verdict_ttl | Yes | |
| agent_action | Yes | |
| analysis_type | Yes | |
| calls_remaining | Yes | |
| package_verdict | Yes | |
| data_source_status | Yes | |
| package_agent_action | Yes | |
| cross_document_conflicts | Yes |
Tool Definition Quality
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond annotations (readOnlyHint=true, destructiveHint=false), the description discloses the exact return format ('Returns PASS/FLAG/FAIL verdict per document with mismatch details'), the fields cross-checked (numeric values, party names, reference numbers, dates, commodity descriptions), and the fraud consequence ('A single inconsistency... may indicate fraud -- funds released on a mismatched package have no recovery path'). No contradiction with annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately sized and front-loaded with the verb and resource. However, there is slight redundancy among the usage phrases ('Call this BEFORE approving...' and 'Use this when your agent has received...' and 'at the moment a set... arrives'), which could be tightened. Still, every sentence contributes meaningful guidance.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity, the description is complete: it covers scope (2-20 documents), trigger conditions, return values, cross-check fields, fraud context, and explicitly excludes single-document use. An output schema exists, so return-value details need not be fully repeated, but the description already summarizes them. The description is fully self-contained for correct selection and invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The description does not add any parameter-level details beyond what the schema already provides for the 'documents' array and its properties. The schema descriptions already cover label, document_text, document_image, document_type_hint, and issuing_jurisdiction.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with 'Validates a package of 2-20 related trade finance documents for cross-document consistency,' using a specific verb and resource. It explicitly distinguishes itself from the sibling tool check_document by stating 'Do not use as a substitute for check_document when only one document requires verification.'
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit when-to-use guidance: 'Call this BEFORE approving any multi-document trade finance transaction or cross-border shipment -- at the moment a set of 2-20 related documents arrives from an external party and funds have not been released.' It also names the alternative (check_document) and states when not to use this tool, satisfying the when/when-not/alternatives requirement.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Claim this connector by publishing a /.well-known/glama.json file on your server's domain with the following structure:
{
"$schema": "https://glama.ai/mcp/schemas/connector.json",
"maintainers": [{ "email": "your-email@example.com" }]
}The email address must match the email associated with your Glama account. Once published, Glama will automatically detect and verify the file within a few minutes.
Control your server's listing on Glama, including description and metadata
Access analytics and receive server usage reports
Get monitoring and health status updates for your server
Feature your server to boost visibility and reach more users
For users:
Full audit trail – every tool call is logged with inputs and outputs for compliance and debugging
Granular tool control – enable or disable individual tools per connector to limit what your AI agents can do
Centralized credential management – store and rotate API keys and OAuth tokens in one place
Change alerts – get notified when a connector changes its schema, adds or removes tools, or updates tool definitions, so nothing breaks silently
For server owners:
Proven adoption – public usage metrics on your listing show real-world traction and build trust with prospective users
Tool-level analytics – see which tools are being used most, helping you prioritize development and documentation
Direct user feedback – users can report issues and suggest improvements through the listing, giving you a channel you would not have otherwise
The connector status is unhealthy when Glama is unable to successfully connect to the server. This can happen for several reasons:
The server is experiencing an outage
The URL of the server is wrong
Credentials required to access the server are missing or invalid
If you are the owner of this MCP connector and would like to make modifications to the listing, including providing test credentials for accessing the server, please contact support@glama.ai.
Discussions
No comments yet. Be the first to start the discussion!
Related MCP Servers
Alicense-qualityAmaintenanceEnables AI agents to query live, human-approved rules before taking actions, ensuring compliance and reducing errors.28Apache 2.0- Alicense-qualityDmaintenanceEnables EU AI Act compliance for AI agent systems by providing risk classification, audit trails, gap analysis, and evidence package generation.59MIT
- AlicenseAqualityDmaintenanceCompliance and guardrails infrastructure for AI agents, enabling safe operations within regulatory boundaries like GDPR and EU AI Act.6MIT
- AlicenseAqualityBmaintenanceIssues, verifies, and exchanges portable cryptographic compliance passports for AI agents, enabling offline verification of regulatory compliance across 11 frameworks.3MIT
Your Connectors
Sign in to create a connector for this server.