Skip to main content
Glama

Invoice Table

Validate invoice records

validate_invoice_records
Read-onlyIdempotent

Recheck structured invoice records for missing fields, invalid dates, arithmetic mismatches, and likely duplicates without reading files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
recordsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
recordsYes
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "records": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "category": {
      +            "type": "string"
      +          },
      +          "confidence": {
      +            "type": "number"
      +          },
      +          "currency": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "dueDate": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "duplicate": {
      +            "type": "boolean"
      +          },
      +          "duplicateOf": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "filename": {
      +            "type": "string"
      +          },
      +          "invoiceDate": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "invoiceNumber": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "issues": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "poNumber": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "reviewReasons": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "reviewStatus": {
      +            "enum": [
      +              "ready",
      +              "review",
      +              "blocked",
      +              "duplicate"
      +            ],
      +            "type": "string"
      +          },
      +          "subtotal": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "tax": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "total": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "valid": {
      +            "type": "boolean"
      +          },
      +          "vendor": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "warnings": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "filename",
      +          "category",
      +          "duplicate",
      +          "issues",
      +          "warnings",
      +          "confidence",
      +          "valid",
      +          "reviewStatus",
      +          "reviewReasons"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "summary": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "accountingEligibleCount": {
      +          "type": "integer"
      +        },
      +        "arithmeticCheckedCount": {
      +          "type": "integer"
      +        },
      +        "arithmeticMismatchCount": {
      +          "type": "integer"
      +        },
      +        "blockedCount": {
      +          "type": "integer"
      +        },
      +        "duplicateCount": {
      +          "type": "integer"
      +        },
      +        "invoiceCount": {
      +          "type": "integer"
      +        },
      +        "readyCount": {
      +          "type": "integer"
      +        },
      +        "reviewCount": {
      +          "type": "integer"
      +        },
      +        "totalsByCurrency": {
      +          "additionalProperties": {
      +            "type": "number"
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "invoiceCount",
      +        "readyCount",
      +        "reviewCount",
      +        "blockedCount",
      +        "duplicateCount",
      +        "arithmeticCheckedCount",
      +        "arithmeticMismatchCount",
      +        "accountingEligibleCount",
      +        "totalsByCurrency"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "records",
      +    "summary"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources