Validate a PTPGE document
ptpge_validate_documentValidate ONE document you hand over — a vendor declaration, supplier catalogue, request, quote or UCP manifest (its schema field says which) — against the published JSON Schema, the vocabulary (every term URI must exist; deprecated warns) and, for request/1 and quote/1, the identity: the spec and request fingerprints are recomputed from the configuration and must match what the document states; a quote's offer fingerprint must equal request + the quote's vendor (SD-0108). Nothing is fetched from any domain and nothing is stored. This is the PTPGE Ready conformance check for a module that writes these documents (ptpge.org/ready/). Returns valid, errors[], warnings[] and what was checked.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document": "<document>"
},
"name": "ptpge_validate_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | The document itself (JSON object with a `schema` field). |