{
    "schemaVersion": "1.0",
    "description": "WebMCP tools registered on every page via navigator.modelContext, and the declarative quote form on /for-ai-agents (shortcode [pha_quote_form]).",
    "registration": "navigator.modelContext.provideContext / registerTool",
    "tools": [
        {
            "name": "search_products",
            "description": "Search Pack Heap custom packaging products (boxes, mylar bags, sleeves) by keyword, style, industry or material. Returns URLs; pricing is quote-based.",
            "inputSchema": {
                "type": "object",
                "properties": {
                    "query": {
                        "type": "string",
                        "description": "e.g. \"rigid jewelry boxes\" or \"pizza\"."
                    },
                    "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 25
                    }
                },
                "required": [
                    "query"
                ]
            },
            "annotations": {
                "readOnlyHint": true,
                "openWorldHint": false
            }
        },
        {
            "name": "get_product",
            "description": "Get one product by slug or URL (e.g. custom-ring-boxes): description, categories and quote link.",
            "inputSchema": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": "string",
                        "description": "Product slug or full URL."
                    }
                },
                "required": [
                    "slug"
                ]
            },
            "annotations": {
                "readOnlyHint": true
            }
        },
        {
            "name": "get_company_info",
            "description": "Verified company facts: contact, address, minimums, turnaround, shipping, materials, accreditations (company claims flagged).",
            "inputSchema": {
                "type": "object",
                "properties": {}
            },
            "annotations": {
                "readOnlyHint": true
            }
        },
        {
            "name": "calculate_dim_weight",
            "description": "Calculate volume and dimensional (DIM) weight for a box to estimate shipping.",
            "inputSchema": {
                "type": "object",
                "properties": {
                    "length": {
                        "type": "number",
                        "exclusiveMinimum": 0
                    },
                    "width": {
                        "type": "number",
                        "exclusiveMinimum": 0
                    },
                    "height": {
                        "type": "number",
                        "exclusiveMinimum": 0
                    },
                    "unit": {
                        "type": "string",
                        "enum": [
                            "in",
                            "cm",
                            "mm"
                        ]
                    },
                    "quantity": {
                        "type": "integer",
                        "minimum": 1
                    }
                },
                "required": [
                    "length",
                    "width",
                    "height"
                ]
            },
            "annotations": {
                "readOnlyHint": true
            }
        },
        {
            "name": "request_quote",
            "description": "File a custom quote request on behalf of a buyer. Only call after the user provided their details and explicitly agreed to be contacted. A sales specialist replies by email; no payment is taken.",
            "inputSchema": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 100,
                        "description": "Full name of the buyer."
                    },
                    "email": {
                        "type": "string",
                        "format": "email",
                        "description": "Buyer email address."
                    },
                    "phone": {
                        "type": "string",
                        "description": "Optional phone number."
                    },
                    "company": {
                        "type": "string",
                        "maxLength": 120,
                        "description": "Optional company or brand name."
                    },
                    "product": {
                        "type": "string",
                        "maxLength": 150,
                        "description": "Product or box style wanted, e.g. \"Custom Ring Boxes\" or a product slug."
                    },
                    "material": {
                        "type": "string",
                        "enum": [
                            "Rigid",
                            "Kraft",
                            "Corrugated Cardboard",
                            "Chipboard",
                            "Other / not sure"
                        ],
                        "description": "Preferred material."
                    },
                    "length": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "description": "Length in the chosen unit."
                    },
                    "width": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "description": "Width in the chosen unit."
                    },
                    "depth": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "description": "Depth / height in the chosen unit."
                    },
                    "unit": {
                        "type": "string",
                        "enum": [
                            "in",
                            "cm",
                            "mm"
                        ],
                        "description": "Unit for the dimensions."
                    },
                    "quantity": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "Number of units. Orders can start from about 100."
                    },
                    "colors": {
                        "type": "string",
                        "enum": [
                            "Full Color",
                            "3 Color",
                            "2 Color",
                            "1 Color"
                        ],
                        "description": "Print colours."
                    },
                    "turnaround": {
                        "type": "string",
                        "enum": [
                            "Rush (6-8 business days)",
                            "Standard (12-14 business days)",
                            "Long (1-3 months)"
                        ],
                        "description": "Required turnaround."
                    },
                    "country": {
                        "type": "string",
                        "enum": [
                            "USA",
                            "UK",
                            "Other"
                        ],
                        "description": "Destination country (free shipping to USA and UK)."
                    },
                    "message": {
                        "type": "string",
                        "maxLength": 2000,
                        "description": "Extra details: finishes, inserts, artwork status."
                    },
                    "consent": {
                        "type": "boolean",
                        "description": "Must be true: the buyer has explicitly agreed to be contacted by Pack Heap about this quote."
                    },
                    "agent": {
                        "type": "string",
                        "maxLength": 80,
                        "description": "Name of the AI assistant submitting (e.g. ChatGPT, Claude)."
                    }
                },
                "required": [
                    "name",
                    "email",
                    "product",
                    "quantity",
                    "consent"
                ],
                "additionalProperties": false
            },
            "annotations": {
                "readOnlyHint": false,
                "destructiveHint": false,
                "idempotentHint": false,
                "openWorldHint": true
            }
        }
    ],
    "form": {
        "page": "https://packheap.com/for-ai-agents/",
        "selector": "form[toolname=\"request_quote\"]",
        "toolname": "request_quote",
        "schema": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 100,
                    "description": "Full name of the buyer."
                },
                "email": {
                    "type": "string",
                    "format": "email",
                    "description": "Buyer email address."
                },
                "phone": {
                    "type": "string",
                    "description": "Optional phone number."
                },
                "company": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "Optional company or brand name."
                },
                "product": {
                    "type": "string",
                    "maxLength": 150,
                    "description": "Product or box style wanted, e.g. \"Custom Ring Boxes\" or a product slug."
                },
                "material": {
                    "type": "string",
                    "enum": [
                        "Rigid",
                        "Kraft",
                        "Corrugated Cardboard",
                        "Chipboard",
                        "Other / not sure"
                    ],
                    "description": "Preferred material."
                },
                "length": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "description": "Length in the chosen unit."
                },
                "width": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "description": "Width in the chosen unit."
                },
                "depth": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "description": "Depth / height in the chosen unit."
                },
                "unit": {
                    "type": "string",
                    "enum": [
                        "in",
                        "cm",
                        "mm"
                    ],
                    "description": "Unit for the dimensions."
                },
                "quantity": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Number of units. Orders can start from about 100."
                },
                "colors": {
                    "type": "string",
                    "enum": [
                        "Full Color",
                        "3 Color",
                        "2 Color",
                        "1 Color"
                    ],
                    "description": "Print colours."
                },
                "turnaround": {
                    "type": "string",
                    "enum": [
                        "Rush (6-8 business days)",
                        "Standard (12-14 business days)",
                        "Long (1-3 months)"
                    ],
                    "description": "Required turnaround."
                },
                "country": {
                    "type": "string",
                    "enum": [
                        "USA",
                        "UK",
                        "Other"
                    ],
                    "description": "Destination country (free shipping to USA and UK)."
                },
                "message": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "Extra details: finishes, inserts, artwork status."
                },
                "consent": {
                    "type": "boolean",
                    "description": "Must be true: the buyer has explicitly agreed to be contacted by Pack Heap about this quote."
                },
                "agent": {
                    "type": "string",
                    "maxLength": 80,
                    "description": "Name of the AI assistant submitting (e.g. ChatGPT, Claude)."
                }
            },
            "required": [
                "name",
                "email",
                "product",
                "quantity",
                "consent"
            ],
            "additionalProperties": false
        }
    }
}