update_bookable_type

writes

One of the tools an AI assistant can call on an Avrosh account.

What it does

Change one bookable type: name, prices, capacity, description, amenities, or the deposit asked to confirm a booking. Send ONLY the fields the human asked to change. deposit_kind 'percent' takes deposit_value 0-100; 'flat' takes a whole-currency amount; 'none' clears it. For schedule and hours changes use set_bookable_type_schedule.

This is the exact text the model reads before deciding to call.

Parameters

business_idstringrequired

The id returned by list_businesses.

type_idstringrequired

From list_bookable_types.

namestringoptional

The type name as customers know it. Max 160 chars. Omit to leave it unchanged.

priceintegeroptional

Base rate.

price_maxintegeroptional

Top of the range.

sleepsintegeroptional

Maximum people it fits. Never guess a number the human did not give. Omit to leave it unchanged.

descriptionstringoptional

What it is, as read to customers. Max 2000 chars. Omit to leave it unchanged.

bed_configstringoptional

E.g. '1 king' or '2 twin'. Rooms only. Omit to leave it unchanged.

viewstringoptional

E.g. 'garden', 'sea'. Max 120 chars. Omit to leave it unchanged.

amenitiesarrayoptional

Free-form tags. Max 40. Replaces the whole list rather than adding to it. Omit to leave it unchanged.

deposit_kindstringoptional

How a deposit is worked out: 'none' asks for nothing, 'flat' a fixed amount, 'percent' a share of the rate. Set the amount with deposit_value. Omit to leave it unchanged.

one of: none · flat · percent

deposit_valueintegeroptional

0-100 for percent; whole-currency amount for flat.

deposit_refundablestringoptional

Whether the deposit comes back on cancellation. A string, not a boolean: send 'true' or 'false'. Omit to leave it unchanged.

one of: true · false

Response

The result arrives as an MCP content block; the JSON in the panel is what the text field parses to.

Connecting

Point any MCP client at https://us.avrosh.com/mcp and log in — OAuth 2.1, no key to paste.

The panel here uses the other door: a bearer key made in the dashboard, for a script or a cron job with no browser to sign in with. Both reach the same endpoint. Full notes on the reference overview.

curl -X POST https://us.avrosh.com/mcp \
  -H "Authorization: Bearer $AVROSH_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "update_bookable_type",
      "arguments": {
        "business_id": "926135ac-487d-4367-8bad-25397d0d4b87",
        "type_id": "e63a…",
        "price": 550000
      }
    }
  }'