Skip to main content
Glama

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_receipt_example 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. Dates show when Glama detected each change.

  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 provide readOnlyHint, idempotentHint, and destructiveHint=false, but the description enriches behavior beyond those: it states the tool is advisory ('always requires human review'), is paid at 0.25 USDC per accepted request, requires an owner-authorized x402-capable client, and performs duplicate detection. It also reveals that purchase_order references do not link an Ardaro job, which manages expectations. These are material behavioral facts not captured by annotations. No contradiction with annotations; the description says 'extract and validate' which is consistent with a read-only, idempotent operation.

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?

The description is 4 sentences, packs the core purpose into the first sentence, and each subsequent sentence earns its place (usage condition, advisory/paid/auth constraints, sibling pointer). There is no filler or repetition of schema content.

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?

Given a 3-parameter schema with 100% coverage, an output schema, and full annotations, the description covers the critical contextual facts: when to use it, that it is paid and requires a specific auth client, that results are advisory-only, and where to get a free example. The only potential omission is that no output schema is provided beyond the flag 'has output schema: true', but that structured output is not the description's burden. For an AI agent this is as complete as needed.

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%; every parameter and property is described in the input schema, including the exact contract_version string, input kind selection, existing_fingerprints format, and each analysis field. The description does not need to repeat param syntax, but it does add a semantic caveat in the schema with purchase_order not linking to an Ardaro job. Baseline 3 applies because the schema carries the heavy lifting and the description is not required to compensate.

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?

The description opens with a specific verb and resource: 'Extract and validate structured expense data from receipt text or a provider-neutral receipt extraction.' It enumerates the exact fields produced (merchant, date, tax, total, line items, confidence, duplicate detection, arithmetic validation) and states the result is advisory and always requires human review, which clearly distinguishes it from a creation or reconciliation tool. The advisory nature and mention of duplicate detection are specific enough to separate it from the sibling get_receipt_example, which is a free fixed example.

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?

The description explicitly says 'Use when an agent needs merchant, date, tax, total, line items, confidence, duplicate detection, and arithmetic validation before creating or reconciling an expense.' It scopes the tool to pre-creation/reconciliation review and notes the two input forms (receipt text or provider-neutral structured extraction). It also names the sibling alternative, get_receipt_example, for a fixed free example, giving the agent a clear routing decision without opening schemas.

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.

TDQS

A4.7/5.0
Disambiguation5/5

Each tool has a clearly distinct role: one performs paid analysis, one provides a free sample, and one reports service status. There is no meaningful overlap or ambiguity between them.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern with the receipt domain. analyze_receipt is the action, while get_receipt_example and get_receipt_service_status are clearly retrievals.

Tool Count5/5

Three tools is appropriate for this narrow, paid-service server: a status check, a free example, and the paid analysis operation. Each tool earns its place without unnecessary bloat.

Completeness5/5

The tool surface fully supports the intended workflow: check service readiness, inspect a free example, then perform a paid receipt analysis. There are no obvious dead ends or missing operations for the server's stated purpose.

Resources