{"description":"The plain HTTPS API: agentic search, product details, raw index search and image search. Required for image uploads: the bytes never enter your context.","messages":[{"role":"user","content":{"type":"text","text":"Besides the MCP endpoint, Piqit offers a plain HTTPS API. It is a separate\nsurface with a broader tool set: the MCP tool `search` is\n`agentic_product_search` here and `getProduct` is `get_product` (same\ncode, same arguments, same JSON), and the raw index searches and the image\nsearch exist ONLY here. The prompts are served here as well.\n\nWHEN YOU MUST USE HTTPS INSTEAD OF MCP\nAny request that carries an image file, and any raw index search: the MCP\nendpoint has neither. Over HTTPS you upload the file directly as\nmultipart/form-data: the server reads the bytes and hands them to the tool, and\nnot a single byte enters your context. For image work the HTTPS endpoint is\ntherefore the required path, not a matter of preference. For\nthe agentic search and product details both transports are equivalent; use\nwhichever is cheaper for you.\n\nTOOL ENDPOINT\n  POST https://www.piqit.ai/mcp/tools/<tool name>\n  Content-Type: application/json\n  Body: the tool arguments object, exactly what you would put in\n        `params.arguments` of a JSON-RPC `tools/call`. A full JSON-RPC\n        envelope or a `{\"arguments\": {...}}` wrapper is also accepted and\n        unwrapped, so an existing MCP body can be posted unchanged.\n  Response: the tool result object, exactly what a JSON-RPC `tools/call`\n        returns as `result`:\n        {\n          \"content\": [{\"type\": \"text\", \"text\": \"<model-facing summary>\"}],\n          \"structuredContent\": { ... render-ready data, optional ... },\n          \"isError\": false\n        }\n        HTTP 200 on success. 400 if the body cannot be read, and the upstream\n        status plus its body if the catalog backend fails.\n\nTOOLS AND THEIR ARGUMENTS\n  POST https://www.piqit.ai/mcp/tools/agentic_product_search\n    {\"message\": \"<the user's current product request, in German>\"}\n    Recommended for every product question. Takes several seconds; allow a\n    timeout of at least 60 seconds.\n\n  POST https://www.piqit.ai/mcp/tools/raw_search_products\n    {\"query\": \"<product search text, e.g. rotes Ledersofa>\"}\n    Low-level index search, no query understanding. Returns {id, title} pairs.\n\n  POST https://www.piqit.ai/mcp/tools/raw_search_similar_products\n    {\"product_id\": \"<id>\", \"product_title\": \"<title>\", \"image_url\": \"<url>\",\n     \"query\": \"<optional natural-language filter>\"}\n    product_id, product_title and image_url must come from a previous result,\n    never invented.\n\n  POST https://www.piqit.ai/mcp/tools/raw_image_search\n    multipart/form-data with the file in the field `image`, plus an optional\n    text field `query`. Visual search, no query understanding and no\n    object detection: the image must already be cropped to the single product\n    you are looking for. PNG or JPEG only, max 10 MiB; another format is\n    rejected with a message naming it, so convert before uploading. Returns\n    {id, title} pairs.\n\n  POST https://www.piqit.ai/mcp/tools/get_product\n    {\"product_id\": \"<id>\"}\n    Full record for one product: prices, offers, images, facets.\n\nIMAGE UPLOAD\n  POST https://www.piqit.ai/mcp/tools/<tool name>\n  Content-Type: multipart/form-data\n  Every text field becomes a tool argument of the same name. Every file field\n  becomes the value of the argument of the same name, as a `data:` URL built\n  server-side from the uploaded bytes. So an image argument can be filled\n  either with a normal https URL (JSON body) or with the file itself\n  (multipart), and only the second one keeps the picture out of your context.\n  Maximum 10 MB per file.\n\n  curl -F 'image=@/path/to/cropped-product.jpg' \\\n       -F 'query=unter 300 Euro' \\\n       https://www.piqit.ai/mcp/tools/raw_image_search\n\n  curl -F 'product_id=0-12345' \\\n       -F 'product_title=Ledersofa' \\\n       -F 'image_url=@/path/to/photo.jpg' \\\n       https://www.piqit.ai/mcp/tools/raw_search_similar_products\n\nPROMPT ENDPOINT\n  GET https://www.piqit.ai/mcp/prompts/<prompt name>\n  Response: the prompt result object, exactly what a JSON-RPC `prompts/get`\n        returns as `result`:\n        {\n          \"description\": \"<one line>\",\n          \"messages\": [{\"role\": \"user\",\n                        \"content\": {\"type\": \"text\", \"text\": \"<the prompt>\"}}]\n        }\n        HTTP 200, or 404 with {\"error\": \"...\"} for an unknown name.\n\n  GET https://www.piqit.ai/mcp/prompts/piqit_search_guide   the tool guide\n  GET https://www.piqit.ai/mcp/prompts/piqit_http_api    this document\n\nThe catalog is live: prices, offers and availability change continuously.\nProduct and offer links are affiliate clickouts. The endpoint is rate limited\nglobally, so avoid tight loops."}}]}