MCP server

50heads's MCP server

AI assistants can connect here to answer questions about 50heads from what it publishes on its page. Its owner can also manage the business with their own assistant.

Connect

Use the server URL above in your assistant's MCP settings. Anyone can ask about the public business details without signing in.

Claude Code: run this in a terminal.

Claude Code
claude mcp add --transport http 50heads https://50heads.uk.to.co/mcp

Cursor, VS Code, Windsurf and most other clients: add the server to their MCP configuration file.

Cursor / VS Code / Windsurf
{
  "mcpServers": {
    "50heads": {
      "url": "https://50heads.uk.to.co/mcp"
    }
  }
}

Ask about the business

The business tool answers from what 50heads publishes on its page, the same facts a visitor sees. A fact the page does not hold is left out, never guessed. Anyone can call it, with no sign-in, and it costs nothing.

Before an assistant contacts the business for someone, it should read the business's policy for assistants (action assistant_policy). The policy is the business's own statement; to.co does not enforce it.

50heads does not take messages from assistants at the moment.

For the owner

The manage tool is for the account that owns 50heads. Your assistant asks you to sign in to to.co (with an email code, Google or a passkey) and to approve what it may do. The connection works for this business only. An agent token from your account works too.

Each signed-in call by the owner counts as one of the business's monthly API calls. Asking about the business never does.

Create an agent token

Tools

Each tool takes an action and that action's arguments. Arguments and results use snake_case field names.

business About this business

What the business publishes on its page: who it is, how to reach it, when and where it is open, and what it lets assistants do.

ActionWhat it doesArgumentsAccess
profileWho the business is: its names, what it does, its category, its website and whether to.co checked it, its company and tax registration numbers (if any), whether it is still trading, its current notice, and when its page last changed.NoneAnyone
Read-only
contactHow to reach it: phone numbers, its email address (shown only once confirmed), its website, menu, ordering and booking links, its other services, its social profiles, and whether it takes messages from assistants.NoneAnyone
Read-only
hoursOpening hours for the business and each location, with upcoming special hours, and whether each is open now in the business's time zone. Give a date for the hours that apply on that day.
  • date string A day, YYYY-MM-DD: the hours that apply on it, special hours included.
Anyone
Read-only
locationsIts registered office and trading locations: each one's address, phone numbers, hours and what it offers there. A street address is given only once to.co has verified it.NoneAnyone
Read-only
postsThe posts the business has published on to.co, newest first: each one's title, address, first publish date and a short excerpt. Drafts are never listed.
  • limit integer How many to return.
Anyone
Read-only
postOne published post, by its slug, as Markdown: its title, date and text, as its page shows them.
  • slug string, required The post's slug, the last part of its address
Anyone
Read-only
dealingsSigned in: what is between the business your connection works for and this one, as the person may see it in to.co: documents either way by number, date and state (never an amount), supplier applications and expiring documents. Give a number to look up one document. For an order, also what is left of it, line by line, in quantities only.
  • number string A document number, e.g. INV-0193: only the documents between the two with that number
Signed in, scope companies:read
Read-only
assistant_policyWhat the business says assistants may do for people: enquire, request a booking or request a quote (off, with confirmation, or on), how many requests a day, and who to hand off to.NoneAnyone
Read-only
Example call
{
  "name": "business",
  "arguments": {
    "action": "profile"
  }
}
messages Read this business's messages (owner only)

For the business's owner, after they sign in: read the messages the business has received. The business does not take messages from assistants at the moment, so this tool cannot send one. To help someone contact the business, give them its page address.

ActionWhat it doesArgumentsAccess
listThe messages the business has received, newest first.
  • status string new, read, replied or archived (all four when left out).
  • assignee string me (assigned to you), none (assigned to nobody) or a member's user id
  • kind string Only requests of this kind, e.g. order
  • limit integer How many to return.
Owner, scope messages:read
Read-only
getOne message the business has received.
  • id string, required A message id, from action list.
Owner, scope messages:read
Read-only
Example call
{
  "name": "messages",
  "arguments": {
    "action": "list"
  }
}
manage Manage this business

For the owner: read the full record, drafts included, and change the profile and trading locations. Each change publishes the page again.

ActionWhat it doesArgumentsAccess
profileThe full record of the business, drafts and private settings included.NoneOwner, scope companies:read
Read-only
update_profileChange profile fields and publish the page again. Fields you leave out keep their value; an empty value clears one. A registered company keeps its official name from the register; set its everyday name instead.
  • name string The name of a business that is not registered. Refused for a registered company.
  • informal_name string A shorter everyday name.
  • description string What the business does, up to 2,000 characters.
  • website_url string The business website, a full https:// address.
  • email string A public contact email. A new address shows on the page only after its owner confirms it from a link emailed to it.
  • phones object Phone numbers by kind (main, alt, local, fax, mobile, free, tty). Kinds you leave out keep their value.
  • links object Menu, ordering and booking links, and how the website is shown.
  • keywords string Search keywords, up to 1,000 characters.
  • category string The business category shown on the page, such as Bakery.
  • vat_registration_number string An optional tax registration number (VAT, GST or another scheme, depending on the country). The field name is kept for compatibility.
  • contact_preferences object How the business prefers to be contacted by to.co: email, sms, post and tel, each true or false.
  • social_links object Social profiles by network: a profile link, or a handle for X and Instagram. An empty value removes one.
Owner, scope companies:write
Changes data
locationsEvery location of the business, the registered office first, with its record key, hours, phones and profiles.NoneOwner, scope companies:read
Read-only
update_locationSet the description, opening hours, special hours, phone numbers or social profiles of a trading location and publish the page again. The registered office comes from the company register and cannot be changed here.
  • location string, required The record key of a trading location, from action locations.
  • description string What this location offers, in plain words. Names, addresses, contact details, links and prices are removed.
  • normal_hours array Weekly opening hours, replacing the current ones: up to four slots a day, 24-hour times.
  • special_hours array Holiday and closure hours that replace the weekly hours on their date.
  • phones object Phone numbers by kind (main, alt, local, fax, mobile, free, tty). Kinds you leave out keep their value.
  • social_links object Social profiles by network: a profile link, or a handle for X and Instagram. An empty value removes one.
Owner, scope companies:write
Changes data
Example call
{
  "name": "manage",
  "arguments": {
    "action": "profile"
  }
}
documents This business's documents

Read and share the trade documents an organization holds in its accounting systems (Xero: invoices and bills, credit notes, quotes, purchase orders, payments as remittance advices, and customer statements), read live through its to.co address. A member of the organization sees everything; anyone else sees only what a grant names, as the accounting system holds it now. Amounts are decimal strings; a document that does not reconcile under the rules is flagged in validation, never hidden. Documents made on to.co can be created, edited and moved through their lifecycle here: a draft you make is marked prepared, and a person in the organization confirms it in the to.co app before it can be issued; only a person issues or sends. Documents read from an accounting system are not changed through this tool, and a transition that is not built yet answers not_implemented. Confirm with the person before you share anything.

ActionWhat it doesArgumentsAccess
listThe documents you may see at this organization, one page at a time: pass next_cursor back as cursor until it is null. A member names one type per call and reads the documents made on to.co first (its own, then those it received from trading partners), then every connected accounting system in turn, or one by connection. One type covers both directions: an invoice issued is a sale, an invoice received is a bill; filter with direction. direction received is the Received list: each document sent on to.co shows as a summary with mailbox.partner.host, the address to read it at with get.
  • type string rfq, quote, order, order_response, despatch_advice, receipt_advice, invoice, credit_note, debit_note, sales_receipt, remittance_advice, statement, application_response, order_change, order_cancellation (required for a member of the organization)
  • state string draft, issued, accepted, rejected, expired, closed, voided
  • direction string issued (the organization sent it) or received (it was sent to the organization)
  • connection string A member: one connected accounting system only (con_…)
  • cursor string next_cursor from the previous answer, to continue. Opaque, signed for you and this list, good for an hour
  • limit integer How many to return.
Owner, scope documents:read
Read-only
getOne document, through the projection you are entitled to.
  • id string, required A message id, from action list.
  • projection string No broader than your grant allows
Owner, scope documents:read
Read-only
createCreate a draft. The content must reconcile under the rules (GET /rules/{type}); the answer names any field that does not. A draft you make is marked prepared (prepared.via "assistant"): a person in the organization confirms it in the to.co app before it can be issued, and only a person issues or sends it.
  • type string, required rfq, quote, order, order_response, despatch_advice, receipt_advice, invoice, credit_note, debit_note, sales_receipt, remittance_advice, statement, application_response, order_change, order_cancellation
  • content object, required The document content, snake_case, as GET /rules/{type} of the organization API describes it: currency, parties, lines, taxes, totals, …
  • schema_version string A registered schema version, e.g. invoice/3.0, or invoice/3.1 for content with 3.1 fields such as taxes per line (default: worked out from the content)
Owner, scope documents:write
Changes data
updateEdit a draft with a JSON merge patch over its content (null removes a field, arrays replace whole), under the etag you read. Your change marks the draft prepared again, so a person confirms it again in the to.co app before it can be issued.
  • id string, required A message id, from action list.
  • content object, required The document content, snake_case, as GET /rules/{type} of the organization API describes it: currency, parties, lines, taxes, totals, …
  • etag string, required The etag from get
Owner, scope documents:write
Changes data
transitionRun a lifecycle transition: void, accept, reject, expire, close or record_settlement, as the document type allows (GET /rules/{type}). Issuing and sending a document need a person: a token is refused with session_required, so ask the person to issue or send it in the to.co app.
  • id string, required A message id, from action list.
  • transition string, required issue, send, void, accept, reject, expire, close, record_settlement
  • reason string
  • settlement object For record_settlement on an issued invoice
  • etag string The etag from get, to refuse a transition on a document that changed
Owner, scope documents:write
Changes data
shareGrant a connected trading partner (by to.co address), or a person at one (by email), named access to documents, as the accounting system holds them, until a date. Anyone else is refused: invite the business as a partner first, in the to.co app. Payment details and internal accounting fields are shared only when named in actions.
  • ids array, required The documents to share
  • recipient_email string A to.co user, by their verified email
  • recipient_host string An organization, by its to.co address; every current member of it may use the grant
  • actions array, required What the recipient may do: resource.discover, resource.read, accounting.read, payment_instructions.read, resource.transition
  • projection string document_summary_v1, document_recipient_v1 (default) or document_owner_v1
  • expires_at string, required When the access ends, ISO 8601, at most a year ahead
  • reason string, required Why, for the audit log
Owner, scope documents:share
Changes data
revokeRevoke a grant at once, with every link and capability derived from it. Cannot be undone; share again instead.
  • grant_id string, required From documents grants
Owner, scope documents:share
Changes data
grantsThe grants at this organization, a page at a time: all of them for a member (needs documents:share), your own otherwise.
  • cursor string next_cursor from the previous answer, to continue. Opaque, signed for you and this list, good for an hour
  • limit integer How many to return.
Owner, scope documents:read
Read-only
requestsAccess requests at this organization, a page at a time (a member sees all; a requester their own).
  • state string Only requests in this state
  • cursor string next_cursor from the previous answer, to continue. Opaque, signed for you and this list, good for an hour
  • limit integer How many to return.
Owner, scope documents:read
Read-only
decideApprove, reject or cancel an access request. Approval names exactly what is granted; nothing is inferred from the request.
  • request_id string, required
  • decision string, required
  • version integer, required The version from documents requests, so two reviewers cannot both decide
  • note string
  • grant object For approve: what to grant
Owner, scope documents:share
Changes data
sendAsk the person to send one of this business's documents: a draft is confirmed and issued first, then sent on to.co to the connected trading partner it is for (channel partner) or by email as a signed link (channel email, with the address). Nothing is sent from here: you get a to.co address for the person, where they see exactly what will go and approve or decline it (72 hours). Give them the address. Call again with the same arguments to learn whether it went.
  • id string, required A message id, from action list.
  • channel string, required partner: on to.co to the connected trading partner it is for; email: by email as a signed link
  • email string A public contact email. A new address shows on the page only after its owner confirms it from a link emailed to it.
  • locale string channel email: the email's language, e.g. en-GB
Owner, scope documents:write
Changes data
Example call
{
  "name": "documents",
  "arguments": {
    "action": "list"
  }
}
help Help

Check the connection and read the guide to this server.

ActionWhat it doesArgumentsAccess
whoamiWhether the connection is signed in, and which tools and actions it can use here.NoneAnyone
Read-only
guideThe guide to this server, as Markdown.NoneAnyone
Read-only
Example call
{
  "name": "help",
  "arguments": {
    "action": "whoami"
  }
}

Resources and prompts

  • toco://guide — The guide to this server, as Markdown.
  • toco://business — The business as its page publishes it, as JSON.
  • visit_this_business — When the business is open, where, and how to reach it.
  • review_this_business — For the owner: suggestions for clearer wording on the profile. Nothing changes until you confirm.

Limits

  • 120 requests a minute from one caller (an agent token, or an IP address without one).
  • 600 requests a minute to this business from every caller together.
  • 600 calls an hour to the business tool from one caller.
  • Request bodies up to 1,024 KB.
  • Past a limit, the answer is HTTP 429 with a Retry-After header.

Discovery

This page is also available as Markdown.