Skip to main content

Condition Report Tools

Track and retrieve condition reports for inventory-tracked rental items. Log equipment condition at pickup and return, and view condition history per item.

Required scope: mcp:access

Tools Overviewโ€‹

ToolDescriptionRead-only?
get_condition_historyGet condition report history for an inventory itemYes
get_booking_condition_reportsGet all condition reports for a bookingYes
log_condition_reportLog a condition report for an item in a bookingNo

get_condition_historyโ€‹

Get the condition report history for a specific inventory item across all bookings. Shows all condition assessments logged at pickup and return over time.

Parametersโ€‹

NameTypeRequiredDescription
inventory_idintegerYesThe product inventory item ID

Exampleโ€‹

{
"tool": "get_condition_history",
"arguments": {
"inventory_id": 78
}
}

Responseโ€‹

{
"total": 3,
"reports": [
{
"id": 42,
"context": "Return",
"condition": "Damaged",
"notes": "Deep scratch on hull",
"booking_id": 130,
"reported_by": "Mike Johnson",
"reported_at": "4:30pm - 18th March 2026",
"photos_count": 2
},
{
"id": 40,
"context": "Pickup",
"condition": "Good",
"notes": "Minor surface wear",
"booking_id": 130,
"reported_by": "Sarah Marshall",
"reported_at": "9:00am - 15th March 2026",
"photos_count": 0
}
]
}

get_booking_condition_reportsโ€‹

Get all condition reports for a specific booking.

Parametersโ€‹

NameTypeRequiredDescription
booking_idintegerYesThe booking ID

Exampleโ€‹

{
"tool": "get_booking_condition_reports",
"arguments": {
"booking_id": 130
}
}

Responseโ€‹

{
"total": 2,
"reports": [
{
"id": 40,
"context": "Pickup",
"condition": "Good",
"product": "Mountain Bike",
"inventory_identifier": "MB-012",
"notes": "Minor surface wear",
"reported_by": "Sarah Marshall",
"reported_at": "9:00am - 15th March 2026",
"photos_count": 0
},
{
"id": 42,
"context": "Return",
"condition": "Damaged",
"product": "Mountain Bike",
"inventory_identifier": "MB-012",
"notes": "Deep scratch on hull",
"reported_by": "Mike Johnson",
"reported_at": "4:30pm - 18th March 2026",
"photos_count": 2
}
]
}

log_condition_reportโ€‹

Log a condition report for an inventory item in a booking. If condition is damaged on return, the item is automatically sent to the workshop.

Parametersโ€‹

NameTypeRequiredDescription
booking_idintegerYesThe booking ID
inventory_log_idintegerYesThe inventory log ID (from the booking's inventory records)
contextstringYespickup or return
conditionstringYesexcellent, good, fair, poor, or damaged
notesstringNoOptional notes about the condition

Exampleโ€‹

{
"tool": "log_condition_report",
"arguments": {
"booking_id": 130,
"inventory_log_id": 501,
"context": "return",
"condition": "damaged",
"notes": "Deep scratch on frame, chain broken"
}
}

Responseโ€‹

{
"success": true,
"message": "Condition report created. Item sent to workshop due to damaged condition.",
"report_id": 42
}

Notesโ€‹

  • Photos cannot be attached via the AI tool -- use the REST API Upload Photos endpoint
  • Workshop auto-send only triggers when context is return and condition is damaged
  • The inventory log ID can be found in the booking details (inventory records)