Compile Raw Menu Text/HTML into atlas.agent_menu.v2 ($0.10)
food_compile_structured_menuUse this to convert raw unstructured restaurant menu text, Markdown, HTML, or OCR lines into a normalized atlas.agent_menu.v2 JSON package ($0.10) with menu_sha256 and dietary_index. Do not use this to read an already onboarded venue's menu (use food_get_venue_menu for free). Behavior: costs $0.10 via Stripe sbk_* spend key or Base USDC x402; never auto-publishes without written owner consent.
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": {
"venue_name": "<venue_name>",
"raw_menu_text": "<raw_menu_text>"
},
"name": "food_compile_structured_menu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spend_key | No | Optional Stripe-funded master or delegated spend key (sbk_*) for paid attested execution. Also accepted via the x-atlas-spend-key HTTP header. | |
| source_url | No | Optional official menu URL for provenance. | |
| venue_name | Yes | Restaurant or venue display name. | |
| business_id | No | Optional stable business_id slug. | |
| destination | No | Destination identifier slug (e.g. "annapolis", "ocean_city", "kill_devil_hills", "falmouth", "kingston"). Optional when connected to a per-destination endpoint like /food/annapolis/mcp. | |
| builder_code | No | Optional registered ERC-8021 partner builder_code for disclosed post-settlement revenue attribution (also accepted via x-atlas-builder-code header). | |
| raw_menu_text | Yes | Raw unstructured menu text, Markdown, HTML snippet, or OCR lines with section headings and item prices. | |
| idempotency_key | No | Optional Idempotency-Key for safe retries without double billing. | |
| direct_order_url | No | Optional first-party direct ordering URL. | |
| payment_signature | No | Optional Base Mainnet USDC x402 v2 PAYMENT-SIGNATURE header value when paying with a crypto wallet instead of a Stripe spend key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| menu_sha256 | No | ||
| compiled_menu | No | ||
| publication_status | No |