# Which Rental Equipment Is Due for Service Before This Weekend's Events? Ask Airtable Every Thursday

An event rental company's agent reads its Airtable inventory each Thursday and lists the tents, heaters and generators due for service before they go out again.

[Run this on Rush](https://cloud.getrush.ai/run/find-rental-equipment-due-for-service/airtable/). Opens the console with this prompt ready to send. Connect Airtable there first.

## What the agent does

This is for a party and event rental company: tents, generators, patio heaters, lighting, tables and chairs, delivered to weddings and corporate events most weekends. It runs inventory and bookings from an Airtable base it built itself, with an Items table (each piece of equipment, its category, last service date, service interval in days, and engine hours for generators), a Bookings table (event date, items linked), and a Returns table where the crew notes the condition of each item when it comes back. The warehouse lead needs one list on Thursday, before Friday's loading: what is due or overdue for service, what came back damaged and has not been serviced since, and which of those are booked for this weekend. The agent connects to Airtable's MCP server at `https://mcp.airtable.com/mcp`, which signs in with OAuth. Connect it once with the API key: `POST /me/connections {"type": "mcp", "name": "airtable", "url": "https://mcp.airtable.com/mcp", "auth": {"mode": "oauth"}}`, then open the `authorize_url` while signed in to the Rush console. Airtable's consent screen lets you choose which bases the connection reaches, so choose only the inventory base.

The agent finds the base by name and reads the fields of the three tables before it reads any record, so it maps the base's own names to what it needs: service date, interval, engine hours, the booking's event date and linked items, the return's condition note and date. It then reads every Items record, the Bookings for the next four days, and the Returns from the last 30 days.

An item is due when its last service date plus its interval falls on or before Sunday, and a generator also when its engine hours since service pass the threshold the prompt gives. An item is damaged-unserviced when a return note in the last 30 days mentions damage, a fault or a repair, and its last service date is before that return. The agent marks each as booked this weekend when a booking in the next four days links it, because those are the ones the lead must service by Friday or swap for a spare of the same category. For each swap it lists spares of that category that are neither due nor booked.

The agent only reads. Airtable's MCP server can create and modify records, add comments, change tables and build automations, all within the connected person's Airtable permissions, and the prompt forbids every one of those. Marking an item serviced is done by the mechanic who serviced it.

## Start it with one API call

`POST https://api.phoenix.so/o/{org}/sessions`

```json
{
  "agent": "claude",
  "input": "Weekly service check. Today is Thursday 2026-11-19; the weekend ends Sunday 2026-11-22. Use the Airtable connection to read the base named 'Rental Inventory'. First read the fields of the Items, Bookings and Returns tables and map: item name, category, last service date, service interval (days), engine hours since service; booking event date and linked items; return date, linked item, condition note. Read all Items, Bookings with event date 2026-11-19 to 2026-11-22, and Returns since 2026-10-20. Due: last service + interval <= 2026-11-22, or generator engine hours since service >= 100. Damaged-unserviced: a return note mentioning damage, fault, broken or repair after the last service date. Return Markdown: Booked this weekend and due or damaged (item, category, reason, event date, suggested spare of the same category that is neither due nor booked); then Not booked but due; then fields you could not map. Do not create, update or delete any record, comment, field, table or automation.",
  "connections": [
    "airtable"
  ]
}
```

1. **Get an API key.** In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
2. **Send the request.** POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
3. **Read what came back.** Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.

## What comes back

The answer is a Markdown list in two parts. First, the items booked for this weekend that are due for service or came back damaged, each with the reason, the event it is booked for and a spare of the same category that is free and in service. Then the items that are due but not booked, which the mechanic can take on next week. A last line names any field the agent could not find, so a renamed column shows up rather than silently skipping a check.

The warehouse lead walks the list on the floor. A return note that says "scuffed" is not a fault, and an item serviced on Wednesday whose record was not updated will show as due, so the lead confirms each line against the item before pulling it from a booking. The interval and engine-hour thresholds in the prompt are the company's own; the agent applies them and does not decide them.

## Run it on every Thursday morning

Save the prompt as an agent with `POST /o/{org}/agents` and `connections: ["airtable"]`, and give it an automation in the console with a `schedule` trigger, a cron such as `0 7 * * 4` and the company's timezone; the automation's saved prompt gives the window as today through Sunday rather than fixed dates. Automations need Pro or Max. A company that schedules from its own system sends `POST /o/{org}/sessions` with the agent's id and the dates in `input`.

In peak season, when weekday events are booked too, the same agent runs on Monday as well with the window set to the next four days.

## Why run it on Rush?

The rules live in the company's head and in the base's own column names, which a script would have to hard-code and fix every time someone renames a field. The agent reads the fields first, maps them, and says what it could not find. The Airtable sign-in stays in Rush's connection, limited to the base chosen on Airtable's consent screen, and nothing about the base or the token lives on a warehouse PC.

Each Thursday's check is a session in its own computer with a record of every Airtable read and what came back, so when a heater fails at an event the company can open that week's run and see whether it was flagged, and what the check cost.

## Frequently asked questions

### Does the agent need edit access to the base?

It reads only, and Airtable's server works within the connected person's Airtable permissions. Connect with an account that can read the base, and choose only that base on Airtable's consent screen.

### Our base uses different table names. Do we need to change it?

No. Put your table names in the prompt; the agent reads each table's fields and maps them to what the check needs before reading records, and lists any it could not map.

### Can it mark items as out of service so they cannot be booked?

Airtable's server can modify records, but this prompt forbids it. Taking an item out of service changes what the booking team can promise customers, so the warehouse lead does it after checking the item.

### Can we change which bases the connection reaches later?

Airtable's guide says the bases picked during sign-in can be changed from airtable.com/?integrations=thirdParty. The agent then reaches whatever the connection allows on its next run.

## More Airtable jobs

- [Which Tours Next Week Are Still Below Their Minimum Group Size? A Tour-Operator App Checks Each Operator's Airtable Every Morning](https://getrush.ai/run/find-tour-departures-below-minimum-group-size/airtable/)
- [Flag Products in Each Online Store's Airtable Catalog That Are Not Ready to List](https://getrush.ai/run/flag-incomplete-product-listings/airtable/)
- [Flag Loads at Risk of Missing Delivery in a Freight Broker's Airtable](https://getrush.ai/run/flag-late-loads/airtable/)

## More jobs like this: Produce a report or file, no repo

- [MAP Monitoring: Find Retailers Priced Below MAP](https://getrush.ai/run/find-retailers-advertising-below-map/web/)
- [Which n8n Workflows Stopped Running Without Failing? A Property Manager's Weekly Check of Its Scheduled Automations](https://getrush.ai/run/find-scheduled-workflows-that-stopped-running/n8n/)
- [Which Upcoming Shows Are Selling Slower Than Usual? A Ticketing Platform's Monday Check of Its PlanetScale Database](https://getrush.ai/run/find-shows-selling-slower-than-usual/planetscale/)

## Keep reading

- [Connect Airtable to Rush once, then name it on any run](https://getrush.ai/integrations/airtable/)
- [Start your first run from the developer API quickstart](https://getrush.ai/docs/quickstart/)
- [Rush pricing: Free, Pro and Max](https://getrush.ai/pricing/)
