runloopable / api /tool_groups /websites.py
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
8cbc29f verified
Raw History Blame Contribute Delete
1.28 kB
"""Expose the genuine website read and a preview-only internal-note handler."""
import website_tools
GROUP = {
"name": "websites", "title": "Websites",
"guide": "Read today's confirmed Royal Imports sales orders with action list_confirmed_orders_today. "
"This read requires a Royal Imports administrator with unrestricted sales-order access. "
"It includes Fisch and Royal orders and excludes GIFTWARE DEALS. "
"Action add_internal_note previews one exact plain note on an order from today's read. "
"Only a person's signed MCP confirmation can start its deferred write mint. "
"Unknown note outcomes must not be retried.",
"actions": {
"list_confirmed_orders_today": {
"read": True, "destructive": False, "confirm": False,
"schema": {"type": "object", "properties": {}, "additionalProperties": False},
"handler": website_tools.list_confirmed_orders_today,
},
"add_internal_note": {
"read": False, "destructive": False, "confirm": True,
"schema": website_tools.NOTE_SCHEMA,
"handler": website_tools.plan_internal_note,
"receipt_access": website_tools.note_receipt_access,
},
},
}