MCPサーバー

50headsのMCPサーバー

AIアシスタントはここに接続して、50headsがページで公開している情報をもとに、50headsについての質問に答えることができます。オーナーは自分のアシスタントで事業を管理することもできます。

接続

上のサーバーURLをアシスタントのMCP設定で使用してください。公開されている事業の情報については、ログインせずに誰でも問い合わせできます。

Claude Code:ターミナルで次を実行してください。

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

Cursor、VS Code、Windsurfなど多くのクライアント:MCP設定ファイルにサーバーを追加してください。

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

事業について問い合わせる

businessツールは、50headsがページで公開している情報、つまり訪問者が見るのと同じ事実をもとに回答します。ページにない事実は推測せず、回答に含めません。ログイン不要で誰でも無料で呼び出せます。

アシスタントが誰かに代わって事業者に連絡する前に、事業者のアシスタント向けポリシー(action assistant_policy)を読む必要があります。このポリシーは事業者自身の表明であり、to.coが強制するものではありません。

50headsは現在、アシスタントからのメッセージを受け付けていません。

オーナー向け

manageツールは、50headsを所有するアカウント向けです。アシスタントは、to.coへのログイン(メールのコード、Google、またはパスキー)と、許可する操作の承認を求めます。この接続はこの事業でのみ機能します。アカウントのエージェントトークンも使用できます。

オーナーがログインして行う呼び出しは、1回ごとに事業の月間APIクレジットを1つ使用します。事業についての問い合わせでは使用しません。

エージェントトークンを作成

ツール

各ツールはactionとそのactionの引数を受け取ります。引数と結果のフィールド名はsnake_caseです。

business この事業について

事業者がページで公開している情報:どんな事業か、連絡方法、営業日時と場所、アシスタントに許可していること。

アクション機能引数アクセス
profileどんな事業か:名称、事業内容、カテゴリ、ウェブサイトとto.coによる確認の有無、会社番号と税務登録番号(ある場合)、営業を続けているかどうか、現在のお知らせ、ページの最終更新日時。なし誰でも
読み取り専用
contact連絡方法:電話番号、メールアドレス(確認後のみ表示)、ウェブサイト、メニュー・注文・予約のリンク、その他のサービス、ソーシャルプロフィール、アシスタントからのメッセージを受け付けているかどうか。なし誰でも
読み取り専用
hours事業と各所在地の営業時間(今後の特別営業時間を含む)と、事業のタイムゾーンで現在営業中かどうか。日付を指定すると、その日に適用される営業時間を返します。
  • date string 日付(YYYY-MM-DD):その日に適用される営業時間(特別営業時間を含む)。
誰でも
読み取り専用
locations登記上の所在地と営業拠点:それぞれの住所、電話番号、営業時間、提供内容。番地まで含む住所は、to.coが確認した後にのみ提供されます。なし誰でも
読み取り専用
posts事業者がto.coで公開した投稿(新しい順):それぞれのタイトル、アドレス、最初の公開日、短い抜粋。下書きは表示されません。
  • limit integer 返す件数。
誰でも
読み取り専用
post公開済みの投稿1件をslugで指定し、Markdownで返します:タイトル、日付、本文(ページでの表示どおり)。
  • slug string, 必須 The post's slug, the last part of its address
誰でも
読み取り専用
dealingsサインイン時:接続が代理する事業とこの事業との間にあるもの(その人が to.co で見られる範囲):双方向の書類を番号・日付・状態で(金額は含みません)、仕入先の申請、期限が近い書類。番号を指定すると1件の書類を探します。 注文の場合は、残っている数量も行ごとに示します(数量のみ)。
  • number string A document number, e.g. INV-0193: only the documents between the two with that number
サインイン時、スコープ companies:read
読み取り専用
assistant_policyアシスタントが人に代わって行ってよいと事業者が定めていること:問い合わせ、予約依頼、見積依頼(オフ、確認あり、オン)、1日あたりの依頼数、引き継ぎ先。なし誰でも
読み取り専用
呼び出し例
{
  "name": "business",
  "arguments": {
    "action": "profile"
  }
}
messages この事業者のメッセージを読む(オーナーのみ)

事業者のオーナー向け(サインイン後):事業者が受け取ったメッセージを読みます。この事業者は現在、アシスタントからのメッセージを受け付けていないため、このツールではメッセージを送れません。誰かが事業者に連絡できるよう手伝うときは、事業者のページのアドレスを伝えてください。

アクション機能引数アクセス
list事業者が受け取ったメッセージ(新しい順)。
  • status string new、read、replied、archivedのいずれか(省略時は4つすべて)。
  • 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 返す件数。
オーナー、スコープ messages:read
読み取り専用
get事業者が受け取ったメッセージ1件。
  • id string, 必須 メッセージID(action listで取得)。
オーナー、スコープ messages:read
読み取り専用
呼び出し例
{
  "name": "messages",
  "arguments": {
    "action": "list"
  }
}
manage この事業を管理

オーナー向け:下書きを含むレコード全体を読み、プロフィールと営業拠点を変更します。変更のたびにページが再公開されます。

アクション機能引数アクセス
profile下書きと非公開の設定を含む、事業のレコード全体。なしオーナー、スコープ companies:read
読み取り専用
update_profileプロフィールの項目を変更し、ページを再公開します。指定しなかった項目は値が保持され、空の値を指定するとその項目は消去されます。登記済みの会社の正式名称は登記簿のものが使われるため、代わりに通称を設定してください。
  • name string 登記されていない事業の名前。登記済みの会社では拒否されます。
  • informal_name string 日常的に使う短い名前。
  • description string 事業内容(2,000文字以内)。
  • website_url string 事業のウェブサイト(https://から始まる完全なアドレス)。
  • email string 公開用の連絡先メールアドレス。新しいアドレスは、その所有者がメールで届いたリンクから確認した後にのみページに表示されます。
  • phones object 種類別の電話番号(main、alt、local、fax、mobile、free、tty)。指定しなかった種類は値が保持されます。
  • links object メニュー・注文・予約のリンクと、ウェブサイトの表示方法。
  • keywords string 検索キーワード(1,000文字以内)。
  • category string ページに表示する事業のカテゴリ(例:Bakery)。
  • vat_registration_number string 任意の税務登録番号(国に応じてVAT、GSTなど)。フィールド名は互換性のために維持されています。
  • contact_preferences object to.coから事業者への希望する連絡方法:email、sms、post、telのそれぞれをtrueまたはfalseで指定。
  • social_links object ネットワーク別のソーシャルプロフィール:プロフィールのリンク、またはXとInstagramの場合はハンドル。空の値を指定するとその項目は削除されます。
オーナー、スコープ companies:write
データを変更
locations事業のすべての所在地(登記上の所在地が先頭)と、それぞれのレコードキー、営業時間、電話番号、プロフィール。なしオーナー、スコープ companies:read
読み取り専用
update_location営業拠点の説明、営業時間、特別営業時間、電話番号、ソーシャルプロフィールを設定し、ページを再公開します。登記上の所在地は会社の登記簿に基づくため、ここでは変更できません。
  • location string, 必須 営業拠点のレコードキー(action locationsで取得)。
  • description string この拠点で提供している内容を平易な言葉で。名前、住所、連絡先、リンク、価格は削除されます。
  • normal_hours array 毎週の営業時間(現在の設定を置き換えます):1日最大4枠、24時間表記。
  • special_hours array その日付の毎週の営業時間に代わる、休日や休業時の営業時間。
  • phones object 種類別の電話番号(main、alt、local、fax、mobile、free、tty)。指定しなかった種類は値が保持されます。
  • social_links object ネットワーク別のソーシャルプロフィール:プロフィールのリンク、またはXとInstagramの場合はハンドル。空の値を指定するとその項目は削除されます。
オーナー、スコープ companies:write
データを変更
呼び出し例
{
  "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.

アクション機能引数アクセス
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 返す件数。
オーナー、スコープ documents:read
読み取り専用
getOne document, through the projection you are entitled to.
  • id string, 必須 メッセージID(action listで取得)。
  • projection string No broader than your grant allows
オーナー、スコープ documents:read
読み取り専用
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, 必須 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, 必須 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)
オーナー、スコープ documents:write
データを変更
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, 必須 メッセージID(action listで取得)。
  • content object, 必須 The document content, snake_case, as GET /rules/{type} of the organization API describes it: currency, parties, lines, taxes, totals, …
  • etag string, 必須 The etag from get
オーナー、スコープ documents:write
データを変更
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, 必須 メッセージID(action listで取得)。
  • transition string, 必須 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
オーナー、スコープ documents:write
データを変更
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, 必須 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, 必須 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, 必須 When the access ends, ISO 8601, at most a year ahead
  • reason string, 必須 Why, for the audit log
オーナー、スコープ documents:share
データを変更
revokeRevoke a grant at once, with every link and capability derived from it. Cannot be undone; share again instead.
  • grant_id string, 必須 From documents grants
オーナー、スコープ documents:share
データを変更
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 返す件数。
オーナー、スコープ documents:read
読み取り専用
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 返す件数。
オーナー、スコープ documents:read
読み取り専用
decideApprove, reject or cancel an access request. Approval names exactly what is granted; nothing is inferred from the request.
  • request_id string, 必須
  • decision string, 必須
  • version integer, 必須 The version from documents requests, so two reviewers cannot both decide
  • note string
  • grant object For approve: what to grant
オーナー、スコープ documents:share
データを変更
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, 必須 メッセージID(action listで取得)。
  • channel string, 必須 partner: on to.co to the connected trading partner it is for; email: by email as a signed link
  • email string 公開用の連絡先メールアドレス。新しいアドレスは、その所有者がメールで届いたリンクから確認した後にのみページに表示されます。
  • locale string channel email: the email's language, e.g. en-GB
オーナー、スコープ documents:write
データを変更
呼び出し例
{
  "name": "documents",
  "arguments": {
    "action": "list"
  }
}
help ヘルプ

接続を確認し、このサーバーのガイドを読みます。

アクション機能引数アクセス
whoami接続がログイン済みかどうかと、ここで使用できるツールとアクション。なし誰でも
読み取り専用
guideこのサーバーのガイド(Markdown)。なし誰でも
読み取り専用
呼び出し例
{
  "name": "help",
  "arguments": {
    "action": "whoami"
  }
}

リソースとプロンプト

  • toco://guide — このサーバーのガイド(Markdown)。
  • toco://business — ページで公開されている事業の情報(JSON)。
  • visit_this_business — 事業の営業日時、場所、連絡方法。
  • review_this_business — オーナー向け:プロフィールの表現をわかりやすくするための提案。確認するまで何も変更されません。

制限

  • 1つの呼び出し元(エージェントトークン、またはトークンがない場合はIPアドレス)から1分あたり120リクエスト。
  • すべての呼び出し元の合計で、この事業へ1分あたり600リクエスト。
  • 1つの呼び出し元からbusinessツールへ1時間あたり600回の呼び出し。
  • リクエスト本文は1,024 KBまで。
  • 制限を超えると、Retry-AfterヘッダーとともにHTTP 429が返されます。

ディスカバリー

このページはMarkdownでもご覧いただけます。