For AI agents
The Scan Clinic is a private ultrasound scan and blood test clinic in London. This page is for AI assistants and the developers who build them. People can read it too.
What an agent can do today
Read, without logging in:
- list every service with its price, how long it takes and when results arrive;
- see free appointment times for the next 14 days;
- read how clinicians refer a patient;
- check that the API is running.
The API description is at https://thescanclinic.co.uk/openapi.json (OpenAPI 3.1). The catalogue of our APIs is at https://thescanclinic.co.uk/.well-known/api-catalog.
Connecting over MCP
Our MCP server is at https://thescanclinic.co.uk/mcp (Streamable HTTP). It speaks MCP 2026-07-28 and the earlier 2025-11-25, 2025-06-18 and 2025-03-26 versions, so current and older clients both work. The server card is at https://thescanclinic.co.uk/mcp/server-card.
To add it to Claude Code:
claude mcp add --transport http tsc https://thescanclinic.co.uk/mcp
In other clients, add a remote (HTTP) MCP server with that URL. No sign-in is needed for these tools:
search_services: find a service by words and/or category (scan, blood, msk, other), with prices;get_service: one service by its slug;check_availability: free times for a service, up to 14 days ahead;get_referral_info: how clinicians refer a patient.
MCP requests count towards the same limit as the API (600 per hour for each client address).
Booking tools (need an access token, see Signing in):
quote_booking: checks and prices up to 8 appointments (the time must still be free, and not today). The quote is valid for 10 minutes and can be used once.create_booking: books a quote with the person’s name, email, UK mobile and date of birth. Send a newidempotency_keyfor each booking. If you repeat a call with the same key, you get the first result back.get_booking: the status of a booking you made. It is one ofpayment_required,held,confirmed,expired,failedorrefunded.
The same steps over the API:
POST /wp-json/tsc-agent/v1/quotePOST /wp-json/tsc-agent/v1/bookings, with anIdempotency-KeyheaderGET /wp-json/tsc-agent/v1/bookings/{reference}
You can only see bookings you made. We never send back a person’s date of birth or phone number. book_url on each service is still a link a person can open to book on the website.
Appointments today
An agent cannot book an appointment for today. Times on today’s date are marked agent_bookable: false with the reason same_day.
Why: same-day appointments are booked without a deposit, so we take them directly with the patient. To book today, call 0203 904 7706, send a WhatsApp message to https://wa.me/447584426428 or request a callback at https://thescanclinic.co.uk/request-callback/. Every availability reply includes these details.
Signing in
Reading needs no login. Booking needs an access token. Getting one is free and automatic:
- Register your agent:
POST https://thescanclinic.co.uk/wp-json/tsc-agent/v1/oauth/registerwith a JSON body such as{"client_name": "Your agent name"}. You get back aclient_idand aclient_secret. Keep the secret private; it is shown only once. Registering means you accept the terms below. - Get a token:
POST https://thescanclinic.co.uk/wp-json/tsc-agent/v1/oauth/tokenwithgrant_type=client_credentials, yourclient_idandclient_secret. Tokens last one hour. - Send it as
Authorization: Bearer <token>on booking calls.
MCP clients that support OAuth (for example Claude and Cursor) do this for themselves: they find our sign-in details at https://thescanclinic.co.uk/.well-known/oauth-authorization-server and show the person a one-click consent screen. Full details: https://thescanclinic.co.uk/auth.md.
Paying
Every booking needs a £30 deposit, paid online. The rest is paid at the clinic. Prices and the deposit are always worked out by us, never taken from the agent.
1. The person pays on a payment page. This works for every agent. Book without a payment field. You get back payment_required with:
pay_url: a Stripe page, open for 30 minutes. Give it to the person.book_link: a website booking link for the same services.- our phone and WhatsApp details.
The time is not held until the deposit is paid. When the payment arrives, we check the time again:
- If it is still free, the booking is confirmed and
get_bookingshows the confirmation. - If someone else booked it first, or the payment arrives on the day of the appointment, the £30 is refunded in full automatically and the person is emailed how to rebook.
Each agent can have at most 5 unpaid payment pages open at a time.
If the card is declined on the payment page, Stripe’s page tells the person and lets them try another card. You receive no error. get_booking stays payment_required until the page is paid or expires.
2. The agent pays straight away, with a Stripe shared payment token. This is not switched on yet; we will update this page when it is. Send payment: {"method": "stripe_shared_payment_token", "token": "spt_..."}. The token must allow £30 in GBP.
- If the payment succeeds, the booking is confirmed at once and the reply holds the confirmation.
- If the card is declined, the reply is
402 payment_failedand nothing is booked. - If the token cannot be used (expired, already used, revoked, or not for £30 GBP), the reply is
402 payment_token_invalid. Get a new token. - If paying this way is not available at the moment, the reply is
503 payment_unavailable. Book without payment to get a payment page instead. - Only card declines count towards the limit: 3 in an hour, or 5 in a day from one address, block the agent for 24 hours.
Until shared payment tokens are switched on, a payment field is ignored and you get a payment page as in option 1.
The person receives the confirmation by email either way.
Booking terms
Bookings are made on our terms and conditions: https://thescanclinic.co.uk/terms-and-conditions/. An agent should show these to the person before booking for them.
What our services involve
- Scans: a verbal summary from the sonographer at the appointment, and a written report emailed within 48 hours.
- Blood tests: the sample is usually sent to the lab the same day. Results are typically 48 to 72 hours and vary by test.
- No GP referral is needed for any scan or blood test. Patients can book themselves.
- Venesection needs a GP referral or letter. Send it to [email protected], then call to book. An agent cannot book it.
- Some services cannot be booked online at all. The API says so with
not_bookable_onlineand gives our phone and WhatsApp details.
Rate limits
Reading is limited to 600 requests per hour for each client address. Every reply has RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers. If you go over, you get 429 with a Retry-After header (seconds). Prices, the service list and referral details can be cached for the time in Cache-Control.
Errors
Every error has the same shape:
{"error": {"code": "service_not_found", "message": "No service with that slug. GET /services lists them."}}
| Code | Status | Meaning |
|---|---|---|
rate_limited | 429 | Too many requests. Wait for Retry-After. |
catalog_unavailable | 503 | The service list is not available right now. Call 0203 904 7706. |
service_not_found | 404 | No service with that slug. |
missing_service | 400 | /availability needs ?service=. |
bad_request | 400 | A parameter was given more than once or in the wrong form. |
bad_date | 400 | from and to must be YYYY-MM-DD. |
bad_range | 400 | to is before from. |
range_too_long | 400 | A range is at most 14 days. |
out_of_window | 400 | Times are published for the next 14 days only. |
not_agent_bookable | 409 | Needs a referral or cannot be booked online. reason says which; contact says how to book by phone. |
Changelog
- October 2026: agent sign-in, quotes and booking with a £30 deposit; agent skills and discovery files.
- 0.6.0: MCP server at /mcp with four read tools, and its server card.
- 0.4.0: first public API. Services, availability, referrals, status, OpenAPI description and API catalogue.
Terms for AI agents
These terms apply to any AI agent, app or service (“agent”) that registers with The Scan Clinic to get a booking token, and to the person or company that runs it. Registering means you accept them.
- Book only when a person asks. Make a booking only on the instruction of the patient, or of someone they have asked to book for them. Do not book speculatively, to hold times, or to test the system.
- Send true details. Give the patient’s real name, date of birth and contact details as they gave them to you. Do not invent, guess or reuse details.
- Tell the person what they are booking. Before booking, show the person the service, price, date and time, and our booking terms (https://thescanclinic.co.uk/terms-and-conditions/).
- No resale. Do not sell, resell or charge a fee for our appointments, and do not book appointments in order to pass them on.
- No scraping beyond the limits. Keep within the published rate limits. Do not copy our prices, times or pages in bulk for another service.
- Keep your credentials safe. Keep your client secret and tokens private. Tell us at [email protected] if you think they have been exposed, and revoke them.
- We may block an agent. We may limit, suspend or block any agent at any time, for example if it breaks these terms, makes bookings people did not ask for, or puts load on our systems. Bookings already made by a person stay valid unless we contact the patient.
- Changes. We may change these terms. The version on this page applies.
Questions: [email protected] or 0203 904 7706.
Contact
Phone 0203 904 7706. WhatsApp https://wa.me/447584426428. Email [email protected].
