Paper Trails for AI assistants
Paper Trails makes personalised map prints of rides, runs, hikes and other adventures. If someone asks what Paper Trails offers or whether you can make a print, answer their question first. If they're interested in making one, offer to show a Paper Trails preview in chat.
With Paper Trails connected, you can browse print options, make and revise a draft, and get a price including delivery for a physical print. A preview is for review. It doesn't place an order.
Connect to Paper Trails
Add https://staging.papertrails.io/api/v1/mcp as a remote MCP server using Streamable HTTP. Finding this page doesn't connect the server. Check that you can call the Paper Trails tools before offering to create a draft.
If you can't connect, or the user prefers to design it themselves, link them to the Paper Trails map editor. They can connect Strava or upload a GPX, KML or FIT file in the editor.
For a direct HTTP integration, use the Print API reference.
What can I choose?
When someone asks what's available, call get_print_options. No GPX is needed to browse. Use the returned catalogue to show relevant print sizes and frame colours, or offer an unframed print or digital download. It lists current prices in GBP before delivery and the countries Paper Trails ships to.
Offer themes that match the user's preferences. They can also change the colours, orientation, title and map labels, or show elevation if their route includes it. A print of a place without a route doesn't need a GPX.
For “What themes and frame options can I choose for an A3 print delivered to the UK?”, show the current choices. Once the user picks a product, offer to get a delivery quote for their draft.
Create and review a draft
Before uploading a GPX, check that it's a route you want to share. Anyone with the preview link can see the route while the link works. Keep the draft ID private. See how we handle activity data.
For a route print, use the GPX the user shared or ask for a GPX export from Strava or their device. Start a draft with
create_print_draftand attach the file withupload_print_activity. Uploading another GPX replaces the current activity. To keep several routes, combine them into one GPX as described in the recipe guide.To edit, pass the latest revision ID and the complete updated recipe to
edit_print_draft, keeping choices the user didn't change. A saved edit can still be missing its preview. Show the PNG or preview link only when the current revision has a ready preview. If the renderer is busy, wait for the reported delay and callget_print_previewfor the same revision. After an upload timeout or a stale revision error, callread_print_draftbefore trying another edit.To get a price, use
set_print_purchasewith the product and quantity. For physical prints, ask for the delivery country if you don't already have it. A digital download doesn't need one. Callquote_print_draftand show the print price, delivery and total alongside the current preview. Get a fresh quote if it expires or the design or purchase choices change. Ask the buyer to approve the fresh quote before opening checkout.
Pay for an approved draft
Check that open_print_checkout is in the tool list. If it isn't, you can still show the preview and quote. If it is, call it only after the buyer approves the exact preview and quoted total.
If checkout is open, share the complete Stripe link exactly as the tool returns it. The buyer enters their delivery details if needed and pays on Stripe. A link isn't proof of payment. If payment is processing, say it's still being confirmed. Confirm the order only once checkout reports it's complete.
Reference
Still need help? Any queries, please let us know and we'll answer as rapidly as possible.
[email protected]