Eligibility is application logic
An order outside the sample 30-day return window cannot create a return draft. Tool descriptions are instructions; the handler is what enforces this rule.
INDUSTRY PLAYGROUND / CUSTOMER SUPPORT
Look up a sample order, check return eligibility, and draft a request without sending it.
NORTH / HELP DESK
Look up a sample order, check return eligibility, and draft a request without sending it.
Delivered 12 days ago · Eligible for returns
ORD-1042Delivered 45 days ago · Return window closed
ORD-1020TOOL INSPECTOR 5 tools
Look up a fictional order and display its items and return eligibility.
// Run a tool to inspect its result.
Run tool calls the local handler directly. Native agent calls appear as “Native WebMCP” in the trace.
Newest first. Example workflows are deterministic scripts, not LLM conversations.
No calls yet.
WHAT THIS EXAMPLE TEACHES
An order outside the sample 30-day return window cannot create a return draft. Tool descriptions are instructions; the handler is what enforces this rule.
The fixture includes an order ID and items, with no personal address or payment data. A real implementation must authenticate the requester before exposing any order.
COMMON QUESTIONS
No. Drafts and the final demo confirmation remain local to the page.
The handler rejects ineligible items before updating state. A production service must enforce the same rule on its server.
API references reviewed September 7, 2026. Chrome imperative API ↗