Skip to main content
Glama

Ardaro Purchase Document Review

Analyze a receipt for human review

analyze_receipt
Read-onlyIdempotent

Extract and validate structured expense data from receipt text or a provider-neutral receipt extraction. Use when an agent needs merchant, date, tax, total, line items, confidence, duplicate detection, and arithmetic validation before creating or reconciling an expense. The result is advisory and always requires human review. Paid tool: 0.25 USDC per accepted request. Requires an owner-authorized x402-capable client. Use get_document_example with service='receipt' for a fixed free example.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesOne receipt supplied as bounded OCR text or a provider-neutral structured extraction. Choose exactly one input kind.
contract_versionYesRequired request contract identifier; send this exact version string.
existing_fingerprintsYesReceipt fingerprints already known to the caller for duplicate comparison. Supply lowercase 64-character SHA-256 hex strings, or an empty array when none are available; at most 10,000 entries.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / contract_version / description
      Added value: +"Required request contract identifier; send this exact version string."
    • addedInput schema / properties / existing_fingerprints / description
      Added value: +"Receipt fingerprints already known to the caller for duplicate comparison. Supply lowercase 64-character SHA-256 hex strings, or an empty array when none are available; at most 10,000 entries."
    • addedInput schema / properties / input / description
      Added value: +"One receipt supplied as bounded OCR text or a provider-neutral structured extraction. Choose exactly one input kind."
    • changedInput schema / properties / input / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "text"
      -      },
      -      "text": {
      -        "maxLength": 20000,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "text"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "analysis": {
      -        "additionalProperties": false,
      -        "minProperties": 1,
      -        "properties": {
      -          "currency": {
      -            "oneOf": [
      -              {
      -                "maxLength": 3,
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "confidence": {
      -                    "maximum": 100,
      -                    "minimum": 0,
      -                    "type": "number"
      -                  },
      -                  "value": {
      -                    "oneOf": [
      -                      {
      -                        "maxLength": 3,
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "number"
      -                      }
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "value"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "line_items": {
      -            "items": {
      -              "additionalProperties": false,
      -              "minProperties": 1,
      -              "properties": {
      -                "amount": {
      -                  "oneOf": [
      -                    {
      -                      "maxLength": 80,
      -                      "minLength": 1,
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "number"
      -                    },
      -                    {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "confidence": {
      -                          "maximum": 100,
      -                          "minimum": 0,
      -                          "type": "number"
      -                        },
      -                        "value": {
      -                          "oneOf": [
      -                            {
      -                              "maxLength": 80,
      -                              "minLength": 1,
      -                              "type": "string"
      -                            },
      -                            {
      -                              "type": "number"
      -                            }
      -                          ]
      -                        }
      -                      },
      -                      "required": [
      -                        "value"
      -                      ],
      -                      "type": "object"
      -                    }
      -                  ]
      -                },
      -                "description": {
      -                  "oneOf": [
      -                    {
      -                      "maxLength": 240,
      -                      "minLength": 1,
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "number"
      -                    },
      -                    {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "confidence": {
      -                          "maximum": 100,
      -                          "minimum": 0,
      -                          "type": "number"
      -                        },
      -                        "value": {
      -                          "oneOf": [
      -                            {
      -                              "maxLength": 240,
      -                              "minLength": 1,
      -                              "type": "string"
      -                            },
      -                            {
      -                              "type": "number"
      -                            }
      -                          ]
      -                        }
      -                      },
      -                      "required": [
      -                        "value"
      -                      ],
      -                      "type": "object"
      -                    }
      -                  ]
      -                },
      -                "product_code": {
      -                  "oneOf": [
      -                    {
      -                      "maxLength": 80,
      -                      "minLength": 1,
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "number"
      -                    },
      -                    {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "confidence": {
      -                          "maximum": 100,
      -                          "minimum": 0,
      -                          "type": "number"
      -                        },
      -                        "value": {
      -                          "oneOf": [
      -                            {
      -                              "maxLength": 80,
      -                              "minLength": 1,
      -                              "type": "string"
      -                            },
      -                            {
      -                              "type": "number"
      -                            }
      -                          ]
      -                        }
      -                      },
      -                      "required": [
      -                        "value"
      -                      ],
      -                      "type": "object"
      -                    }
      -                  ]
      -                },
      -                "quantity": {
      -                  "oneOf": [
      -                    {
      -                      "maxLength": 80,
      -                      "minLength": 1,
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "number"
      -                    },
      -                    {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "confidence": {
      -                          "maximum": 100,
      -                          "minimum": 0,
      -                          "type": "number"
      -                        },
      -                        "value": {
      -                          "oneOf": [
      -                            {
      -                              "maxLength": 80,
      -                              "minLength": 1,
      -                              "type": "string"
      -                            },
      -                            {
      -                              "type": "number"
      -                            }
      -                          ]
      -                        }
      -                      },
      -                      "required": [
      -                        "value"
      -                      ],
      -                      "type": "object"
      -                    }
      -                  ]
      -                },
      -                "unit_price": {
      -                  "oneOf": [
      -                    {
      -                      "maxLength": 80,
      -                      "minLength": 1,
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "number"
      -                    },
      -                    {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "confidence": {
      -                          "maximum": 100,
      -                          "minimum": 0,
      -                          "type": "number"
      -                        },
      -                        "value": {
      -                          "oneOf": [
      -                            {
      -                              "maxLength": 80,
      -                              "minLength": 1,
      -                              "type": "string"
      -                            },
      -                            {
      -                              "type": "number"
      -                            }
      -                          ]
      -                        }
      -                      },
      -                      "required": [
      -                        "value"
      -                      ],
      -                      "type": "object"
      -                    }
      -                  ]
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "maxItems": 100,
      -            "type": "array"
      -          },
      -          "purchase_date": {
      -            "oneOf": [
      -              {
      -                "maxLength": 10,
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "confidence": {
      -                    "maximum": 100,
      -                    "minimum": 0,
      -                    "type": "number"
      -                  },
      -                  "value": {
      -                    "oneOf": [
      -                      {
      -                        "maxLength": 10,
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "number"
      -                      }
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "value"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "purchase_order": {
      -            "oneOf": [
      -              {
      -                "maxLength": 160,
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "confidence": {
      -                    "maximum": 100,
      -                    "minimum": 0,
      -                    "type": "number"
      -                  },
      -                  "value": {
      -                    "oneOf": [
      -                      {
      -                        "maxLength": 160,
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "number"
      -                      }
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "value"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "receipt_reference": {
      -            "oneOf": [
      -              {
      -                "maxLength": 160,
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "confidence": {
      -                    "maximum": 100,
      -                    "minimum": 0,
      -                    "type": "number"
      -                  },
      -                  "value": {
      -                    "oneOf": [
      -                      {
      -                        "maxLength": 160,
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "number"
      -                      }
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "value"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "subtotal": {
      -            "oneOf": [
      -              {
      -                "maxLength": 32,
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "confidence": {
      -                    "maximum": 100,
      -                    "minimum": 0,
      -                    "type": "number"
      -                  },
      -                  "value": {
      -                    "oneOf": [
      -                      {
      -                        "maxLength": 32,
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "number"
      -                      }
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "value"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "tax": {
      -            "oneOf": [
      -              {
      -                "maxLength": 32,
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "confidence": {
      -                    "maximum": 100,
      -                    "minimum": 0,
      -                    "type": "number"
      -                  },
      -                  "value": {
      -                    "oneOf": [
      -                      {
      -                        "maxLength": 32,
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "number"
      -                      }
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "value"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "total": {
      -            "oneOf": [
      -              {
      -                "maxLength": 32,
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "confidence": {
      -                    "maximum": 100,
      -                    "minimum": 0,
      -                    "type": "number"
      -                  },
      -                  "value": {
      -                    "oneOf": [
      -                      {
      -                        "maxLength": 32,
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "number"
      -                      }
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "value"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "vendor": {
      -            "oneOf": [
      -              {
      -                "maxLength": 160,
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "confidence": {
      -                    "maximum": 100,
      -                    "minimum": 0,
      -                    "type": "number"
      -                  },
      -                  "value": {
      -                    "oneOf": [
      -                      {
      -                        "maxLength": 160,
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "number"
      -                      }
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "value"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "kind": {
      -        "const": "structured"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "analysis"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "kind": {
      +        "const": "text",
      +        "description": "Selects receipt text input; supply the text property."
      +      },
      +      "text": {
      +        "description": "OCR or receipt text for one document, up to 20,000 characters. Exclude payment-card data, credentials, customer-record payloads, and financial posting instructions.",
      +        "maxLength": 20000,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "analysis": {
      +        "additionalProperties": false,
      +        "description": "Provider-neutral receipt extraction using only the listed fields. Omit fields that were not extracted.",
      +        "minProperties": 1,
      +        "properties": {
      +          "currency": {
      +            "description": "Three-letter currency code shown on the receipt, for example USD. Supply the extracted value directly or wrap it with optional extraction confidence.",
      +            "oneOf": [
      +              {
      +                "maxLength": 3,
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "confidence": {
      +                    "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
      +                    "maximum": 100,
      +                    "minimum": 0,
      +                    "type": "number"
      +                  },
      +                  "value": {
      +                    "description": "The extracted field value, supplied as text or a number before receipt normalization.",
      +                    "oneOf": [
      +                      {
      +                        "maxLength": 3,
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "number"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "value"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "line_items": {
      +            "description": "Extracted receipt line items, limited to 100 entries; omit unavailable item fields.",
      +            "items": {
      +              "additionalProperties": false,
      +              "minProperties": 1,
      +              "properties": {
      +                "amount": {
      +                  "description": "Extended amount printed for this line item, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence.",
      +                  "oneOf": [
      +                    {
      +                      "maxLength": 80,
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "confidence": {
      +                          "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
      +                          "maximum": 100,
      +                          "minimum": 0,
      +                          "type": "number"
      +                        },
      +                        "value": {
      +                          "description": "The extracted field value, supplied as text or a number before receipt normalization.",
      +                          "oneOf": [
      +                            {
      +                              "maxLength": 80,
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            {
      +                              "type": "number"
      +                            }
      +                          ]
      +                        }
      +                      },
      +                      "required": [
      +                        "value"
      +                      ],
      +                      "type": "object"
      +                    }
      +                  ]
      +                },
      +                "description": {
      +                  "description": "Item description printed on the receipt. Supply the extracted value directly or wrap it with optional extraction confidence.",
      +                  "oneOf": [
      +                    {
      +                      "maxLength": 240,
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "confidence": {
      +                          "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
      +                          "maximum": 100,
      +                          "minimum": 0,
      +                          "type": "number"
      +                        },
      +                        "value": {
      +                          "description": "The extracted field value, supplied as text or a number before receipt normalization.",
      +                          "oneOf": [
      +                            {
      +                              "maxLength": 240,
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            {
      +                              "type": "number"
      +                            }
      +                          ]
      +                        }
      +                      },
      +                      "required": [
      +                        "value"
      +                      ],
      +                      "type": "object"
      +                    }
      +                  ]
      +                },
      +                "product_code": {
      +                  "description": "Product identifier or SKU printed for this line item. Supply the extracted value directly or wrap it with optional extraction confidence.",
      +                  "oneOf": [
      +                    {
      +                      "maxLength": 80,
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "confidence": {
      +                          "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
      +                          "maximum": 100,
      +                          "minimum": 0,
      +                          "type": "number"
      +                        },
      +                        "value": {
      +                          "description": "The extracted field value, supplied as text or a number before receipt normalization.",
      +                          "oneOf": [
      +                            {
      +                              "maxLength": 80,
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            {
      +                              "type": "number"
      +                            }
      +                          ]
      +                        }
      +                      },
      +                      "required": [
      +                        "value"
      +                      ],
      +                      "type": "object"
      +                    }
      +                  ]
      +                },
      +                "quantity": {
      +                  "description": "Quantity purchased for this line item. Supply the extracted value directly or wrap it with optional extraction confidence.",
      +                  "oneOf": [
      +                    {
      +                      "maxLength": 80,
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "confidence": {
      +                          "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
      +                          "maximum": 100,
      +                          "minimum": 0,
      +                          "type": "number"
      +                        },
      +                        "value": {
      +                          "description": "The extracted field value, supplied as text or a number before receipt normalization.",
      +                          "oneOf": [
      +                            {
      +                              "maxLength": 80,
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            {
      +                              "type": "number"
      +                            }
      +                          ]
      +                        }
      +                      },
      +                      "required": [
      +                        "value"
      +                      ],
      +                      "type": "object"
      +                    }
      +                  ]
      +                },
      +                "unit_price": {
      +                  "description": "Price per unit for this line item, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence.",
      +                  "oneOf": [
      +                    {
      +                      "maxLength": 80,
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "confidence": {
      +                          "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
      +                          "maximum": 100,
      +                          "minimum": 0,
      +                          "type": "number"
      +                        },
      +                        "value": {
      +                          "description": "The extracted field value, supplied as text or a number before receipt normalization.",
      +                          "oneOf": [
      +                            {
      +                              "maxLength": 80,
      +                              "minLength": 1,
      +                              "type": "string"
      +                            },
      +                            {
      +                              "type": "number"
      +                            }
      +                          ]
      +                        }
      +                      },
      +                      "required": [
      +                        "value"
      +                      ],
      +                      "type": "object"
      +                    }
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "maxItems": 100,
      +            "type": "array"
      +          },
      +          "purchase_date": {
      +            "description": "Purchase date as extracted; YYYY-MM-DD is recommended. Supply the extracted value directly or wrap it with optional extraction confidence.",
      +            "oneOf": [
      +              {
      +                "maxLength": 10,
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "confidence": {
      +                    "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
      +                    "maximum": 100,
      +                    "minimum": 0,
      +                    "type": "number"
      +                  },
      +                  "value": {
      +                    "description": "The extracted field value, supplied as text or a number before receipt normalization.",
      +                    "oneOf": [
      +                      {
      +                        "maxLength": 10,
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "number"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "value"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "purchase_order": {
      +            "description": "Purchase-order reference printed on the receipt; this does not select or link an Ardaro job. Supply the extracted value directly or wrap it with optional extraction confidence.",
      +            "oneOf": [
      +              {
      +                "maxLength": 160,
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "confidence": {
      +                    "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
      +                    "maximum": 100,
      +                    "minimum": 0,
      +                    "type": "number"
      +                  },
      +                  "value": {
      +                    "description": "The extracted field value, supplied as text or a number before receipt normalization.",
      +                    "oneOf": [
      +                      {
      +                        "maxLength": 160,
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "number"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "value"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "receipt_reference": {
      +            "description": "Receipt, invoice, or transaction reference printed on the document. Supply the extracted value directly or wrap it with optional extraction confidence.",
      +            "oneOf": [
      +              {
      +                "maxLength": 160,
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "confidence": {
      +                    "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
      +                    "maximum": 100,
      +                    "minimum": 0,
      +                    "type": "number"
      +                  },
      +                  "value": {
      +                    "description": "The extracted field value, supplied as text or a number before receipt normalization.",
      +                    "oneOf": [
      +                      {
      +                        "maxLength": 160,
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "number"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "value"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "subtotal": {
      +            "description": "Receipt subtotal before tax, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence.",
      +            "oneOf": [
      +              {
      +                "maxLength": 32,
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "confidence": {
      +                    "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
      +                    "maximum": 100,
      +                    "minimum": 0,
      +                    "type": "number"
      +                  },
      +                  "value": {
      +                    "description": "The extracted field value, supplied as text or a number before receipt normalization.",
      +                    "oneOf": [
      +                      {
      +                        "maxLength": 32,
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "number"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "value"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "tax": {
      +            "description": "Total tax amount printed on the receipt, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence.",
      +            "oneOf": [
      +              {
      +                "maxLength": 32,
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "confidence": {
      +                    "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
      +                    "maximum": 100,
      +                    "minimum": 0,
      +                    "type": "number"
      +                  },
      +                  "value": {
      +                    "description": "The extracted field value, supplied as text or a number before receipt normalization.",
      +                    "oneOf": [
      +                      {
      +                        "maxLength": 32,
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "number"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "value"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "total": {
      +            "description": "Final receipt total, in the receipt currency. Supply the extracted value directly or wrap it with optional extraction confidence.",
      +            "oneOf": [
      +              {
      +                "maxLength": 32,
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "confidence": {
      +                    "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
      +                    "maximum": 100,
      +                    "minimum": 0,
      +                    "type": "number"
      +                  },
      +                  "value": {
      +                    "description": "The extracted field value, supplied as text or a number before receipt normalization.",
      +                    "oneOf": [
      +                      {
      +                        "maxLength": 32,
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "number"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "value"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "vendor": {
      +            "description": "Merchant or supplier name printed on the receipt. Supply the extracted value directly or wrap it with optional extraction confidence.",
      +            "oneOf": [
      +              {
      +                "maxLength": 160,
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "confidence": {
      +                    "description": "Optional caller-supplied extraction confidence: 0 to 1 is a fraction; values greater than 1 are percentages up to 100. A value of 1 means full confidence.",
      +                    "maximum": 100,
      +                    "minimum": 0,
      +                    "type": "number"
      +                  },
      +                  "value": {
      +                    "description": "The extracted field value, supplied as text or a number before receipt normalization.",
      +                    "oneOf": [
      +                      {
      +                        "maxLength": 160,
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "number"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "value"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "kind": {
      +        "const": "structured",
      +        "description": "Selects structured receipt input; supply the analysis property."
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "analysis"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes well beyond them: it discloses the commercial model (0.25 USDC per accepted request), an authorization prerequisite (owner-authorized x402-capable client), and that output is advisory and always requires human review. These are material behaviors an agent cannot infer from annotations or schema.

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

Conciseness5/5

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

Four sentences, each carrying non-redundant load: capability, usage condition, cost/auth/review caveats, and the free-example alternative. Front-loaded with what it does, with caveats and routing following.

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?

With an output schema present, return values need not be re-explained, and 100% schema coverage handles inputs. The description fills the remaining gaps an agent needs — pricing, required client authorization, mandatory human review, and a free alternative — leaving nothing essential unstated.

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 the parameters (contract_version, input oneOf kinds, existing_fingerprints) are already fully documented in the schema. The description only alludes to duplicate detection and confidence, adding no syntax or format detail beyond the schema; baseline 3 applies when the schema does the heavy lifting.

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?

Specific verb+resource: 'Extract and validate structured expense data from receipt text or a provider-neutral receipt extraction,' and it enumerates the exact fields produced (merchant, date, tax, total, line items, confidence). It also contrasts itself with a sibling by pointing to get_document_example for a free fixed example, so an agent can distinguish it without opening schemas.

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

Usage Guidelines5/5

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

States the trigger condition clearly — 'Use when an agent needs ... before creating or reconciling an expense' — which situates it relative to siblings like reconcile_purchase_documents and match_invoice. It additionally names the free alternative path (get_document_example with service='receipt'), giving both when-to-use and when-to-use-something-else.

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.

Resources