Templates reference
Every tool in every template, generated from the live templates.
Every tool in every template. The live templates below are generated from the code Mayfain runs, so they're always current. Use the names, actions, tiers, scopes and input schemas exactly as written.
Rentals
Live. Letting agents: listings, requirements, applications, viewings and messages.
search_listings
| Action | Tier | Class | Scopes |
|---|---|---|---|
search_offers |
public | read |
none |
Search this agency's available rental listings. Public: no personal data needed.
Input schema:
{
"type": "object",
"properties": {
"area": {
"type": "string"
},
"max_rent_eur": {
"type": "number"
},
"min_beds": {
"type": "integer"
},
"pets": {
"type": "boolean"
},
"available_by": {
"type": "string",
"format": "date"
}
},
"additionalProperties": false
}
get_listing
| Action | Tier | Class | Scopes |
|---|---|---|---|
get_offer |
public | read |
none |
Get full details of one listing.
Input schema:
{
"type": "object",
"properties": {
"listing_id": {
"type": "string"
}
},
"required": [
"listing_id"
],
"additionalProperties": false
}
get_requirements
| Action | Tier | Class | Scopes |
|---|---|---|---|
get_requirements |
public | read |
none |
What this listing needs from an applicant: verified claims, questions the applicant must answer in their own words, and which documents are requested at which stage.
Input schema:
{
"type": "object",
"properties": {
"listing_id": {
"type": "string"
}
},
"required": [
"listing_id"
],
"additionalProperties": false
}
submit_application
| Action | Tier | Class | Scopes |
|---|---|---|---|
submit |
private | sensitive |
applications.write, profile.basic, identity.verified, income.affordability, employment.current |
Submit an application for the signed-in person. Verified identity, income and employment are fetched by the agency directly from Mayfain; do not send them. Only send the person's own answers and message, written by them.
Free text, in the person's own words: message, answers.*.
Input schema:
{
"type": "object",
"properties": {
"listing_id": {
"type": "string"
},
"message": {
"type": "string",
"maxLength": 2000
},
"answers": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {}
},
"move_in_date": {
"type": "string",
"format": "date"
},
"adults": {
"type": "integer"
},
"children": {
"type": "integer"
},
"pets": {
"type": "string"
},
"co_application_id": {
"type": "string"
},
"joint_summary_sha256": {
"type": "string"
},
"referee_contact": {
"type": "object",
"properties": {
"contact": {
"type": "string"
},
"note": {
"type": "string"
}
},
"required": [
"contact"
],
"additionalProperties": false
}
},
"required": [
"listing_id"
],
"additionalProperties": false
}
get_application_status
| Action | Tier | Class | Scopes |
|---|---|---|---|
get_status |
private | read |
applications.read |
Status of one of the person's applications.
Input schema:
{
"type": "object",
"properties": {
"application_id": {
"type": "string"
}
},
"required": [
"application_id"
],
"additionalProperties": false
}
list_my_applications
| Action | Tier | Class | Scopes |
|---|---|---|---|
list_mine |
private | read |
applications.read |
The signed-in person's applications with this agency.
Input schema:
{
"type": "object",
"properties": {},
"additionalProperties": false
}
withdraw_application
| Action | Tier | Class | Scopes |
|---|---|---|---|
withdraw |
private | write |
applications.write |
Withdraw one of the person's applications.
Free text, in the person's own words: reason.
Input schema:
{
"type": "object",
"properties": {
"application_id": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"required": [
"application_id"
],
"additionalProperties": false
}
send_message
| Action | Tier | Class | Scopes |
|---|---|---|---|
send_message |
private | write |
applications.write |
Send a message from the person to the agency about an application. The body must be the person's own words.
Free text, in the person's own words: body.
Input schema:
{
"type": "object",
"properties": {
"application_id": {
"type": "string"
},
"body": {
"type": "string",
"maxLength": 4000
}
},
"required": [
"application_id",
"body"
],
"additionalProperties": false
}
list_viewing_slots
| Action | Tier | Class | Scopes |
|---|---|---|---|
list_slots |
private | read |
applications.write |
Viewing times the agency offered this person for a listing, and the one they've booked, if any.
Input schema:
{
"type": "object",
"properties": {
"listing_id": {
"type": "string"
}
},
"required": [
"listing_id"
],
"additionalProperties": false
}
book_viewing
| Action | Tier | Class | Scopes |
|---|---|---|---|
book_slot |
private | write |
applications.write, profile.basic |
Book one of the viewing times the agency offered the signed-in person.
Input schema:
{
"type": "object",
"properties": {
"listing_id": {
"type": "string"
},
"slot_id": {
"type": "string"
}
},
"required": [
"listing_id",
"slot_id"
],
"additionalProperties": false
}
cancel_viewing
| Action | Tier | Class | Scopes |
|---|---|---|---|
cancel_slot |
private | write |
applications.write |
Cancel the signed-in person's booked viewing for a listing.
Input schema:
{
"type": "object",
"properties": {
"listing_id": {
"type": "string"
}
},
"required": [
"listing_id"
],
"additionalProperties": false
}
Sales
Live. Estate agents. Listings, requirements, viewings and messages use the same tools as rentals; sales adds the buyer's application, which carries verified funding coverage (never the amounts unless the buyer chooses).
submit_purchase_application
| Action | Tier | Class | Scopes |
|---|---|---|---|
submit |
private | sensitive |
applications.write, profile.basic, identity.verified, funding.coverage |
Send a verified buyer pack for a property for sale, for the signed-in person. Verified ID, address and whether their verified funding covers the agent's threshold are fetched by the agency directly from Mayfain; never the amounts. Only send the person's own message, written by them.
Free text, in the person's own words: message.
Input schema:
{
"type": "object",
"properties": {
"listing_id": {
"type": "string"
},
"message": {
"type": "string",
"maxLength": 2000
},
"share_aip_amount": {
"type": "boolean",
"default": false
},
"co_application_id": {
"type": "string"
},
"joint_summary_sha256": {
"type": "string"
}
},
"required": [
"listing_id"
],
"additionalProperties": false
}
Trades and home services
Preview. Electricians, plumbers, heating engineers, locksmiths, cleaners. The contract founding partners build against; names may change. See Build a server for a worked example.
| Tool | Action | Tier | Scopes | What it does |
|---|---|---|---|---|
list_services |
search_offers |
public | none | Services the business offers, with typical prices and durations. |
get_service |
get_offer |
public | none | One service in full. |
check_service_area |
get_requirements |
public | none | Whether the business covers an area (Eircode routing key), and its call-out fee. |
get_quote |
get_quote |
private | offers.quote |
An indicative price that needs the person's address, shared with consent. |
request_job |
submit |
private | applications.write, profile.basic |
Ask for a job: the problem in the person's words, urgency and when they're free. Contact details come from Mayfain. |
get_job_status |
get_status |
private | applications.read |
Where one of the person's jobs stands. |
list_my_jobs |
list_mine |
private | applications.read |
The person's jobs with this business. |
cancel_job |
withdraw |
private | applications.write |
The person cancels a job request. |
send_message |
send_message |
private | applications.write |
A message from the person about an existing job, in their own words. |
list_visit_slots |
list_slots |
private | applications.write |
Times the business can visit. |
book_visit |
book_slot |
private | applications.write, profile.basic |
The person books one of those times. |
cancel_visit |
cancel_slot |
private | applications.write |
The person cancels a booked visit. |
Broadband
Demo. Plans by address and quotes, with demo providers only. No real orders yet.