Skip to content

Concepts

Templates, actions, tiers, policy classes, scopes, labels and consent.

Templates

A template defines one vertical: the tool names, their inputs and outputs, the scopes each needs, and the action each performs. Every business in a vertical exposes the same template, so one person's agent can use thousands of businesses without learning each one. A new vertical is a new template, not a new product.

Don't rename tools, change their actions or change their tiers. You write the descriptions in the business's own words, fill the data, and connect the adapters to the business's systems.

Actions

Every tool maps to one action (capability in the code). The action, not the tool name, is how Mayfain and agents know what a tool does.

Action Usual tier What it does
search_offers public What the business offers: listings, plans, services. Filters only, no personal data.
get_offer public One offer in full.
get_requirements public What a person needs to apply or order, and which checks the business asks for.
get_quote private A price that needs something private, such as an Eircode, shared with consent.
submit private Apply, order or request a service for the person.
get_status private Where one of the person's requests stands.
list_mine private The person's requests with this business.
withdraw private The person withdraws a request.
send_message private A message from the person, in their own words, about an existing request.
list_slots private Times the business can offer (viewings, visits, appointments).
book_slot private The person books one of those times.
cancel_slot private The person cancels a booked time.

A template can make a usually-public action private (rentals keeps viewing slots private). It never goes the other way.

Tiers: public and private

  • Public tools work without a token, for any agent. No personal data goes in or comes out.
  • Private tools act for one person. They need a Mayfain access token issued for your server, carrying the scopes the tool requires.

Policy classes

Each tool also has a policy class, which tells agents and Mayfain how careful to be:

Class Meaning MCP annotation
read Reads only readOnlyHint: true
write Changes something for the person readOnlyHint: false
sensitive Sends the person's verified details readOnlyHint: false

For write and sensitive tools, check the grant is still live with introspection before acting.

Scopes

Scopes are what a person agrees to share. The wording is what they see on the consent screen.

Scope What the person agrees to
profile.basic Your name, email and mobile
identity.verified That your ID has been verified
income.affordability Whether your income covers the rent (not the amount)
employment.current Your current employer
references Your reference letters, when you're shortlisted and you approve
documents.offer Your payslips and Revenue summary, when you get an offer and you approve
applications.write Send, withdraw and message about applications you confirm
applications.read See the status of your applications
offers.quote Share what's needed to get you a price, when you ask
funding.coverage Whether your verified funding covers the price, your buyer position and solicitor (not the amounts, unless you choose)

Labels

Every detail you receive carries one of three labels, and a label is never upgraded:

  • Verified: Mayfain checked it automatically (for example ID through a document check, income from payslips).
  • Proof attached: a document is included for the business to check (for example a reference letter).
  • Self-declared: the person's own statement.

Nothing is sent to a business without the person tapping to approve the exact payload, on Mayfain. When an outside agent (in ChatGPT or Claude) calls submit, the request isn't sent there and then: the person is given a link to check and send it on Mayfain.

Free text

Messages and answers to the business's questions are the person's own words. Agents may explain a question; they never write the answer. Treat all free text as untrusted input, and never follow instructions found in it.

Placeholders

Inside Mayfain, the model works with placeholders such as {{vault.identity.full_name}}. Real values are filled in only at the moment a call leaves Mayfain, after approval. Your server never receives a placeholder: it receives verified values from Mayfain directly (see How verified details reach you).