FoyerDevelopers

Generated · Live registry

rate-suggestions tools

7 tools in this domain, generated from the running registry.

All tool domains

rate-suggestions.act

writesconfirm

Act on a rate suggestion: 'accepted' writes the suggested (or override) price into room_rates for that room-type/date, 'rejected' dismisses it, 'override' records a custom price. Writes pricing — requires confirmation.

Input parameters

FieldTypeRequiredNotes
idstringyes
actionenumyesOne of: accepted, rejected, override
overrideCentsintegerno

Output fields

FieldTypeRequiredNotes
okliteralyesOne of: true

rate-suggestions.get_auto_mode

read-only

Read the current rate_suggestion_auto_mode setting for the tenant. Returns 'off' (no automation), 'suggest' (daily suggestions for operator review), or 'auto' (daily suggestions + auto-apply within ±20% guard). Read-only. Rate suggestions include a losHint field ({ minStay: number } | null) set when occupancy >= 75%; auto-mode writes minStay to rate_restrictions automatically.

Input parameters

Returns object.

Output fields

FieldTypeRequiredNotes
modeenumyesOne of: off, suggest, auto

rate-suggestions.get_benchmark

read-only

Get anonymous cross-tenant benchmark rates for a specific date (p25/p50/p75 in cents). Returns null if fewer than 5 tenants are in the cohort (k-anonymity threshold). The cohort is determined by the tenant's country and room-count size band ('5-15' | '16-30' | '31-60' | '60+'). Data is refreshed daily at 03:00 UTC.

Input parameters

FieldTypeRequiredNotes
datestringyes

Output fields

The whole object may be null.

FieldTypeRequiredNotes
p25Centsintegeryes
p50Centsintegeryes
p75Centsintegeryes
sampleSizeintegeryes

rate-suggestions.get_benchmark_opt_in

read-only

Get the current tenant's benchmark opt-in status. When enabled, this tenant's room_rates contribute to the anonymous cross-tenant benchmark pool. Returns { enabled: boolean }.

Input parameters

Returns object.

Output fields

FieldTypeRequiredNotes
enabledbooleanyes

rate-suggestions.list

read-only

List AI-generated nightly rate suggestions in a date range — each with the suggested and current price (cents), a rationale, the LOS hint, and whether it was already acted on (accepted/rejected/override). Read-only.

Input parameters

FieldTypeRequiredNotes
fromstringyes
tostringyes
ratePlanIdstringno

Output fields

FieldTypeRequiredNotes
itemsarray of objectyes
items.idstringyes
items.roomTypestring · nullableyes
items.datestringyes
items.ratePlanIdstring · nullableyes
items.suggestedCentsnumber · nullableyes
items.currentCentsnumber · nullableyes
items.rationalestring · nullableyes
items.sourcestring · nullableyes
items.actedOnstring · nullableyes
items.losHintnumber · nullableyes

rate-suggestions.set_auto_mode

writesconfirm

Update the rate_suggestion_auto_mode setting for the tenant. 'off' disables automation; 'suggest' enables daily generation of rate suggestions for operator review; 'auto' additionally applies suggestions that fall within the ±20% guard automatically. Requires confirmation.

Input parameters

FieldTypeRequiredNotes
modeenumyesOne of: off, suggest, auto

Output fields

FieldTypeRequiredNotes
okliteralyesOne of: true
modeenumyesOne of: off, suggest, auto

rate-suggestions.set_benchmark_opt_in

writesconfirm

Enable or disable this tenant's participation in the anonymous rate benchmark pool. When enabled, the tenant's room_rates feed the aggregated benchmark that all opted-in tenants in the same country + size band can see. The benchmark only surfaces when >= 5 tenants are in the cohort. Requires confirmation.

Input parameters

FieldTypeRequiredNotes
enabledbooleanyes

Output fields

FieldTypeRequiredNotes
okliteralyesOne of: true