AssetLab
v3.3.0Work orders, PM schedules, assets, capital plans and infrastructure in AssetLab CMMS/EAM.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_assets List assets
List assets in your AssetLab account. Supports filtering by site, building, system class, system group, system, status, and text search. Archived assets (removed from service, kept for their history) are left out unless include_archived is true or status_id names a status. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
building_id | string | Filter by building ID |
include_archived | boolean | Include archived assets in the list (default false) |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
site_id | string | Filter by site ID |
status_id | string | Filter by status ID from list_asset_statuses. The status with system_key archived returns only archived assets. |
system_class_id | string | Filter by system class ID |
system_group_id | string | Filter by system group ID |
system_id | string | Filter by system ID |
get_asset Get asset
Get detailed information about a specific asset by its ID, archived or not; archived_at is set on an archived asset. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset ID |
list_work_orders List work orders
List work orders. Filter by status (NEW, IN_PROGRESS, ON_HOLD, COMPLETED, CANCELLED), priority (LOW, MEDIUM, HIGH, URGENT), type (PM, REACTIVE), and site. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
priority | string | Filter by priority: LOW, MEDIUM, HIGH, URGENT |
search | string | Search by name |
site_id | string | Filter by site ID |
status | string | Filter by status: NEW, IN_PROGRESS, ON_HOLD, COMPLETED, CANCELLED |
type | string | Filter by type: PM (preventive) or REACTIVE |
get_work_order Get work order
Get detailed information about a specific work order by its ID, including description, dates, costs, and completion details. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Work order ID |
list_sites List sites
List all sites (physical locations/campuses) in your organization. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
city | string | Filter by city name |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
get_site Get site
Get detailed information about a specific site including address and description. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Site ID |
list_buildings List buildings
List buildings. Optionally filter by site to see all buildings at a specific location.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
site_id | string | Filter by site ID |
list_locations List locations
List locations (rooms, floors, areas within buildings). Optionally filter by building or location type.
| Parameter | Type | Description |
|---|---|---|
building_id | string | Filter by building ID |
location_type_id | string | Filter by location type ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
list_systems List systems
List systems (e.g., HVAC units, plumbing systems, electrical systems). Optionally filter by system group.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
system_group_id | string | Filter by system group ID |
list_system_groups List system groups
List system groups (categories of systems, e.g., "Heating", "Cooling"). Optionally filter by system class.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
system_class_id | string | Filter by system class ID |
list_system_classes List system classes
List system classes (top-level classification, e.g., "HVAC", "Plumbing", "Electrical").
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
list_pm_schedules List PM schedules
List preventive maintenance schedules. Filter by status, frequency, or site. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
frequency | string | Filter by frequency: DAILY, WEEKLY, MONTHLY, QUARTERLY, SEMI_ANNUAL, ANNUAL, FIVE_YEARLY, CUSTOM |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
site_id | string | Filter by site ID |
status | string | Filter by status: active, inactive |
get_pm_schedule Get PM schedule
Get detailed information about a specific PM schedule including tasks, resources, and linked assets. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | PM schedule ID |
list_pm_templates List PM templates
List preventive maintenance templates that can be used to create PM schedules. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
list_form_templates List form templates
List form templates - reusable inspection, checklist, compliance, and survey definitions. Each has a `module`: facilities, infrastructure, or null (shared by both).
| Parameter | Type | Description |
|---|---|---|
module | string | Only records in this workspace; none = shared ones only |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
status | string | Filter by status: draft, published, archived |
work_category_id | string | Filter by work category ID (look up with list_work_categories) |
get_form_template Get form template
Get detailed information about a specific form template by its ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Form template ID |
list_form_template_items List form template items
List the items (questions) within form templates. Returned in sort order. Filter by template_id.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
template_id | string | Filter by form template ID |
get_form_template_item Get form template item
Get detailed information about a specific form template item by its ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Form template item ID |
list_form_responses List form responses
List form responses - completed or in-progress fill-outs of a form, attached to a work order or PM. Read-only.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
status | string | Filter by status |
subject_id | string | Filter by subject ID |
subject_type | string | Filter by subject type |
template_id | string | Filter by form template ID |
get_form_response Get form response
Get detailed information about a specific form response by its ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Form response ID |
list_form_response_answers List form response answers
List the per-question answer values within form responses. Read-only.
| Parameter | Type | Description |
|---|---|---|
item_key | string | Filter by item key |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
response_id | string | Filter by form response ID |
get_form_response_answer Get form response answer
Get detailed information about a specific form response answer by its ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Form response answer ID |
list_projects List projects
List capital projects. Filter by status or health status (on_track, at_risk, delayed, critical). Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
health_status | string | Filter by health: on_track, at_risk, delayed, critical |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
status | string | Filter by project status |
get_project Get project
Get detailed project information including budget, progress, schedule variance, and linked sites. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project ID |
list_contracts List contracts
List vendor contracts. Filter by category or search by title. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by contract category |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
list_asset_statuses List asset statuses
List asset statuses for the organization. These define the lifecycle states an asset or infrastructure feature can be in. Each has a `module`: facilities (assets), infrastructure (features), or null (shared by both); pick one matching the record, or a shared one. The status with system_key archived is the built-in Archived status: assigning it to an asset archives the asset.
| Parameter | Type | Description |
|---|---|---|
module | string | Only records in this workspace; none = shared ones only |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
get_asset_status Get asset status
Get a single asset status by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset status ID |
list_compliance_items List compliance items
List compliance items (regulatory requirements tracked against PM schedules). Filter by status or system.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
status | string | Filter by status: active, archived |
system_id | string | Filter by system ID |
get_compliance_item Get compliance item
Get detailed compliance item including linked PM schedules and their required frequencies.
| Parameter | Type | Description |
|---|---|---|
id * | string | Compliance item ID |
list_parts List parts
List parts/inventory items. Filter by site or category. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category (partial match) |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
site_id | string | Filter by site ID |
get_part Get part
Get detailed information about a specific part including location and stock levels. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Part ID |
list_vendors List vendors
List vendors. Filter by status, category, or city.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category (matches vendors that include this category) |
city | string | Filter by city (partial match) |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
status | string | Filter by vendor status |
get_vendor Get vendor
Get detailed vendor information including contact details, address, and website.
| Parameter | Type | Description |
|---|---|---|
id * | string | Vendor ID |
list_work_requests List work requests
List work requests (submitted by requesters). Filter by status (PENDING_REVIEW, APPROVED, REJECTED) or priority.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
priority | string | Filter by priority: LOW, MEDIUM, HIGH, URGENT |
search | string | Search by name |
site_id | string | Filter by site ID |
status | string | Filter by status: PENDING_REVIEW, APPROVED, REJECTED |
get_work_request Get work request
Get detailed work request information including description, attachments, and processing status.
| Parameter | Type | Description |
|---|---|---|
id * | string | Work request ID |
list_invoices List invoices
List invoices. Filter by status (pending, approved, paid, voided), vendor, or project. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
search | string | Search by name |
status | string | Filter by status: pending, approved, paid, voided |
vendor_id | string | Filter by vendor ID |
get_invoice Get invoice
Get detailed invoice information including amounts, dates, linked vendor, project, and purchase order. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Invoice ID |
list_purchase_orders List purchase orders
List purchase orders. Filter by status (draft, issued, partially_received, received, closed, cancelled), vendor, or project. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
search | string | Search by name |
status | string | Filter by status: draft, issued, partially_received, received, closed, cancelled |
vendor_id | string | Filter by vendor ID |
get_purchase_order Get purchase order
Get detailed purchase order information including amount, status, vendor, and linked project. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Purchase order ID |
list_purchase_order_lines List purchase order lines
List purchase order line items: description, optional part, quantity, unit_cost and quantity_received. Filter by purchase_order_id or part_id. A PO with lines takes its amount from them. unit_cost is a bare number with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
part_id | string | Filter by part ID |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
purchase_order_id | string | Filter by purchase order ID |
get_purchase_order_line Get purchase order line
Get one purchase order line item by ID. unit_cost is a bare number with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Purchase order line ID |
list_purchase_order_links List purchase order links
List the extra records a purchase order is linked to for reference: each row has exactly one of work_order_id, pm_schedule_id or project_id. Links never add to committed cost; the PO is charged only to its own project_id / work_order_id. Filter by any of those four IDs.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
pm_schedule_id | string | Filter by linked PM schedule ID |
project_id | string | Filter by linked project ID |
purchase_order_id | string | Filter by purchase order ID |
work_order_id | string | Filter by linked work order ID |
get_purchase_order_link Get purchase order link
Get one purchase order link by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Purchase order link ID |
list_expenses List expenses
List project-scoped expenses (the Project → Costs → Expenses tab). These records have description, amount, expense_date, receipt_url, and notes - they do NOT carry invoice_number or po_number. For the records shown on the main AssetLab "Expenses" page (which include invoice_number, po_number, category, and asset/site links), use list_asset_costs instead. Filter by project, work order, or cost category. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
category_id | string | Filter by cost category ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
search | string | Search by name |
work_order_id | string | Filter by work order ID |
get_expense Get expense
Get a project-scoped expense (Project → Costs → Expenses tab) by ID, including amount, date, receipt, and linked project or work order. Does NOT include invoice_number or po_number - those live on asset_costs (the main AssetLab "Expenses" page). Use get_asset_cost for that record type. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Expense ID |
list_change_orders List change orders
List change orders. Filter by status, vendor_id, or project_id. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
search | string | Search by name |
status | string | Filter by status: draft, submitted, approved, rejected |
vendor_id | string | Filter by vendor ID |
get_change_order Get change order
Get a change order by ID, including amount, status, vendor, and linked project. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Change order ID |
list_project_document_folder_templates List project document folder templates
List project document folder templates for reusable folder structures.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
get_project_document_folder_template Get project document folder template
Get a project document folder template by ID, including its folder structure.
| Parameter | Type | Description |
|---|---|---|
id * | string | Template ID |
list_asset_type_groups List asset type groups
List asset type group classifications. Groups organize asset types into logical categories.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
list_asset_types List asset types
List asset type classifications. Filter by group.
| Parameter | Type | Description |
|---|---|---|
group_id | string | Filter by asset type group ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
list_work_categories List work categories
List work categories used to classify work orders and requests. Each has a `module`: facilities, infrastructure, or null (shared by both). Pick a category whose module matches the work - infrastructure for work on a feature, facilities otherwise - or a shared one.
| Parameter | Type | Description |
|---|---|---|
module | string | Only categories in this workspace; none = shared categories only |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
list_manufacturers List manufacturers
List manufacturers of equipment and assets.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
get_manufacturer Get manufacturer
Get detailed manufacturer information including contact details and associated system classes.
| Parameter | Type | Description |
|---|---|---|
id * | string | Manufacturer ID |
list_building_types List building types
List building type classifications.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
list_location_types List location types
List location type classifications (e.g., room types, floor types).
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
list_project_phase_categories List project phase categories
List project phase categories (e.g., Planning, Design, Execution). Sorted by sort_order.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
list_cost_categories List cost categories
List cost categories used to classify expenses, invoices, and purchase orders. Supports hierarchical parent-child structure.
| Parameter | Type | Description |
|---|---|---|
is_active | string | Filter by active status |
page | integer | Page number (default: all pages fetched automatically) |
parent_id | string | Filter by parent category ID |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
list_budgets List budgets
List annual funding budgets - one figure per year, funding source (O&M or Capital) and workspace (module), which is what the dashboard Budget tab shows. Filter by year, funding source, module, site or building. Includes allocated, budgeted, and remaining amounts. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
building_id | string | Filter by building ID |
funding_source | string | Filter by funding source |
module | string | Filter by workspace; 'none' for organization-wide budgets |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
site_id | string | Filter by site ID |
year | integer | Filter by budget year (e.g. 2026) |
get_budget Get budget
Get a single annual funding budget by ID. Use list_sites/list_buildings to resolve site_id/building_id. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Budget ID |
get_organization_settings Get organization settings
Get this organization's display settings: currency_code (ISO 4217), timezone, date_format, company_name, org_category, and which optional modules are enabled (infrastructure, level of service; enable_floorplans is not enforced - floorplans are available on every plan). Call this before presenting any monetary amount - costs, budgets and replacement values returned by every other tool are bare numbers with no currency attached, so stating one without checking risks labelling a Canadian tenant's money as US dollars. Also the fastest way to tell an empty module from one this organization does not…
get_dashboard_summary Get dashboard summary
Get aggregated dashboard statistics: total assets, work orders by status, overdue count, active PM schedules, sites, and buildings.
list_asset_comments List asset comments
List comments on assets. Filter by asset_id to get comments for a specific asset.
| Parameter | Type | Description |
|---|---|---|
asset_id | string | Filter by asset ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_asset_comment Get asset comment
Get a single asset comment by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset comment ID |
list_asset_costs List asset costs
List asset cost records - this is what the AssetLab UI shows on the main "Expenses" page (top-level nav). Each record includes amount, cost_date, category (Repair, PM, Operation, Replacement, Decommission, Other), description, invoice_number, po_number, and links to asset/site/building/work_order. Distinct from list_expenses, which returns project-scoped expenses without invoice/PO fields. Filter by asset, site, category, or work order. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
asset_id | string | Filter by asset ID |
category | string | Filter by cost category |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
site_id | string | Filter by site ID |
work_order_id | string | Filter by work order ID |
get_asset_cost Get asset cost
Get a single asset cost record by ID - the record type shown on the main AssetLab "Expenses" page. Returns amount, cost_date, category, description, invoice_number, po_number, and related asset, site, building, and work_order. Distinct from get_expense (project-scoped expenses without invoice/PO). Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset cost ID |
list_asset_replacement_plans List asset replacement plans
List asset replacement plans for lifecycle/capital planning. Filter by asset, status, priority, or planned year. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
asset_id | string | Filter by asset ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
priority | string | Filter by priority |
status | string | Filter by plan status |
year | integer | Filter by planned replacement year |
get_asset_replacement_plan Get asset replacement plan
Get a single asset replacement plan by ID. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Replacement plan ID |
list_asset_risk_history List asset risk history
List asset risk assessment history. Shows risk scores, condition scores, and trigger events over time. Condition scores are 0-100: 85+ Excellent, 70-84 Good, 55-69 Fair, 40-54 Poor, below 40 Critical.
| Parameter | Type | Description |
|---|---|---|
asset_id | string | Filter by asset ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
trigger_event | string | Filter by trigger event type |
get_asset_risk_history_entry Get asset risk history entry
Get a single asset risk history entry by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Risk history entry ID |
list_work_order_comments List work order comments
List comments on work orders. Filter by work_order_id to get comments for a specific work order.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
work_order_id | string | Filter by work order ID |
get_work_order_comment Get work order comment
Get a single work order comment by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Work order comment ID |
list_work_order_schedules List work order schedules
List work order schedules (technician day plans). Filter by technician_id + scheduled_date to get one technician's ordered day: rows are returned by date, then stop_order (the day-plan stop sequence; rows without stop_order sort last), then start time. travel_time_minutes is a straight-line estimate from the previous stop.
| Parameter | Type | Description |
|---|---|---|
date_from | string | Filter: scheduled_date on or after (YYYY-MM-DD) |
date_to | string | Filter: scheduled_date on or before (YYYY-MM-DD) |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
scheduled_date | string | Filter by exact date (YYYY-MM-DD) |
technician_id | string | Filter by technician (Clerk user ID) |
work_order_id | string | Filter by work order ID |
get_work_order_schedule Get work order schedule
Get a single work order schedule entry by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Work order schedule ID |
list_project_tasks List project tasks
List project tasks (work breakdown structure). Filter by project, phase, status, or priority. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
phase_id | string | Filter by phase ID |
priority | string | Filter by priority |
project_id | string | Filter by project ID |
search | string | Search by name |
status | string | Filter by task status |
get_project_task Get project task
Get a single project task by ID, including cost and hour tracking. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project task ID |
list_project_milestones List project milestones
List project milestones. Filter by project or status (pending, completed, missed, at_risk).
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
search | string | Search by name |
status | string | Filter by milestone status |
get_project_milestone Get project milestone
Get a single project milestone by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project milestone ID |
list_project_phases List project phases
List project phases. Filter by project or status (pending, in_progress, completed, skipped).
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
status | string | Filter by phase status |
get_project_phase Get project phase
Get a single project phase by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project phase ID |
list_project_budget_items List project budget items
List project budget line items (labor, materials, equipment, subcontractors, permits, contingency, other). Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by budget category |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
get_project_budget_item Get project budget item
Get a single project budget item by ID. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Budget item ID |
list_project_time_entries List project time entries
List project time entries for labor tracking. Filter by project, task, or user.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
task_id | string | Filter by task ID |
user_id | string | Filter by user ID |
get_project_time_entry Get project time entry
Get a single project time entry by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Time entry ID |
list_project_comments List project comments
List comments on projects. Supports threaded replies via parent_id.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
get_project_comment Get project comment
Get a single project comment by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project comment ID |
list_compliance_records List compliance records
List compliance records - audit trail of completed compliance checks linked to work orders and PM schedules.
| Parameter | Type | Description |
|---|---|---|
compliance_item_id | string | Filter by compliance item ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
work_order_id | string | Filter by work order ID |
get_compliance_record Get compliance record
Get a single compliance record by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Compliance record ID |
list_compliance_pm_schedules List compliance PM schedules
List the PM schedules linked to a compliance item, or the compliance items a PM schedule counts toward. Pass compliance_item_id or pm_schedule_id (one is required). Each link carries required_frequency_days (how often the schedule must be completed for the item to stay compliant) and weight.
| Parameter | Type | Description |
|---|---|---|
compliance_item_id | string | Compliance item ID - resolve via list_compliance_items |
pm_schedule_id | string | PM schedule ID - resolve via list_pm_schedules |
get_compliance_pm_schedule Get compliance PM schedule
Get one compliance item to PM schedule link by its ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Link ID |
list_site_fci_history List site FCI history
List Facility Condition Index (FCI) history for sites. fci_value is deferred renewal cost divided by current replacement value, a fraction where LOWER is healthier: below 0.05 good, 0.05-0.10 fair, 0.10 and above poor. It is not a 0-100 condition score. To chart one site, use show_site_fci_trend.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
site_id | string | Filter by site ID |
get_site_fci_history_entry Get site FCI history entry
Get a single site FCI history entry by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | FCI history entry ID |
list_dashboard_snapshots List dashboard snapshots
List monthly dashboard snapshots with aggregate stats: asset counts, condition scores, work order metrics, and CRV totals. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
month | integer | Filter by snapshot month (1-12) |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
year | integer | Filter by snapshot year (e.g. 2026) |
get_dashboard_snapshot Get dashboard snapshot
Get a single dashboard snapshot by ID. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Dashboard snapshot ID |
list_vendor_site_assignments List vendor site assignments
List vendor-to-site assignments showing which vendors serve which sites.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
site_id | string | Filter by site ID |
vendor_id | string | Filter by vendor ID |
get_vendor_site_assignment Get vendor site assignment
Get a single vendor site assignment by ID, including vendor and site names.
| Parameter | Type | Description |
|---|---|---|
id * | string | Vendor site assignment ID |
list_contract_sites List contract sites
List contract-to-site mappings showing which contracts cover which sites. No single-record lookup (composite key).
| Parameter | Type | Description |
|---|---|---|
contract_id | string | Filter by contract ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
site_id | string | Filter by site ID |
list_custom_field_definitions List custom field definitions
List custom field definitions configured for this tenant. Filter by entity type (e.g. asset, work_order) or field type.
| Parameter | Type | Description |
|---|---|---|
entity_type | string | Filter by entity type (e.g. asset, work_order) |
field_type | string | Filter by field type |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_custom_field_definition Get custom field definition
Get a single custom field definition by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Custom field definition ID |
list_custom_field_values List custom field values
List custom field values. Filter by entity_id to get all custom fields for a specific record, or by field_definition_id.
| Parameter | Type | Description |
|---|---|---|
entity_id | string | Filter by entity ID (e.g. asset ID, work order ID) |
field_definition_id | string | Filter by field definition ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_custom_field_value Get custom field value
Get a single custom field value by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Custom field value ID |
list_part_categories List part categories
List part categories used to classify inventory parts. Each has a `module`: facilities, infrastructure, or null (shared by both); pick one matching the part's workspace, or a shared one.
| Parameter | Type | Description |
|---|---|---|
module | string | Only records in this workspace; none = shared ones only |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
get_part_category Get part category
Get a single part category by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Part category ID |
list_asset_parts List asset parts
List parts associated with assets. Filter by asset_id to get all parts for one asset, or by part_id to see all assets using a specific part.
| Parameter | Type | Description |
|---|---|---|
asset_id | string | Filter by asset ID |
page | integer | Page number (default: all pages fetched automatically) |
part_id | string | Filter by part ID |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_asset_part Get asset part
Get a single asset-part association by ID, including asset and part details.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset-part association ID |
list_asset_documents List asset documents
List asset documents (O&M manuals, warranties, specs, etc.). Filter by asset_id or category.
| Parameter | Type | Description |
|---|---|---|
asset_id | string | Filter by asset ID |
category | string | Filter by document category |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
get_asset_document Get asset document
Get a single asset document by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset document ID |
list_attachments List attachments
List file attachments linked to work orders, work requests, PM schedules, or PM templates.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
pm_schedule_id | string | Filter by PM schedule ID |
pm_template_id | string | Filter by PM template ID |
search | string | Search by name |
work_order_id | string | Filter by work order ID |
work_request_id | string | Filter by work request ID |
get_attachment Get attachment
Get a single attachment by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Attachment ID |
list_project_documents List project documents
List documents attached to projects. Filter by project_id or folder_id.
| Parameter | Type | Description |
|---|---|---|
folder_id | string | Filter by folder ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
search | string | Search by name |
get_project_document Get project document
Get a single project document by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project document ID |
list_contract_documents List contract documents
List documents attached to contracts. Filter by contract_id.
| Parameter | Type | Description |
|---|---|---|
contract_id | string | Filter by contract ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
get_contract_document Get contract document
Get a single contract document by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Contract document ID |
list_project_team_members List project team members
List project team members. Filter by project, user, or active status.
| Parameter | Type | Description |
|---|---|---|
is_active | string | Filter by active status ("true" or "false") |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
search | string | Search by name |
user_id | string | Filter by user ID (Clerk ID) |
get_project_team_member Get project team member
Get a single project team member by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project team member ID |
list_project_task_dependencies List project task dependencies
List task dependencies. Filter by task_id or depends_on_task_id to see dependency chains.
| Parameter | Type | Description |
|---|---|---|
dependency_type | string | Filter by dependency type |
depends_on_task_id | string | Filter by depended-on task ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
task_id | string | Filter by task ID |
get_project_task_dependency Get project task dependency
Get a single project task dependency by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project task dependency ID |
list_project_updates List project updates
List periodic project updates (status reports). Filter by project, timeframe, or year.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
period_year | integer | Filter by year |
project_id | string | Filter by project ID |
search | string | Search by name |
timeframe | string | Filter by timeframe |
get_project_update Get project update
Get a single project update by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project update ID |
list_project_cost_snapshots List project cost snapshots
List historical cost snapshots for projects. Filter by project_id to see cost trends over time. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
get_project_cost_snapshot Get project cost snapshot
Get a single project cost snapshot by ID. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project cost snapshot ID |
list_project_locations List project locations
List location assignments for projects. Filter by project_id or location_id.
| Parameter | Type | Description |
|---|---|---|
location_id | string | Filter by location ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
get_project_location Get project location
Get a single project location assignment by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project location ID |
list_project_sites List project sites
List site assignments for projects. Filter by project_id or site_id.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
site_id | string | Filter by site ID |
get_project_site Get project site
Get a single project site assignment by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project site ID |
list_project_buildings List project buildings
List building assignments for projects. Filter by project_id or building_id.
| Parameter | Type | Description |
|---|---|---|
building_id | string | Filter by building ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
get_project_building Get project building
Get a single project building assignment by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project building ID |
list_project_systems List project systems
List system assignments for projects. Filter by project_id or system_id.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
system_id | string | Filter by system ID |
get_project_system Get project system
Get a single project system assignment by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project system ID |
list_project_system_classes List project system classes
List system class assignments for projects. Filter by project_id or system_class_id.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
system_class_id | string | Filter by system class ID |
get_project_system_class Get project system class
Get a single project system class assignment by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project system class ID |
list_project_system_groups List project system groups
List system group assignments for projects. Filter by project_id or system_group_id.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
system_group_id | string | Filter by system group ID |
get_project_system_group Get project system group
Get a single project system group assignment by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project system group ID |
list_project_risks List project risks
List project risks (risk register). Filter by project, status, category, probability, or impact.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by risk category |
impact | string | Filter by impact level |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
probability | string | Filter by probability |
project_id | string | Filter by project ID |
search | string | Search by name |
status | string | Filter by risk status |
get_project_risk Get project risk
Get a single project risk by ID, including mitigation and contingency plans.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project risk ID |
list_project_assets List project assets
List asset assignments for projects. Filter by project_id or asset_id.
| Parameter | Type | Description |
|---|---|---|
asset_id | string | Filter by asset ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
get_project_asset Get project asset
Get a single project asset assignment by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project asset ID |
list_service_areas List service areas
List service areas (Level of Service groupings). Filter by active status or search by name.
| Parameter | Type | Description |
|---|---|---|
is_active | boolean | Filter by active status (true/false) |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
get_service_area Get service area
Get a single service area by ID, including linked system classes and sites.
| Parameter | Type | Description |
|---|---|---|
id * | string | Service area ID |
list_service_area_system_classes List service area system classes
List system class links for service areas. Filter by service_area_id or system_class_id.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
service_area_id | string | Filter by service area ID |
system_class_id | string | Filter by system class ID |
list_service_area_sites List service area sites
List site links for service areas. Filter by service_area_id or site_id.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
service_area_id | string | Filter by service area ID |
site_id | string | Filter by site ID |
list_los_measures List LoS measures
List LoS measures. Filter by service area, category, type, data source, or active status.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by measure category |
data_source | string | Filter by data source type |
is_active | boolean | Filter by active status |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
service_area_id | string | Filter by service area ID |
type | string | Filter by measure type |
get_los_measure Get LoS measure
Get a single LoS measure by ID, including all configuration (targets, data source, weights).
| Parameter | Type | Description |
|---|---|---|
id * | string | LoS measure ID |
list_los_measurements List LoS measurements
List LoS measurement values (time-series). Filter by measure, period type, date range, or auto/manual.
| Parameter | Type | Description |
|---|---|---|
date_from | string | Filter measurements from this date (ISO 8601, inclusive) |
date_to | string | Filter measurements up to this date (ISO 8601, inclusive) |
is_auto | boolean | Filter by auto-calculated (true) or manual (false) |
los_measure_id | string | Filter by LoS measure ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
period_type | string | Filter by period type |
get_los_measurement Get LoS measurement
Get a single LoS measurement by ID, including value, period, and source metadata.
| Parameter | Type | Description |
|---|---|---|
id * | string | LoS measurement ID |
list_los_proposed_targets List LoS proposed targets
List proposed levels of service: one row per LoS measure and future year (O. Reg. 588/17 s. 6(1)). A community measure carries target_statement; a technical measure carries target_value, in the measure's own unit (not money). Filter by measure or year.
| Parameter | Type | Description |
|---|---|---|
los_measure_id | string | Filter by LoS measure ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
year | integer | Filter by target year |
get_los_proposed_target Get LoS proposed target
Get a single LoS proposed target by ID: measure, year, and target_value (in the measure's own unit, not money) or target_statement.
| Parameter | Type | Description |
|---|---|---|
id * | string | LoS proposed target ID |
list_los_targets_history List LoS targets history
List recorded changes to a LoS measure's target, minimum and stretch goal, newest first. Recording began on 2026-09-20: a change made before that date left no entry, so an empty list does not mean the target never changed. One entry per measure per day; a second change the same day overwrites that day's entry. Values are in the measure's own unit (not money). Filter by measure ID.
| Parameter | Type | Description |
|---|---|---|
los_measure_id | string | Filter by LoS measure ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_los_targets_history_entry Get LoS targets history entry
Get a single LoS targets history entry by ID: the target, minimum and stretch goal a measure was set to on effective_date, in the measure's own unit (not money). History exists from 2026-09-20 onward only.
| Parameter | Type | Description |
|---|---|---|
id * | string | LoS targets history entry ID |
list_system_los_targets List system LoS targets
List technical Level of Service targets for building systems. One base target per system and metric, set once for the organization. Each building is held to a version adjusted by its criticality: a lower-is-better target is multiplied by the tier's modifier, a higher-is-better one keeps its distance from a perfect score multiplied by it (condition 70 becomes 82 at a Critical facility, 58 at a Low one). Derived targets never leave the metric's scale. Metrics: fci (0-100 percent, lower is better), asset_condition_avg (0-100, higher is better, read with the fixed condition bands), asset_past_usef…
| Parameter | Type | Description |
|---|---|---|
active | boolean | Filter by active (true) or paused (false) |
metric | string | Filter by metric |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
system_id | string | Filter by system ID |
get_system_los_target Get system LoS target
Get a single system LoS target by ID. base_target is the organization-wide base for that system and metric, not what any one building is held to (list_system_los_targets explains the criticality adjustment). fci, asset_condition_avg and asset_past_useful_life_pct are 0-100 and risk_score_avg is 0-25; condition is higher-is-better, the others lower-is-better. Not money.
| Parameter | Type | Description |
|---|---|---|
id * | string | System LoS target ID |
list_infrastructure_los_targets List infrastructure LoS targets
List technical Level of Service targets for infrastructure. One base target per feature class and metric, set once for the organization. Each network of that class is held to a version adjusted by the network's criticality (an unrated network counts as medium): a lower-is-better target is multiplied by the tier's modifier, a higher-is-better one keeps its distance from a perfect score multiplied by it (condition 70 becomes 82 at a Critical network, 58 at a Low one). Derived targets never leave the metric's scale. Metrics: fci (0-100 percent, lower is better), asset_condition_avg (0-100, higher…
| Parameter | Type | Description |
|---|---|---|
active | boolean | Filter by active (true) or paused (false) |
feature_class | string | Filter by feature class code (e.g. "sidewalk") |
metric | string | Filter by metric |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_infrastructure_los_target Get infrastructure LoS target
Get a single infrastructure LoS target by ID. base_target is the base for that feature class and metric, not what any one network is held to (list_infrastructure_los_targets explains the criticality adjustment). All three metrics are 0-100; condition is higher-is-better, fci and asset_past_useful_life_pct lower-is-better. Not money.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure LoS target ID |
list_criticality_modifiers List criticality modifiers
List the organization's criticality modifier overrides. Rows are overrides only: a tier with no row uses the built-in default (critical 0.6, high 0.8, medium 1.0, low 1.4), so an empty list means every tier is on its default. A modifier below 1 tightens the targets of facilities in that tier and one above 1 relaxes them; the allowed range is 0.1 to 1.9. Deleting a row restores the default. Filter by tier.
| Parameter | Type | Description |
|---|---|---|
criticality | string | Filter by criticality tier |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_criticality_modifier Get criticality modifier
Get a single criticality modifier override by ID. A tier with no override uses the built-in default (critical 0.6, high 0.8, medium 1.0, low 1.4); a modifier below 1 tightens targets and one above 1 relaxes them.
| Parameter | Type | Description |
|---|---|---|
id * | string | Criticality modifier ID |
list_los_consequences List LoS consequences
List Level of Service consequences: what a missed technical target means, in the organization's own words. Advisory only: the statement is shown on the Status screen when a target is breached, and no notification is sent to notify_roles or to anyone else. When several match a breach the most specific scope wins (a specific system or feature class over a criticality tier over global). severity is a floor; the severity shown scales with the size of the gap and the facility's criticality. A null metric matches any metric. Filter by scope type, severity or active.
| Parameter | Type | Description |
|---|---|---|
active | boolean | Filter by active (true) or paused (false) |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
scope_type | string | Filter by scope type |
severity | string | Filter by severity |
get_los_consequence Get LoS consequence
Get a single LoS consequence by ID. Advisory only: no notification is sent. scope_ref holds a criticality tier, a system ID or a feature class code depending on scope_type, and is null for global.
| Parameter | Type | Description |
|---|---|---|
id * | string | LoS consequence ID |
list_los_status_snapshots List LoS status snapshots
List monthly technical Level of Service readings, newest first. Read-only. One reading per tracked pair (a system in a building, or an infrastructure network) and metric per month, recorded the first time anyone opens the Status screen in that month, so a month nobody opened it is missing rather than zero. actual is the measured value and is null when there was no data; base_target is the organization-wide target and derived_target is what that facility was held to at the time, after its criticality was applied; status is exceeding, meeting, below, failing or no_data. fci and asset_past_useful…
| Parameter | Type | Description |
|---|---|---|
building_id | string | Filter by building ID |
metric | string | Filter by metric |
network_id | string | Filter by infrastructure network ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
period_from | string | Readings for this month or later (YYYY-MM-DD, compared to period_start) |
period_to | string | Readings for this month or earlier (YYYY-MM-DD, compared to period_start) |
system_id | string | Filter by system ID |
get_los_status_snapshot Get LoS status snapshot
Get a single monthly Level of Service reading by ID. actual is null when there was no data; derived_target is what that facility was held to then, after its criticality was applied. fci and asset_past_useful_life_pct are 0-100 percentages (not fractions), asset_condition_avg is 0-100 and risk_score_avg is 0-25. Not money.
| Parameter | Type | Description |
|---|---|---|
id * | string | LoS status snapshot ID |
list_floorplans List floorplans
List floorplans (PDF page-level floors or site-level sheets). Filter by building_id for a building's floors, or by site_id for site-level plans (campus maps, outdoor layouts). Each floorplan belongs to exactly one of building OR site. A multi-page PDF produces multiple floorplans sharing the same pdf_storage_path.
| Parameter | Type | Description |
|---|---|---|
building_id | string | Filter by building ID (building-scoped floorplans) |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
site_id | string | Filter by site ID (site-scoped floorplans only) |
status | string | Filter by detection status |
get_floorplan Get floorplan
Get a single floorplan by ID. Returns floor metadata, PDF path, page number, and detection status.
| Parameter | Type | Description |
|---|---|---|
id * | string | Floorplan ID |
list_floorplan_regions List floorplan regions
List labeled rooms/zones on a floorplan. Each region has a polygon (normalized 0-1 coordinates), an optional location_id linking to the Locations hierarchy, and a "reviewed" flag for AI-detected regions.
| Parameter | Type | Description |
|---|---|---|
floorplan_id | string | Filter by floorplan ID |
location_id | string | Filter regions linked to a specific location |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
reviewed | boolean | Filter by reviewed state |
get_floorplan_region Get floorplan region
Get a single floorplan region by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Floorplan region ID |
list_asset_placements List asset placements
List asset pin placements on floorplans. Each asset has at most one placement globally. Filter by floorplan_id to see all pins on one floor, or by asset_id to find where a specific asset is placed.
| Parameter | Type | Description |
|---|---|---|
asset_id | string | Filter by asset ID |
floorplan_id | string | Filter by floorplan ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
region_id | string | Filter by region ID |
get_asset_placement Get asset placement
Get a single asset placement by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset placement ID |
list_infrastructure_feature_classes List infrastructure feature classes
List infrastructure feature classes (catalog of classes like water_main, sewer_gravity, pavement). Use the `code` field as the natural key when referencing a class from a network. Filter by category or is_builtin.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category |
is_builtin | string | Filter by builtin ("true") vs tenant-defined ("false") |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
get_infrastructure_feature_class Get infrastructure feature class
Get a single infrastructure feature class by its `code` (e.g. "water_main"). Note: addressed by code, not UUID.
| Parameter | Type | Description |
|---|---|---|
code * | string | Asset class code (lowercase, snake_case) |
list_infrastructure_lifecycle_events List infrastructure lifecycle events
List lifecycle strategy events - condition-triggered maintenance/rehabilitation events keyed on a scope (feature_class code, material, optional diameter band), never on individual features. The events sharing one scope form that scope's strategy; features resolve the most specific matching scope like replacement rates. Filter by feature_class, material, event_class, or is_active. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
event_class | string | Filter by event type |
feature_class | string | Filter by feature class code |
is_active | string | Filter by active ("true") vs disabled ("false") events |
material | string | Filter by material (exact string) |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_infrastructure_lifecycle_event Get infrastructure lifecycle event
Get a single lifecycle strategy event by ID. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Lifecycle event ID |
list_infrastructure_networks List infrastructure networks
List infrastructure networks (named groupings of features bound to one feature class). criticality (critical, high, medium, low) sets how strictly a network is held to its feature class's Level of Service targets; null is treated as medium. Filter by feature_class code or text search.
| Parameter | Type | Description |
|---|---|---|
feature_class | string | Filter by feature class code (e.g. "water_main") |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
get_infrastructure_network Get infrastructure network
Get a single infrastructure network by ID. criticality sets how strictly the network is held to its feature class's Level of Service targets; null is treated as medium.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure network ID |
list_infrastructure_assets List infrastructure assets
List infrastructure assets (features - segments or nodes). Geometry is returned as GeoJSON (Point for nodes, LineString for segments) in EPSG:4326. Filter by network, feature_type, site, status, asset type, condition score range, or risk score range. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
asset_type_id | string | Filter by asset type ID |
condition_max | number | Maximum condition score (0-100) |
condition_min | number | Minimum condition score (0-100) |
feature_type | string | Filter by feature type |
include_deleted | string | Include soft-deleted features ("true") - default "false" |
network_id | string | Filter by infrastructure network ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
risk_score_max | number | Maximum risk score |
risk_score_min | number | Minimum risk score |
search | string | Search by name |
site_id | string | Filter by site ID |
status_id | string | Filter by asset status ID |
get_infrastructure_asset Get infrastructure asset
Get a single infrastructure asset (feature) by ID. Returns full geometry as GeoJSON plus all attributes. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure asset (feature) ID |
list_infrastructure_asset_inspections List infrastructure asset inspections
List inspections recorded against infrastructure assets. Filter by feature, inspector, method, condition score range, or inspection date range.
| Parameter | Type | Description |
|---|---|---|
condition_max | number | Maximum condition score (0-100) |
condition_min | number | Minimum condition score (0-100) |
feature_id | string | Filter by infrastructure asset (feature) ID |
inspection_date_from | string | Filter inspections on/after this date (YYYY-MM-DD) |
inspection_date_to | string | Filter inspections on/before this date (YYYY-MM-DD) |
inspector_id | string | Filter by inspector user ID |
method | string | Filter by inspection method (e.g. CCTV, visual) |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_infrastructure_asset_inspection Get infrastructure asset inspection
Get a single infrastructure asset inspection by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure asset inspection ID |
list_asset_condition_assessments List asset condition assessments
List point-in-time condition assessments recorded against assets. Filter by asset, assessor, method, condition score range, or assessment date range. Condition scores are 0-100: 85+ Excellent, 70-84 Good, 55-69 Fair, 40-54 Poor, below 40 Critical. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
assessed_on_from | string | Filter assessments on/after this date (YYYY-MM-DD) |
assessed_on_to | string | Filter assessments on/before this date (YYYY-MM-DD) |
assessor_id | string | Filter by assessor user ID |
asset_id | string | Filter by asset ID |
condition_max | number | Maximum condition score (0-100) |
condition_min | number | Minimum condition score (0-100) |
method | string | Filter by method (visual | detailed | vendor) |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_asset_condition_assessment Get asset condition assessment
Get a single asset condition assessment by ID. Condition scores are 0-100: 85+ Excellent, 70-84 Good, 55-69 Fair, 40-54 Poor, below 40 Critical. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset condition assessment ID |
list_asset_lifecycle_events List asset lifecycle events
List facility lifecycle strategy events - condition-triggered maintenance/rehabilitation events keyed on an asset-type scope (exactly one of asset_type_id or asset_type_group_id), never on individual assets. The events sharing one scope form that scope's strategy; an asset resolves its type's own strategy first, else its type group's. Filter by asset_type_id, asset_type_group_id, event_class, or is_active. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
asset_type_group_id | string | Filter by asset type group ID |
asset_type_id | string | Filter by asset type ID |
event_class | string | Filter by event type |
is_active | string | Filter by active ("true") vs disabled ("false") events |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_asset_lifecycle_event Get asset lifecycle event
Get a single facility lifecycle strategy event by ID. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Lifecycle event ID |
list_asset_betterments List asset betterments
List betterments - capital work that extended a facility asset's life, such as an elevator modernization or a boiler retube. Each records what the work cost (capitalized_amount), how much service life it bought (added_life_years), and when it went into service (occurred_on). A betterment re-bases the asset's depreciation from its own date and never changes the asset's original in-service date. Filter by asset_id, project_id or work_order_id. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
asset_id | string | Filter by asset ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by the project that delivered it |
work_order_id | string | Filter by the work order that delivered it |
get_asset_betterment Get asset betterment
Get a single betterment by ID - one capital improvement on one asset, with its cost, the service life it bought, and its in-service date. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Betterment ID |
list_infrastructure_asset_costs List infrastructure asset costs
List cost rows for infrastructure features. Filter by feature, work order, category, or cost date range. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by cost category |
cost_date_from | string | Costs on/after this date (YYYY-MM-DD) |
cost_date_to | string | Costs on/before this date (YYYY-MM-DD) |
feature_id | string | Filter by infrastructure feature ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
work_order_id | string | Filter by work order ID |
get_infrastructure_asset_cost Get infrastructure asset cost
Get a single infrastructure asset cost by ID. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure asset cost ID |
list_infrastructure_asset_parts List infrastructure asset parts
List parts associated with infrastructure features. Filter by feature or part.
| Parameter | Type | Description |
|---|---|---|
feature_id | string | Filter by infrastructure feature ID |
page | integer | Page number (default: all pages fetched automatically) |
part_id | string | Filter by part ID |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_infrastructure_asset_part Get infrastructure asset part
Get a single infrastructure asset part association by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure asset part ID |
list_infrastructure_asset_documents List infrastructure asset documents
List documents attached to infrastructure features. Filter by feature, category, or name search.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by document category |
feature_id | string | Filter by infrastructure feature ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
search | string | Search by name |
get_infrastructure_asset_document Get infrastructure asset document
Get a single infrastructure asset document by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure asset document ID |
list_infrastructure_asset_comments List infrastructure asset comments
List comments on infrastructure features. Filter by feature.
| Parameter | Type | Description |
|---|---|---|
feature_id | string | Filter by infrastructure feature ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_infrastructure_asset_comment Get infrastructure asset comment
Get a single infrastructure asset comment by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure asset comment ID |
list_infrastructure_zones List infrastructure zones
List operational hydraulic boundaries (pressure zones, DMAs, sewersheds, etc.). Boundary is returned as a GeoJSON Polygon in EPSG:4326. Filter by network or kind.
| Parameter | Type | Description |
|---|---|---|
kind | string | Filter by zone kind |
network_id | string | Filter by infrastructure network ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_infrastructure_zone Get infrastructure zone
Get a single infrastructure zone by ID. Boundary is returned as a GeoJSON Polygon.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure zone ID |
list_project_infrastructure_assets List project infrastructure assets
List links between projects and infrastructure features. Filter by project or feature.
| Parameter | Type | Description |
|---|---|---|
feature_id | string | Filter by infrastructure feature ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
project_id | string | Filter by project ID |
get_project_infrastructure_asset Get project infrastructure asset
Get a single project ↔ infrastructure feature link by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project infrastructure asset link ID |
list_infrastructure_asset_risk_history List infrastructure asset risk history
List the risk + condition history captured for infrastructure features (populated automatically when a feature's risk fields change). Read-only. Filter by feature, source, or capture date range.
| Parameter | Type | Description |
|---|---|---|
captured_at_from | string | Entries on/after this date (YYYY-MM-DD) |
captured_at_to | string | Entries on/before this date (YYYY-MM-DD) |
feature_id | string | Filter by infrastructure feature ID |
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
source | string | Filter by capture source (e.g. manual_update) |
get_infrastructure_asset_risk_history_entry Get infrastructure asset risk history entry
Get a single infrastructure asset risk history entry by ID. Read-only.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure asset risk history entry ID |
list_users List users
List organization members. Returns user IDs, names, emails, and roles. Requires users:read scope. Note: This exposes personal information - only use when the user explicitly requests member data.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: all pages fetched automatically) |
per_page | integer | Items per page (default: 1000, max: 1000). All pages are fetched automatically. |
get_user Get user
Get a specific organization member by their user ID. Returns name, email, and role. Requires users:read scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | User ID (Clerk user ID string) |
create_work_order Create work order
Create a new work order. Requires work_orders:write scope. REQUIRED: title. STRONGLY RECOMMENDED: site_id, building_id and at least one target (asset_id, location_id, system_ids or infrastructure_asset_ids) - the AssetLab app always sets one, and a work order with no target is hard to find and to cost, so ask the user which applies before calling. The API accepts a work order without a target. Also recommended: work_category_id (look up via list_work_categories; omit only if no reasonable match exists). Location hierarchy: always resolve top-down by calling list_sites first, then list_building…
| Parameter | Type | Description |
|---|---|---|
title * | string | Work order title (required) |
asset_id | string | Asset this work order is for - resolve via list_assets. The server mirrors it into asset_ids. |
asset_ids | array | Assets this work order covers - use instead of asset_id when there is more than one. |
assigned_to | string | Assigned user ID (mapped to assignees array) |
assignees | array | Array of assigned user IDs (alternative to assigned_to for multiple assignees) |
building_id | string | Building ID - resolve second via list_buildings filtered by site_id |
description | string | Detailed description |
due_date | string | Due date (ISO 8601) |
estimated_cost | number | Estimated cost |
estimated_time | number | Estimated time in hours |
image_url | string | Image storage path (upload via create_upload_url with bucket "attachments", then set this to the returned path) |
infrastructure_asset_ids | array | Infrastructure features this work order covers - resolve via list_infrastructure_assets. Use this when one job covers several features (a round of hydrant flushing); the whole selection is one work or… |
location_id | string | Location this work order is for - resolve last via list_locations filtered by building_id. The server mirrors it into location_ids, so send this OR location_ids, not a conflicting pair. |
location_ids | array | Locations this work order covers - use instead of location_id when there is more than one. Sending location_id alone replaces this with that single id. |
meter_reading | number | Meter/odometer reading at time of service |
meter_unit | string | Meter unit (km, miles, hours, cycles) |
priority | string | Priority level |
purchase_order_id | string | Purchase order that paid this work order's actual cost - resolve via list_purchase_orders. Counts against the order's remaining balance. |
site_id | string | Site ID - resolve first via list_sites |
start_date | string | Start date (ISO 8601) |
status | string | Status |
system_ids | array | Systems this work order covers - resolve via list_systems. Systems have no singular field; this array is the only way to associate them. |
type | string | Work order type |
work_category_id | string | Work category ID |
update_work_order Update work order
Update an existing work order by ID. Requires work_orders:write scope. When changing location, resolve top-down: list_sites → list_buildings (by site_id) → list_locations (by building_id). Provide all three IDs. To complete a work order, set status COMPLETED and say what was done in completion_notes; completed_at is stamped automatically.
| Parameter | Type | Description |
|---|---|---|
id * | string | Work order ID |
asset_id | string | Asset this work order is for - resolve via list_assets. The server mirrors it into asset_ids. |
asset_ids | array | Assets this work order covers - use instead of asset_id when there is more than one. |
assigned_to | string | Assigned user ID (mapped to assignees array) |
assignees | array | Array of assigned user IDs (alternative to assigned_to for multiple assignees) |
building_id | string | Building ID - resolve second via list_buildings filtered by site_id |
completion_notes | string | What was done, recorded on the work order when it is completed |
description | string | Detailed description |
due_date | string | Due date (ISO 8601) |
estimated_cost | number | Estimated cost |
estimated_time | number | Estimated time in hours |
image_url | string | Image storage path (upload via create_upload_url with bucket "attachments", then set this to the returned path) |
infrastructure_asset_ids | array | Infrastructure features this work order covers - resolve via list_infrastructure_assets. Use this when one job covers several features (a round of hydrant flushing); the whole selection is one work or… |
location_id | string | Location this work order is for - resolve last via list_locations filtered by building_id. The server mirrors it into location_ids, so send this OR location_ids, not a conflicting pair. |
location_ids | array | Locations this work order covers - use instead of location_id when there is more than one. Sending location_id alone replaces this with that single id. |
meter_reading | number | Meter/odometer reading at time of service |
meter_unit | string | Meter unit (km, miles, hours, cycles) |
priority | string | Priority level |
purchase_order_id | Purchase order that paid this work order's actual cost - resolve via list_purchase_orders. Counts against the order's remaining balance; null clears it. | |
site_id | string | Site ID - resolve first via list_sites |
start_date | string | Start date (ISO 8601) |
status | string | Status |
system_ids | array | Systems this work order covers - resolve via list_systems. Systems have no singular field; this array is the only way to associate them. |
title | string | Work order title |
type | string | Work order type |
work_category_id | string | Work category ID |
delete_work_order Delete work order
Delete a work order by ID. Requires work_orders:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Work order ID |
create_asset Create asset
Create a new asset. Requires assets:write scope. IMPORTANT - Location hierarchy: always resolve top-down by calling list_sites first, then list_buildings filtered by site_id, then list_locations filtered by building_id. Provide all three IDs (site_id, building_id, location_id) explicitly. System hierarchy: similarly resolve via list_system_classes → list_system_groups → list_systems.
| Parameter | Type | Description |
|---|---|---|
name * | string | Asset name (required) |
archived_reason | string | Why the asset is archived. Kept only while it is archived. |
asset_id | string | Custom asset identifier (unique per tenant) |
asset_type_id | string | Asset type ID (from asset_types) |
building_id | string | Building ID - resolve second via list_buildings filtered by site_id |
condition_score | number | Condition score (0-100) |
consequence_of_failure_score | integer | Consequence of failure score, 1-5. Setting it makes it a manual value that a system change no longer replaces; send null to return it to the default from its system. |
cost_per_sq_ft | number | Cost per square foot |
current_meter_reading | number | Current meter/odometer reading |
description | string | Description |
environmental_impact | string | Environmental impact level (LOW, MEDIUM, HIGH, CRITICAL) |
expected_lifetime_years | number | Expected lifetime in years |
image_url | string | Image URL |
last_maintenance_date | string | Last maintenance date (ISO 8601) |
likelihood_of_failure_score | integer | Likelihood of failure score, 1-5. Derived from condition_score unless set: setting it makes it a manual value that condition changes no longer replace; send null to return it to derivation. |
location_id | string | Location ID - resolve last via list_locations filtered by building_id |
manufacturer_id | string | Manufacturer ID (from manufacturers) |
meter_unit | string | Meter unit (km, miles, hours, cycles) |
model | string | Model name/number |
purchase_cost | number | Purchase cost |
purchase_date | string | Purchase date (ISO 8601) |
quantity | number | Quantity |
regulatory_impact | string | Regulatory impact level (LOW, MEDIUM, HIGH, CRITICAL) |
replacement_value | number | Cost to replace this asset today, in current dollars. Distinct from purchase_cost, which is what was paid and is the depreciation basis. |
replacement_value_reviewed_on | string | Date replacement_value was last confirmed (ISO 8601) |
reputation_impact | string | Reputation impact level (LOW, MEDIUM, HIGH, CRITICAL) |
risk_factor | string | Risk factor (CRITICAL, HIGH, MEDIUM, LOW) |
safety_impact | string | Safety impact level (LOW, MEDIUM, HIGH, CRITICAL) |
salvage_value | number | Salvage value |
salvage_value_percentage | number | Salvage value percentage (0-100) |
serial_number | string | Serial number |
service_impact | string | Service impact level (LOW, MEDIUM, HIGH, CRITICAL) |
site_id | string | Site ID - resolve first via list_sites |
status_id | string | Status ID from list_asset_statuses. The status with system_key archived archives the asset; any other status restores it. |
system_class_id | string | System class ID - resolve first via list_system_classes |
system_group_id | string | System group ID - resolve second via list_system_groups filtered by system_class_id |
system_id | string | System ID - resolve last via list_systems filtered by system_group_id |
unit_of_measure | string | Unit of measure |
unit_replacement_value | number | Unit replacement value |
update_asset Update asset
Update an existing asset by ID. Requires assets:write scope. When changing location, resolve top-down: list_sites → list_buildings (by site_id) → list_locations (by building_id). Provide all three IDs. Same for systems: list_system_classes → list_system_groups → list_systems.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset ID |
archived_reason | string | Why the asset is archived. Kept only while it is archived. |
asset_id | string | Custom asset identifier (unique per tenant) |
asset_type_id | string | Asset type ID (from asset_types) |
building_id | string | Building ID - resolve second via list_buildings filtered by site_id |
condition_score | number | Condition score (0-100) |
consequence_of_failure_score | integer | Consequence of failure score, 1-5. Setting it makes it a manual value that a system change no longer replaces; send null to return it to the default from its system. |
cost_per_sq_ft | number | Cost per square foot |
current_meter_reading | number | Current meter/odometer reading |
description | string | Description |
environmental_impact | string | Environmental impact level (LOW, MEDIUM, HIGH, CRITICAL) |
expected_lifetime_years | number | Expected lifetime in years |
image_url | string | Image URL |
last_maintenance_date | string | Last maintenance date (ISO 8601) |
likelihood_of_failure_score | integer | Likelihood of failure score, 1-5. Derived from condition_score unless set: setting it makes it a manual value that condition changes no longer replace; send null to return it to derivation. |
location_id | string | Location ID - resolve last via list_locations filtered by building_id |
manufacturer_id | string | Manufacturer ID (from manufacturers) |
meter_unit | string | Meter unit (km, miles, hours, cycles) |
model | string | Model name/number |
name | string | Asset name |
purchase_cost | number | Purchase cost |
purchase_date | string | Purchase date (ISO 8601) |
quantity | number | Quantity |
regulatory_impact | string | Regulatory impact level (LOW, MEDIUM, HIGH, CRITICAL) |
replacement_value | number | Cost to replace this asset today, in current dollars. Distinct from purchase_cost, which is what was paid and is the depreciation basis. |
replacement_value_reviewed_on | string | Date replacement_value was last confirmed (ISO 8601) |
reputation_impact | string | Reputation impact level (LOW, MEDIUM, HIGH, CRITICAL) |
risk_factor | string | Risk factor (CRITICAL, HIGH, MEDIUM, LOW) |
safety_impact | string | Safety impact level (LOW, MEDIUM, HIGH, CRITICAL) |
salvage_value | number | Salvage value |
salvage_value_percentage | number | Salvage value percentage (0-100) |
serial_number | string | Serial number |
service_impact | string | Service impact level (LOW, MEDIUM, HIGH, CRITICAL) |
site_id | string | Site ID - resolve first via list_sites |
status_id | string | Status ID from list_asset_statuses. The status with system_key archived archives the asset; any other status restores it. |
system_class_id | string | System class ID - resolve first via list_system_classes |
system_group_id | string | System group ID - resolve second via list_system_groups filtered by system_class_id |
system_id | string | System ID - resolve last via list_systems filtered by system_group_id |
unit_of_measure | string | Unit of measure |
unit_replacement_value | number | Unit replacement value |
delete_asset Delete asset
Permanently delete an asset by ID, cascading to its history. Requires assets:write scope. For an asset taken out of service, archive it instead with update_asset (status_id = the Archived status), which keeps its work orders, costs and inspections.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset ID |
create_work_request Create work request
Create a new work request. Requires work_requests:write scope. IMPORTANT - Location hierarchy: always resolve top-down by calling list_sites first, then list_buildings filtered by site_id, then list_locations filtered by building_id. Provide all three IDs (site_id, building_id, location_id) explicitly.
| Parameter | Type | Description |
|---|---|---|
title * | string | Work request title (required) |
asset_id | string | Asset ID |
building_id | string | Building ID - resolve second via list_buildings filtered by site_id |
description | string | Description |
location_id | string | Location ID - resolve last via list_locations filtered by building_id |
priority | string | Priority level |
site_id | string | Site ID - resolve first via list_sites |
status | string | Omit it: new requests always start as PENDING_REVIEW. Approve or reject with update_work_request. |
system_id | string | System ID |
work_category_id | string | Work category ID |
update_work_request Update work request
Update an existing work request by ID. Requires work_requests:write scope. Setting status to APPROVED creates a new work order from the request (its title, location and asset carry over) - confirm with the user first, and look the work order up afterwards with list_work_orders; REJECTED creates nothing. When changing location, resolve top-down: list_sites → list_buildings (by site_id) → list_locations (by building_id). Provide all three IDs.
| Parameter | Type | Description |
|---|---|---|
id * | string | Work request ID |
asset_id | string | Asset ID |
building_id | string | Building ID - resolve second via list_buildings filtered by site_id |
description | string | Description |
location_id | string | Location ID - resolve last via list_locations filtered by building_id |
priority | string | Priority level |
site_id | string | Site ID - resolve first via list_sites |
status | string | Status. New requests start as PENDING_REVIEW. |
system_id | string | System ID |
title | string | Work request title |
work_category_id | string | Work category ID |
delete_work_request Delete work request
Delete a work request by ID. Requires work_requests:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Work request ID |
create_vendor Create vendor
Create a new vendor. Requires vendors:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Vendor name (required) |
address | string | Street address |
categories | array | Vendor categories (e.g. ["HVAC", "Plumbing"]) |
city | string | City |
contact_email | string | Contact email |
contact_name | string | Contact person name |
contact_phone | string | Contact phone |
country | string | Country |
description | string | Description |
state | string | State/province |
status | string | Vendor status |
website | string | Website URL (protocol and www prefix are stripped automatically) |
update_vendor Update vendor
Update an existing vendor by ID. Requires vendors:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Vendor ID |
address | string | Street address |
categories | array | Vendor categories (e.g. ["HVAC", "Plumbing"]) |
city | string | City |
contact_email | string | Contact email |
contact_name | string | Contact person name |
contact_phone | string | Contact phone |
country | string | Country |
description | string | Description |
name | string | Vendor name |
state | string | State/province |
status | string | Vendor status |
website | string | Website URL (protocol and www prefix are stripped automatically) |
delete_vendor Delete vendor
Delete a vendor by ID. Requires vendors:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Vendor ID |
create_site Create site
Create a new site. Requires sites:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Site name (required) |
additional_cost_per_sqft | number | Additional cost per square foot |
address | string | Street address |
city | string | City |
contact_email | string | Contact email |
contact_name | string | Primary contact name |
contact_phone | string | Contact phone |
cost_per_sqft | number | Base cost per square foot |
country | string | Country |
description | string | Description |
insurance_policy_number | string | Insurance policy number |
insurance_provider | string | Insurance provider name |
lease_details | string | Free-text lease details / notes |
lease_end_date | string | Lease end date (YYYY-MM-DD) |
lease_start_date | string | Lease start date (YYYY-MM-DD) |
operational_cost_per_sqft | number | Operational cost per square foot |
owner_landlord | string | Property owner or landlord |
ownership_type | string | Ownership type |
postal_code | string | Postal/zip code |
property_manager_company | string | Property management company name |
property_manager_contact_email | string | Property management contact email |
property_manager_contact_name | string | Property management contact name |
property_manager_contact_phone | string | Property management contact phone |
province | string | Province/state |
renewal_option | string | Lease renewal option details |
square_footage | number | Square footage |
year_built | integer | Year built |
update_site Update site
Update an existing site by ID. Requires sites:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Site ID |
additional_cost_per_sqft | number | Additional cost per square foot |
address | string | Street address |
city | string | City |
contact_email | string | Contact email |
contact_name | string | Primary contact name |
contact_phone | string | Contact phone |
cost_per_sqft | number | Base cost per square foot |
country | string | Country |
description | string | Description |
insurance_policy_number | string | Insurance policy number |
insurance_provider | string | Insurance provider name |
lease_details | string | Free-text lease details / notes |
lease_end_date | string | Lease end date (YYYY-MM-DD) |
lease_start_date | string | Lease start date (YYYY-MM-DD) |
name | string | Site name |
operational_cost_per_sqft | number | Operational cost per square foot |
owner_landlord | string | Property owner or landlord |
ownership_type | string | Ownership type |
postal_code | string | Postal/zip code |
property_manager_company | string | Property management company name |
property_manager_contact_email | string | Property management contact email |
property_manager_contact_name | string | Property management contact name |
property_manager_contact_phone | string | Property management contact phone |
province | string | Province/state |
renewal_option | string | Lease renewal option details |
square_footage | number | Square footage |
year_built | integer | Year built |
delete_site Delete site
Delete a site by ID. Requires sites:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Site ID |
create_building Create building
Create a new building. Requires buildings:write scope. latitude and longitude place the building on the map and must be sent together - one without the other is rejected.
| Parameter | Type | Description |
|---|---|---|
name * | string | Building name (required) |
site_id * | string | Site ID (required) |
area_sqft | number | Area in square feet |
building_type_id | string | Building type ID (from building_types) |
floors | integer | Number of floors |
latitude | number | WGS 84 latitude of the building, in decimal degrees. Must be sent together with longitude. |
longitude | number | WGS 84 longitude of the building, in decimal degrees. Must be sent together with latitude. |
type | string | Building type label |
year_built | integer | Year the building was constructed |
update_building Update building
Update an existing building by ID. Requires buildings:write scope. latitude and longitude must be sent together; send both as null to clear the building position.
| Parameter | Type | Description |
|---|---|---|
id * | string | Building ID |
area_sqft | number | Area in square feet |
building_type_id | string | Building type ID (from building_types) |
floors | integer | Number of floors |
latitude | WGS 84 latitude of the building, in decimal degrees. Must be sent together with longitude. | |
longitude | WGS 84 longitude of the building, in decimal degrees. Must be sent together with latitude. | |
name | string | Building name |
site_id | string | Site ID |
type | string | Building type label |
year_built | integer | Year the building was constructed |
delete_building Delete building
Delete a building by ID. Requires buildings:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Building ID |
create_location Create location
Create a new location within a building. Requires locations:write scope.
| Parameter | Type | Description |
|---|---|---|
building_id * | string | Building ID (required) |
name * | string | Location name (required) |
area | number | Area (sq ft or sq m) |
floor | string | Floor identifier |
location_type_id | string | Location type ID (from location_types) |
type | string | Location type label |
update_location Update location
Update an existing location by ID. Requires locations:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Location ID |
area | number | Area (sq ft or sq m) |
building_id | string | Building ID |
floor | string | Floor identifier |
location_type_id | string | Location type ID (from location_types) |
name | string | Location name |
type | string | Location type label |
delete_location Delete location
Delete a location by ID. Requires locations:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Location ID |
create_pm_schedule Create PM schedule
Create a new preventive maintenance schedule. Requires pm_schedules:write scope. IMPORTANT - Location hierarchy: always resolve top-down by calling list_sites first, then list_buildings filtered by site_id, then list_locations filtered by building_id. Provide all three IDs explicitly.
| Parameter | Type | Description |
|---|---|---|
title * | string | PM schedule title (required) |
asset_id | string | Asset ID |
asset_ids | array | Assets this schedule covers - use instead of asset_id when there is more than one. |
auto_generate_wo | boolean | Auto-generate work orders |
building_id | string | Building ID - resolve second via list_buildings filtered by site_id |
custom_interval_weeks | integer | Custom interval in weeks (when frequency is CUSTOM) |
description | string | Description |
estimated_cost | number | Estimated cost |
estimated_hours | number | Estimated hours |
floating | boolean | Floating schedule (due date based on completion) |
form_template_id | string | Form template ID to attach to every work order this generates - resolve via list_form_templates. Use a PUBLISHED template: generation resolves the current published version of the form, so a draft att… |
frequency | string | Frequency |
grace_period_days | integer | Grace period in days |
infrastructure_asset_ids | array | Infrastructure features this schedule covers - resolve via list_infrastructure_assets. One schedule over several features generates one work order per cycle covering all of them. Mutually exclusive wi… |
lead_time_days | integer | Lead time in days |
location_id | string | Location ID - resolve last via list_locations filtered by building_id |
location_ids | array | Locations this schedule covers - use instead of location_id when there is more than one. Sending location_id alone replaces this with that single id. |
meter_based | boolean | Whether this PM triggers at meter intervals (e.g. every 5000 km) |
meter_interval | number | Meter interval - trigger every N units |
meter_unit | string | Meter unit (km, miles, hours, cycles) |
next_due | string | Next due date (ISO 8601) |
safety_requirements | string | Safety requirements |
schedule_type | string | Schedule type |
site_id | string | Site ID - resolve first via list_sites |
start_date | string | Start date (ISO 8601) |
status | string | Schedule status |
system_ids | array | Systems this schedule covers. Systems have no singular field; this array is the only way to associate them. |
tasks | array | Checklist of tasks for this PM schedule |
work_category | string | Work category label |
update_pm_schedule Update PM schedule
Update an existing PM schedule by ID. Requires pm_schedules:write scope. When changing location, resolve top-down: list_sites → list_buildings (by site_id) → list_locations (by building_id). Provide all three IDs.
| Parameter | Type | Description |
|---|---|---|
id * | string | PM schedule ID |
asset_id | string | Asset ID |
asset_ids | array | Assets this schedule covers - use instead of asset_id when there is more than one. |
auto_generate_wo | boolean | Auto-generate work orders |
building_id | string | Building ID - resolve second via list_buildings filtered by site_id |
custom_interval_weeks | integer | Custom interval in weeks (when frequency is CUSTOM) |
description | string | Description |
estimated_cost | number | Estimated cost |
estimated_hours | number | Estimated hours |
floating | boolean | Floating schedule (due date based on completion) |
form_template_id | string | Form template ID to attach to every work order this generates - resolve via list_form_templates. Use a PUBLISHED template: generation resolves the current published version of the form, so a draft att… |
frequency | string | Frequency |
grace_period_days | integer | Grace period in days |
infrastructure_asset_ids | array | Infrastructure features this schedule covers - resolve via list_infrastructure_assets. One schedule over several features generates one work order per cycle covering all of them. Mutually exclusive wi… |
lead_time_days | integer | Lead time in days |
location_id | string | Location ID - resolve last via list_locations filtered by building_id |
location_ids | array | Locations this schedule covers - use instead of location_id when there is more than one. Sending location_id alone replaces this with that single id. |
meter_based | boolean | Whether this PM triggers at meter intervals |
meter_interval | number | Meter interval - trigger every N units |
meter_unit | string | Meter unit (km, miles, hours, cycles) |
next_due | string | Next due date (ISO 8601) |
safety_requirements | string | Safety requirements |
schedule_type | string | Schedule type |
site_id | string | Site ID - resolve first via list_sites |
start_date | string | Start date (ISO 8601) |
status | string | Schedule status |
system_ids | array | Systems this schedule covers. Systems have no singular field; this array is the only way to associate them. |
tasks | array | Checklist of tasks for this PM schedule |
title | string | PM schedule title |
work_category | string | Work category label |
delete_pm_schedule Delete PM schedule
Delete a PM schedule by ID. Requires pm_schedules:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | PM schedule ID |
create_pm_template Create PM template
Create a new PM template. Templates are reusable PM definitions (not linked to a site/asset) that can seed new PM schedules. Requires pm_templates:write scope.
| Parameter | Type | Description |
|---|---|---|
title * | string | PM template title (required, unique per tenant) |
asset_ids | array | Default asset IDs to seed on derived schedules |
custom_interval_weeks | integer | Custom interval in weeks (when frequency is CUSTOM) |
description | string | Description |
documents | array | Document references |
estimated_cost | number | Estimated cost |
estimated_hours | number | Estimated hours |
form_template_id | string | Form template ID to attach to every work order this generates - resolve via list_form_templates. Use a PUBLISHED template: generation resolves the current published version of the form, so a draft att… |
frequency | string | Suggested maintenance frequency |
location_ids | array | Default location IDs to seed on derived schedules |
resources | array | Resource references (parts, tools, materials, equipment) |
safety_requirements | string | Safety requirements |
tasks | array | Checklist of tasks baked into this template |
work_category | string | Work category label (free text) |
work_category_id | string | Work category ID - resolve via list_work_categories |
update_pm_template Update PM template
Update an existing PM template by ID. Requires pm_templates:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | PM template ID |
asset_ids | array | Default asset IDs |
custom_interval_weeks | integer | Custom interval in weeks (when frequency is CUSTOM) |
description | string | Description |
documents | array | Document references |
estimated_cost | number | Estimated cost |
estimated_hours | number | Estimated hours |
form_template_id | string | Form template ID to attach to every work order this generates - resolve via list_form_templates. Use a PUBLISHED template: generation resolves the current published version of the form, so a draft att… |
frequency | string | Suggested maintenance frequency |
location_ids | array | Default location IDs |
resources | array | Resource references (parts, tools, materials, equipment) |
safety_requirements | string | Safety requirements |
tasks | array | Checklist of tasks baked into this template |
title | string | PM template title |
work_category | string | Work category label (free text) |
work_category_id | string | Work category ID |
delete_pm_template Delete PM template
Delete a PM template by ID. Requires pm_templates:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | PM template ID |
create_form_template Create form template
Create a form template - a reusable inspection, checklist, compliance, or survey definition. Step 1 of building a form: create it as a draft, then add questions with create_form_template_item (or bulk_create on form-template-items), then publish with update_form_template status=published (publishing is rejected if any question is malformed). Requires form_templates:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Form template name (required) |
description | string | Description |
module | string | Workspace the form is offered in: facilities, infrastructure (inspections of features), or shared (both). Defaults to shared. |
status | string | Publication status - leave as draft (default) until all questions are added. |
work_category_id | string | Work category ID - the same tenant-configured categories used by work orders (e.g. Electrical, Plumbing, HVAC). Look them up with list_work_categories and pick the closest match; omit if none fits. |
update_form_template Update form template
Update an existing form template by ID. Requires form_templates:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Form template ID |
description | string | Description |
module | string | Move the form to a workspace: facilities, infrastructure, or shared (both). |
name | string | Form template name |
status | string | Publication status (draft, published, or archived) |
work_category_id | string | Work category ID (look up with list_work_categories) |
delete_form_template Delete form template
Delete a form template by ID. Requires form_templates:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Form template ID |
create_form_template_item Create form template item
Add one question (item) to a form template. Build a form by calling this once per question in order, or use bulk_create on form-template-items. Requires form_template_items:write scope.
| Parameter | Type | Description |
|---|---|---|
item_type * | string | Pick by the answer you want: single_select = exactly one choice (Pass/Fail, Yes/No, Yes/No/N-A, or custom - supply options); multi_select = pick several (supply options); number = a numeric reading/co… |
label * | string | Question text / prompt shown to the user |
sort_order * | integer | Display order within the template (0-based; questions render in this order) |
template_id * | string | Form template ID - resolve via list_form_templates |
config | object | Per-type settings. number: { min, max, unit, integer, decimals }. text: { multiline, maxLength, placeholder }. multi_select: { minSelections, maxSelections }. photo: { minPhotos, maxPhotos }. Any sing… |
help_text | string | Optional hint shown under the label |
item_key | string | Optional stable key, unique within the template. OMIT IT and the server derives one from the label (recommended). Only set it when a later item’s visible_when must reference this one - then use a sh… |
options | array | REQUIRED for single_select/multi_select: at least 2 choices as { value, label } with unique values. value is a machine slug (e.g. "fail"), label is shown to the user (e.g. "Fail"). Omit for other type… |
required | boolean | Whether an answer is required to complete the form (default false) |
visible_when | Optional conditional visibility { itemKey, op, value }. itemKey must reference an EARLIER item’s key (set that item’s item_key explicitly). Operators by referenced type - single_select/checkbox: e… |
update_form_template_item Update form template item
Update an existing form template item by ID. template_id and item_key are immutable and cannot be changed. Requires form_template_items:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Form template item ID |
config | object | Per-type configuration (e.g. { min, max, unit, multiline }) |
help_text | string | Help text shown under the label |
item_type | string | Item type (section, checkbox, single_select, multi_select, number, text, photo, team_members, signature) |
label | string | Question label / prompt |
options | array | Choices for single_select / multi_select items |
required | boolean | Whether an answer is required |
sort_order | integer | Display order within the template |
visible_when | Conditional-visibility rule referencing another item |
delete_form_template_item Delete form template item
Delete a form template item by ID. Requires form_template_items:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Form template item ID |
create_form_response Create form response
Attach a published form to one record so it can be filled in - the direct way to put an inspection or checklist on an existing work order. The form's questions are snapshotted at attach time, so later edits to the template never change a form already in progress. To put a form on every work order a PM schedule generates, set form_template_id on the schedule instead of calling this per work order. Answering and completing the form happen in the AssetLab app, not through this API. Requires form_responses:write scope.
| Parameter | Type | Description |
|---|---|---|
subject_id * | string | ID of the record - resolve via the matching list tool (list_work_orders, list_pm_schedules, list_infrastructure_assets, list_compliance_records, list_sites) |
subject_type * | string | What kind of record the form is being attached to |
template_id * | string | Published form template ID - resolve via list_form_templates. A draft or archived template is rejected; publish it first with update_form_template status="published". |
delete_form_response Delete form response
Remove a form from the record it is attached to, along with any answers already given. Use this before attaching a different form, since a record holds at most one form. Requires form_responses:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Form response ID - resolve via list_form_responses filtered by subject_id |
create_project Create project
Create a new project. Requires projects:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Project name (required) |
start_date * | string | Start date (ISO 8601, required) |
budget | number | Initial budget, stored as a lump-sum budget item. A project budget is the sum of its budget items: change it later with create/update_project_budget_item. |
budget_status | string | Budget status |
current_phase | string | Current phase |
description | string | Description |
end_date | string | End date (ISO 8601) |
health_status | string | Health status |
image_url | string | Image URL |
progress_percentage | number | Progress percentage (0-100) |
progress_status | string | Progress status |
project_code | string | Project code |
project_manager | string | Project manager name |
project_type | string | Project type |
status | string | Status label shown in the app's Status column and filter: planning, in-progress, on-hold, completed, cancelled, or your organization's own value. Defaults to planning. Whether the project is active or… |
update_project Update project
Update an existing project by ID. Requires projects:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project ID |
budget_status | string | Budget status |
current_phase | string | Current phase |
description | string | Description |
end_date | string | End date (ISO 8601) |
health_status | string | Health status |
image_url | string | Image URL |
name | string | Project name |
progress_percentage | number | Progress percentage (0-100) |
progress_status | string | Progress status |
project_code | string | Project code |
project_manager | string | Project manager name |
project_type | string | Project type |
start_date | string | Start date (ISO 8601) |
status | string | Status label shown in the app's Status column and filter: planning, in-progress, on-hold, completed, cancelled, or your organization's own value. Defaults to planning. Whether the project is active or… |
delete_project Delete project
Delete a project by ID. Requires projects:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project ID |
create_contract Create contract
Create a new contract. Requires contracts:write scope.
| Parameter | Type | Description |
|---|---|---|
category * | string | Contract category (required) |
end_date * | string | End date (ISO 8601, required) |
start_date * | string | Start date (ISO 8601, required) |
title * | string | Contract title (required) |
annual_cost | number | Annual cost |
company_id | string | Vendor ID |
description | string | Description |
extendable | boolean | Whether contract is extendable |
purchase_order | string | Purchase order reference |
quality_score | number | Quality score (1-10) |
update_contract Update contract
Update an existing contract by ID. Requires contracts:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Contract ID |
annual_cost | number | Annual cost |
category | string | Contract category |
company_id | string | Vendor ID |
description | string | Description |
end_date | string | End date (ISO 8601) |
extendable | boolean | Whether contract is extendable |
purchase_order | string | Purchase order reference |
quality_score | number | Quality score (1-10) |
start_date | string | Start date (ISO 8601) |
title | string | Contract title |
delete_contract Delete contract
Delete a contract by ID. Requires contracts:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Contract ID |
create_invoice Create invoice
Create a new invoice. Requires invoices:write scope.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Invoice amount (required) |
invoice_date * | string | Invoice date (ISO 8601, required) |
invoice_number * | string | Invoice number (required) |
category_id | string | Cost category ID |
description | string | Description |
due_date | string | Due date (ISO 8601) |
notes | string | Notes |
paid_date | string | Paid date (ISO 8601) |
project_id | string | Project ID |
purchase_order_id | string | Purchase order ID |
status | string | Invoice status |
tax_amount | number | Tax amount |
vendor_id | string | Vendor ID |
work_order_id | string | Work order ID |
update_invoice Update invoice
Update an existing invoice by ID. Requires invoices:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Invoice ID |
amount | number | Invoice amount |
category_id | string | Cost category ID |
description | string | Description |
due_date | string | Due date (ISO 8601) |
invoice_date | string | Invoice date (ISO 8601) |
invoice_number | string | Invoice number |
notes | string | Notes |
paid_date | string | Paid date (ISO 8601) |
project_id | string | Project ID |
purchase_order_id | string | Purchase order ID |
status | string | Invoice status |
tax_amount | number | Tax amount |
vendor_id | string | Vendor ID |
work_order_id | string | Work order ID |
delete_invoice Delete invoice
Delete an invoice by ID. Requires invoices:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Invoice ID |
create_purchase_order Create purchase order
Create a new purchase order. Requires purchase_orders:write scope.
| Parameter | Type | Description |
|---|---|---|
amount * | number | PO amount (required) |
po_number * | string | PO number (required) |
category_id | string | Cost category ID |
description | string | Description |
expected_date | string | Expected delivery date (ISO 8601) |
issued_date | string | Issued date (ISO 8601) |
notes | string | Notes |
project_id | string | Project ID |
status | string | PO status |
vendor_id | string | Vendor ID |
work_order_id | string | Work order ID |
update_purchase_order Update purchase order
Update an existing purchase order by ID. Requires purchase_orders:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Purchase order ID |
amount | number | PO amount |
category_id | string | Cost category ID |
description | string | Description |
expected_date | string | Expected delivery date (ISO 8601) |
issued_date | string | Issued date (ISO 8601) |
notes | string | Notes |
po_number | string | PO number |
project_id | string | Project ID |
status | string | PO status |
vendor_id | string | Vendor ID |
work_order_id | string | Work order ID |
create_purchase_order_line Create purchase order line
Add a line item to a purchase order. Requires purchase_orders:write scope. The PO's amount becomes the sum of its lines. A line naming a part_id is counted in whole units, and its quantity_received is added to that part's stock. Required: purchase_order_id, description, quantity.
| Parameter | Type | Description |
|---|---|---|
description * | string | What is being ordered (required) |
purchase_order_id * | string | Purchase order ID (required) - resolve via list_purchase_orders |
quantity * | number | Quantity ordered (required) |
line_number | integer | Position on the order. Omit it to add the line after the last one. |
part_id | string | Part from inventory - resolve via list_parts |
quantity_received | number | Quantity received so far, 0 to quantity |
unit_cost | number | Price per unit, in the organization currency |
update_purchase_order_line Update purchase order line
Update a purchase order line item. Requires purchase_orders:write scope. To receive goods, set quantity_received; for a line with a part, the change is added to (or taken from) that part's stock. A line with stock received cannot change its part.
| Parameter | Type | Description |
|---|---|---|
id * | string | Purchase order line ID |
description | string | What is being ordered |
line_number | integer | Position on the order |
part_id | string | Part from inventory |
quantity | number | Quantity ordered |
quantity_received | number | Quantity received so far, 0 to quantity |
unit_cost | number | Price per unit, in the organization currency |
delete_purchase_order_line Delete purchase order line
Delete a purchase order line item. Requires purchase_orders:write scope. A line with stock received is refused until its quantity_received is set back to 0.
| Parameter | Type | Description |
|---|---|---|
id * | string | Purchase order line ID |
create_purchase_order_link Create purchase order link
Link a purchase order to a work order, PM schedule or project for reference. Requires purchase_orders:write scope. Required: purchase_order_id and exactly one of work_order_id, pm_schedule_id, project_id. A link does not add to committed cost; to charge the cost, set project_id or work_order_id on the purchase order itself.
| Parameter | Type | Description |
|---|---|---|
purchase_order_id * | string | Purchase order ID (required) |
pm_schedule_id | string | PM schedule to link - resolve via list_pm_schedules |
project_id | string | Project to link - resolve via list_projects |
work_order_id | string | Work order to link - resolve via list_work_orders |
delete_purchase_order_link Delete purchase order link
Remove a purchase order link. Requires purchase_orders:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Purchase order link ID |
delete_purchase_order Delete purchase order
Delete a purchase order by ID. Requires purchase_orders:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Purchase order ID |
create_expense Create expense
Create a new expense. Requires expenses:write scope.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Expense amount (required) |
description * | string | Expense description (required) |
expense_date * | string | Expense date (ISO 8601, required) |
project_id * | string | Project ID (required) |
category_id | string | Cost category ID |
notes | string | Notes |
receipt_url | string | Receipt URL |
work_order_id | string | Work order ID |
update_expense Update expense
Update an existing expense by ID. Requires expenses:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Expense ID |
amount | number | Expense amount |
category_id | string | Cost category ID |
description | string | Expense description |
expense_date | string | Expense date (ISO 8601) |
notes | string | Notes |
project_id | string | Project ID |
receipt_url | string | Receipt URL |
work_order_id | string | Work order ID |
delete_expense Delete expense
Delete an expense by ID. Requires expenses:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Expense ID |
create_change_order Create change order
Create a new change order. Requires change_orders:write scope.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Amount (required, negative for credits) |
co_number * | string | Change order number (required) |
description * | string | Description (required) |
project_id * | string | Project ID (required) |
category_id | string | Cost category ID |
notes | string | Additional notes |
reason | string | Reason for the change order |
status | string | Status |
vendor_id | string | Vendor ID |
update_change_order Update change order
Update an existing change order by ID. Requires change_orders:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Change order ID |
amount | number | Amount (negative for credits) |
approved_at | string | Approval date (ISO 8601) |
approved_by | string | Approved by (user ID) |
category_id | string | Cost category ID |
co_number | string | Change order number |
description | string | Description |
notes | string | Notes |
project_id | string | Project ID |
reason | string | Reason |
status | string | Status |
vendor_id | string | Vendor ID |
delete_change_order Delete change order
Delete a change order by ID. Requires change_orders:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Change order ID |
create_project_document_folder_template Create project document folder template
Create a project document folder template. Requires project_document_folder_templates:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Template name (required) |
description | string | Template description |
is_default | boolean | Whether this is the default template |
structure | array | Folder hierarchy as JSON array |
update_project_document_folder_template Update project document folder template
Update a project document folder template by ID. Requires project_document_folder_templates:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Template ID |
description | string | Template description |
is_default | boolean | Whether this is the default template |
name | string | Template name |
structure | array | Folder hierarchy as JSON array |
delete_project_document_folder_template Delete project document folder template
Delete a project document folder template by ID. Requires project_document_folder_templates:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Template ID |
create_budget Create budget
Set an annual funding budget, as the dashboard Budget tab does. Requires budgets:write scope. The tab holds one figure per year, per funding source ('O&M' or 'Capital'), per workspace (module: facilities, infrastructure, or omitted for organization-wide). Send one row per year and funding source - do not split a year across sites or buildings; the tab does not read site_id or building_id and a second row for the same slot is refused with 409. Required: year, funding_source, budgeted_amount.
| Parameter | Type | Description |
|---|---|---|
funding_source * | string | 'O&M' (operations and maintenance) or 'Capital' (required) |
year * | integer | Budget year (required) |
allocated_amount | number | Allocated amount |
budgeted_amount | number | Budgeted amount |
building_id | string | Building ID. Not read by the Budget tab. |
module | string | Workspace the budget belongs to. Omit for an organization-wide budget; set it when the organization budgets facilities and infrastructure separately. |
site_id | string | Site ID. Not read by the Budget tab. |
update_budget Update budget
Update an existing budget by ID. Requires budgets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Budget ID |
allocated_amount | number | Allocated amount |
budgeted_amount | number | Budgeted amount |
building_id | string | Building ID. Not read by the Budget tab. |
funding_source | string | 'O&M' or 'Capital' |
module | Workspace; null for organization-wide | |
site_id | string | Site ID. Not read by the Budget tab. |
year | integer | Budget year |
delete_budget Delete budget
Delete a budget by ID. Requires budgets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Budget ID |
create_asset_comment Create asset comment
Create a new comment on an asset. Requires asset_comments:write scope.
| Parameter | Type | Description |
|---|---|---|
asset_id * | string | Asset ID (required) |
comment * | string | Comment text (required) |
update_asset_comment Update asset comment
Update an existing asset comment by ID. Requires asset_comments:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset comment ID |
comment | string | Comment text |
delete_asset_comment Delete asset comment
Delete an asset comment by ID. Requires asset_comments:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset comment ID |
create_work_order_comment Create work order comment
Create a new comment on a work order. Requires work_order_comments:write scope.
| Parameter | Type | Description |
|---|---|---|
comment * | string | Comment text (required) |
work_order_id * | string | Work order ID (required) |
update_work_order_comment Update work order comment
Update an existing work order comment by ID. Requires work_order_comments:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Work order comment ID |
comment | string | Comment text |
delete_work_order_comment Delete work order comment
Delete a work order comment by ID. Requires work_order_comments:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Work order comment ID |
create_work_order_schedule Create work order schedule
Schedule a work order for a technician on a date (one entry of a day plan). stop_order gives the position in the technician's day; leave it unset for an unordered calendar entry. Requires work_order_schedules:write scope.
| Parameter | Type | Description |
|---|---|---|
scheduled_date * | string | Date (YYYY-MM-DD, required) |
technician_id * | string | Technician Clerk user ID (required) |
work_order_id * | string | Work order ID (required) |
duration_minutes | integer | Planned duration in minutes |
scheduled_end_time | string | End time (HH:MM) |
scheduled_start_time | string | Start time (HH:MM) |
scheduling_notes | string | Scheduling notes |
stop_order | integer | 1-based stop position in the day plan |
travel_time_minutes | integer | Travel time from previous stop |
update_work_order_schedule Update work order schedule
Update a work order schedule entry by ID (date, times, stop_order, notes). work_order_id is immutable. Requires work_order_schedules:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Work order schedule ID |
duration_minutes | integer | Planned duration in minutes |
scheduled_date | string | Date (YYYY-MM-DD) |
scheduled_end_time | string | End time (HH:MM) |
scheduled_start_time | string | Start time (HH:MM) |
scheduling_notes | string | Scheduling notes |
stop_order | integer | 1-based stop position in the day plan |
technician_id | string | Technician Clerk user ID |
travel_time_minutes | integer | Travel time from previous stop |
delete_work_order_schedule Delete work order schedule
Delete a work order schedule entry by ID (removes the stop from the technician's day). Requires work_order_schedules:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Work order schedule ID |
create_project_comment Create project comment
Create a new comment on a project. Requires project_comments:write scope.
| Parameter | Type | Description |
|---|---|---|
content * | string | Comment content (required) |
project_id * | string | Project ID (required) |
parent_id | string | Parent comment ID (for threading) |
update_project_comment Update project comment
Update an existing project comment by ID. Requires project_comments:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project comment ID |
content | string | Comment content |
parent_id | string | Parent comment ID |
delete_project_comment Delete project comment
Delete a project comment by ID. Requires project_comments:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project comment ID |
create_asset_cost Create asset cost
Create a new asset cost entry - the record type shown on the AssetLab "Expenses" page. Requires asset_costs:write scope.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Cost amount (required) |
category * | string | Cost category (required) |
cost_date * | string | Cost date (ISO 8601, required) |
asset_id | string | Asset ID |
building_id | string | Building ID |
description | string | Description |
invoice_number | string | Invoice number (free text) |
po_number | string | Purchase order number (free text) |
purchase_order_id | string | Purchase order that paid this cost - resolve via list_purchase_orders. Counts against the order's remaining balance unless the cost belongs to a work order. |
site_id | string | Site ID |
work_order_id | string | Work order ID |
update_asset_cost Update asset cost
Update an existing asset cost entry by ID - the record type shown on the AssetLab "Expenses" page. Requires asset_costs:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset cost ID |
amount | number | Cost amount |
asset_id | string | Asset ID |
building_id | string | Building ID |
category | string | Cost category |
cost_date | string | Cost date (ISO 8601) |
description | string | Description |
invoice_number | string | Invoice number (free text) |
po_number | string | Purchase order number (free text) |
purchase_order_id | Purchase order that paid this cost - resolve via list_purchase_orders. Counts against the order's remaining balance unless the cost belongs to a work order; null clears it. | |
site_id | string | Site ID |
work_order_id | string | Work order ID |
delete_asset_cost Delete asset cost
Delete an asset cost entry by ID. Requires asset_costs:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset cost ID |
create_asset_replacement_plan Create asset replacement plan
Create a new asset replacement plan. Requires asset_replacement_plans:write scope.
| Parameter | Type | Description |
|---|---|---|
asset_id * | string | Asset ID (required) |
planned_replacement_year * | integer | Planned replacement year (required) |
estimated_cost | number | Estimated replacement cost |
funding_source | string | Funding source |
notes | string | Notes |
priority | string | Priority |
status | string | Status |
update_asset_replacement_plan Update asset replacement plan
Update an existing asset replacement plan by ID. Requires asset_replacement_plans:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset replacement plan ID |
asset_id | string | Asset ID |
estimated_cost | number | Estimated replacement cost |
funding_source | string | Funding source |
notes | string | Notes |
planned_replacement_year | integer | Planned replacement year |
priority | string | Priority |
status | string | Status |
delete_asset_replacement_plan Delete asset replacement plan
Delete an asset replacement plan by ID. Requires asset_replacement_plans:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset replacement plan ID |
create_project_task Create project task
Create a new project task. Requires project_tasks:write scope.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID (required) |
title * | string | Task title (required) |
assigned_to | string | Assigned user - an active member of the organization (see list_users) |
completion_percentage | number | Percent complete (0-100) |
description | string | Description |
due_date | string | Due date (ISO 8601) |
estimated_cost | number | Estimated cost |
estimated_hours | number | Estimated hours |
parent_task_id | string | Parent task ID, for a subtask |
phase_id | string | Phase ID |
priority | string | Priority |
start_date | string | Start date (ISO 8601) |
status | string | Task status |
update_project_task Update project task
Update an existing project task by ID. Requires project_tasks:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project task ID |
assigned_to | string | Assigned user - an active member of the organization (see list_users) |
completion_percentage | number | Percent complete (0-100) |
description | string | Description |
due_date | string | Due date (ISO 8601) |
estimated_cost | number | Estimated cost |
estimated_hours | number | Estimated hours |
parent_task_id | string | Parent task ID, for a subtask |
phase_id | string | Phase ID |
priority | string | Priority |
project_id | string | Project ID |
start_date | string | Start date (ISO 8601) |
status | string | Task status |
title | string | Task title |
delete_project_task Delete project task
Delete a project task by ID. Requires project_tasks:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project task ID |
create_project_milestone Create project milestone
Create a new project milestone. Requires project_milestones:write scope.
| Parameter | Type | Description |
|---|---|---|
due_date * | string | Due date (ISO 8601, required) |
name * | string | Milestone name (required) |
project_id * | string | Project ID (required) |
completed_date | string | Completed date (ISO 8601) |
description | string | Description |
is_critical | boolean | Whether the milestone is on the critical path |
phase_id | string | Phase the milestone belongs to |
status | string | Milestone status |
update_project_milestone Update project milestone
Update an existing project milestone by ID. Requires project_milestones:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project milestone ID |
completed_date | string | Completed date (ISO 8601) |
description | string | Description |
due_date | string | Due date (ISO 8601) |
is_critical | boolean | Whether the milestone is on the critical path |
name | string | Milestone name |
phase_id | string | Phase the milestone belongs to |
project_id | string | Project ID |
status | string | Milestone status |
delete_project_milestone Delete project milestone
Delete a project milestone by ID. Requires project_milestones:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project milestone ID |
create_project_phase Create project phase
Create a new project phase. Requires project_phases:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Phase name (required) |
project_id * | string | Project ID (required) |
description | string | Description |
end_date | string | End date (ISO 8601) |
sequence_order | integer | Order within the project. Defaults to after the last existing phase. |
start_date | string | Start date (ISO 8601) |
status | string | Phase status |
update_project_phase Update project phase
Update an existing project phase by ID. Requires project_phases:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project phase ID |
description | string | Description |
end_date | string | End date (ISO 8601) |
name | string | Phase name |
project_id | string | Project ID |
sequence_order | integer | Order within the project |
start_date | string | Start date (ISO 8601) |
status | string | Phase status |
delete_project_phase Delete project phase
Delete a project phase by ID. Requires project_phases:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project phase ID |
create_project_budget_item Create project budget item
Create a new project budget item. Requires project_budget_items:write scope.
| Parameter | Type | Description |
|---|---|---|
category * | string | Budget category (required) |
project_id * | string | Project ID (required) |
actual_amount | number | Actual amount |
description | string | Description |
notes | string | Notes |
planned_amount | number | Planned amount |
update_project_budget_item Update project budget item
Update an existing project budget item by ID. Requires project_budget_items:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project budget item ID |
actual_amount | number | Actual amount |
category | string | Budget category |
description | string | Description |
notes | string | Notes |
planned_amount | number | Planned amount |
project_id | string | Project ID |
delete_project_budget_item Delete project budget item
Delete a project budget item by ID. Requires project_budget_items:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project budget item ID |
create_project_time_entry Create project time entry
Create a new project time entry. Requires project_time_entries:write scope.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID (required) |
start_time * | string | Start time (ISO 8601 datetime, required) |
task_id * | string | Task ID (required) |
user_id * | string | User ID (required) - an active member of the organization (see list_users) |
description | string | Description |
duration_minutes | integer | Whole minutes worked. Send this or start_time and end_time; if you send both, they must agree. |
end_time | string | End time (ISO 8601 datetime) |
is_billable | boolean | Whether the time is billable |
user_name | string | Display name of the user |
update_project_time_entry Update project time entry
Update an existing project time entry by ID. Requires project_time_entries:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project time entry ID |
description | string | Description |
duration_minutes | integer | Whole minutes worked. Send this or start_time and end_time; if you send both, they must agree. |
end_time | string | End time (ISO 8601 datetime) |
is_billable | boolean | Whether the time is billable |
project_id | string | Project ID |
start_time | string | Start time (ISO 8601 datetime) |
task_id | string | Task ID |
user_id | string | User ID |
user_name | string | Display name of the user |
delete_project_time_entry Delete project time entry
Delete a project time entry by ID. Requires project_time_entries:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project time entry ID |
create_manufacturer Create manufacturer
Create a new manufacturer. Requires manufacturers:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Manufacturer name (required) |
contact_email | string | Contact email address |
contact_name | string | Primary contact name |
contact_phone | string | Contact phone number |
notes | string | Notes |
website | string | Website URL |
update_manufacturer Update manufacturer
Update an existing manufacturer by ID. Requires manufacturers:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Manufacturer ID |
contact_email | string | Contact email address |
contact_name | string | Primary contact name |
contact_phone | string | Contact phone number |
name | string | Manufacturer name |
notes | string | Notes |
website | string | Website URL |
delete_manufacturer Delete manufacturer
Delete a manufacturer by ID. Requires manufacturers:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Manufacturer ID |
create_asset_type Create asset type
Create a new asset type. Requires asset_types:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Asset type name (required) |
description | string | Description |
group_id | string | Group ID |
update_asset_type Update asset type
Update an existing asset type by ID. Requires asset_types:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset type ID |
description | string | Description |
group_id | string | Group ID |
name | string | Asset type name |
delete_asset_type Delete asset type
Delete an asset type by ID. Requires asset_types:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset type ID |
create_work_category Create work category
Create a new work category. Requires work_categories:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Work category name (required) |
description | string | Description |
module | string | Workspace the category is offered in: facilities, infrastructure, or shared (both). Defaults to shared. |
update_work_category Update work category
Update an existing work category by ID. Requires work_categories:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Work category ID |
description | string | Description |
module | string | Move the category to a workspace: facilities, infrastructure, or shared (both). |
name | string | Work category name |
delete_work_category Delete work category
Delete a work category by ID. Requires work_categories:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Work category ID |
create_asset_type_group Create asset type group
Create a new asset type group. Groups organize asset types into logical categories. Requires asset_type_groups:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Group name (required) |
color | string | Color hex code (e.g., #6366f1) |
description | string | Description |
update_asset_type_group Update asset type group
Update an existing asset type group by ID. Requires asset_type_groups:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset type group ID |
color | string | Color hex code (e.g., #6366f1) |
description | string | Description |
name | string | Group name |
delete_asset_type_group Delete asset type group
Delete an asset type group by ID. Requires asset_type_groups:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset type group ID |
create_building_type Create building type
Create a new building type. Requires building_types:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Building type name (required) |
description | string | Description |
update_building_type Update building type
Update an existing building type by ID. Requires building_types:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Building type ID |
description | string | Description |
name | string | Building type name |
delete_building_type Delete building type
Delete a building type by ID. Requires building_types:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Building type ID |
create_location_type Create location type
Create a new location type. Requires location_types:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Location type name (required) |
description | string | Description |
update_location_type Update location type
Update an existing location type by ID. Requires location_types:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Location type ID |
description | string | Description |
name | string | Location type name |
delete_location_type Delete location type
Delete a location type by ID. Requires location_types:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Location type ID |
create_project_phase_category Create project phase category
Create a new project phase category. Requires project_phase_categories:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Phase name (required), e.g. "Planning", "Design" |
description | string | Description of the phase |
sort_order | integer | Display order (lower = first) |
update_project_phase_category Update project phase category
Update an existing project phase category by ID. Requires project_phase_categories:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project phase category ID |
description | string | Description |
name | string | Phase name |
sort_order | integer | Display order (lower = first) |
delete_project_phase_category Delete project phase category
Delete a project phase category by ID. Requires project_phase_categories:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project phase category ID |
create_cost_category Create cost category
Create a new cost category. Requires cost_categories:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Cost category name (required) |
is_active | boolean | Whether the category is active |
parent_id | string | Parent cost category ID |
update_cost_category Update cost category
Update an existing cost category by ID. Requires cost_categories:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Cost category ID |
is_active | boolean | Whether the category is active |
name | string | Cost category name |
parent_id | string | Parent cost category ID |
delete_cost_category Delete cost category
Delete a cost category by ID. Requires cost_categories:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Cost category ID |
create_part_category Create part category
Create a new part category. Requires part_categories:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Part category name (required) |
description | string | Description |
module | string | Workspace the category is offered in: facilities, infrastructure, or shared (both). Defaults to shared. |
update_part_category Update part category
Update an existing part category by ID. Requires part_categories:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Part category ID |
description | string | Description |
module | string | Move the category to a workspace: facilities, infrastructure, or shared (both). |
name | string | Part category name |
delete_part_category Delete part category
Delete a part category by ID. Requires part_categories:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Part category ID |
create_asset_part Create asset part
Link a part to an asset (creates an asset-part association). Requires asset_parts:write scope.
| Parameter | Type | Description |
|---|---|---|
asset_id * | string | Asset ID (required) |
part_id * | string | Part ID (required) |
quantity | number | Quantity of this part on the asset |
update_asset_part Update asset part
Update the quantity of an asset-part association by ID. Requires asset_parts:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset-part association ID |
quantity | number | New quantity |
delete_asset_part Delete asset part
Remove a part from an asset by association ID. Requires asset_parts:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset-part association ID |
create_system Create system
Create a new system. Requires systems:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | System name (required) |
crv_multiplier | number | CRV multiplier |
description | string | Description |
system_group_id | string | System group ID |
update_system Update system
Update an existing system by ID. Requires systems:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | System ID |
crv_multiplier | number | CRV multiplier |
description | string | Description |
name | string | System name |
system_group_id | string | System group ID |
delete_system Delete system
Delete a system by ID. Requires systems:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | System ID |
create_system_class Create system class
Create a new system class (top-level classification, e.g., "HVAC & Mechanical", "Material Handling"). Requires systems:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | System class name (required) |
description | string | Description |
update_system_class Update system class
Update an existing system class by ID. Requires systems:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | System class ID |
description | string | Description |
name | string | System class name |
delete_system_class Delete system class
Delete a system class by ID. Requires systems:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | System class ID |
create_system_group Create system group
Create a new system group (category under a system class, e.g., "Heating", "Cooling"). Requires systems:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | System group name (required) |
description | string | Description |
system_class_id | string | Parent system class ID |
update_system_group Update system group
Update an existing system group by ID. Requires systems:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | System group ID |
description | string | Description |
name | string | System group name |
system_class_id | string | Parent system class ID |
delete_system_group Delete system group
Delete a system group by ID. Requires systems:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | System group ID |
create_vendor_site_assignment Create vendor site assignment
Assign a vendor to a site. Requires vendor_site_assignments:write scope.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | Site ID (required) |
vendor_id * | string | Vendor ID (required) |
delete_vendor_site_assignment Delete vendor site assignment
Remove a vendor-site assignment by ID. Requires vendor_site_assignments:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Vendor-site assignment ID |
create_contract_site Create contract site
Assign a contract to a site. Requires contract_sites:write scope.
| Parameter | Type | Description |
|---|---|---|
contract_id * | string | Contract ID (required) |
site_id * | string | Site ID (required) |
delete_contract_site Delete contract site
Remove a contract from a site. Requires contract_sites:write scope. An assignment is identified by its contract and site; it has no id of its own.
| Parameter | Type | Description |
|---|---|---|
contract_id * | string | Contract ID (required) |
site_id * | string | Site ID (required) |
create_custom_field_definition Create custom field definition
Create a new custom field definition. Requires custom_fields:write scope.
| Parameter | Type | Description |
|---|---|---|
entity_type * | string | Entity type this field applies to (required) |
field_name * | string | Field name / key (required) |
field_type * | string | Field data type (required) |
display_order | integer | Display order |
field_label | string | Display label |
field_options | array | Options for select-type fields |
is_required | boolean | Whether the field is required |
update_custom_field_definition Update custom field definition
Update an existing custom field definition by ID. Requires custom_fields:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Custom field definition ID |
display_order | integer | Display order |
entity_type | string | Entity type |
field_label | string | Display label |
field_name | string | Field name / key |
field_options | array | Options for select-type fields |
field_type | string | Field data type |
is_required | boolean | Whether the field is required |
delete_custom_field_definition Delete custom field definition
Delete a custom field definition by ID. Requires custom_fields:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Custom field definition ID |
create_custom_field_value Create custom field value
Create (upsert) a custom field value for an entity. The table stores values in typed columns - prefer setting the one that matches the field definition's field_type: value_text (text/select; a select value must be one of the field's options), value_number (number), value_date (date, ISO YYYY-MM-DD), value_boolean (boolean). Alternatively pass a single `value` string and the server will dispatch it to the right column based on field_type. Writes upsert on (entity_id, field_definition_id) so replaying a batch is idempotent. Requires custom_fields:write scope.
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | Entity ID - e.g. asset.id, work_order.id (required) |
field_definition_id * | string | Custom field definition ID - resolve via list_custom_field_definitions (required) |
value | string | Legacy single-value shim - server dispatches to the correct typed column based on the field definition's field_type. Ignored if any value_* typed column is set. |
value_boolean | boolean | null | Boolean value (use for field_type=boolean) |
value_date | string | null | Date value, ISO YYYY-MM-DD (use for field_type=date) |
value_number | number | null | Numeric value (use for field_type=number) |
value_text | Text value (use for field_type=text or select) |
update_custom_field_value Update custom field value
Update an existing custom field value by ID. Set whichever typed column matches the definition's field_type (value_text / value_number / value_date / value_boolean), or pass a single `value` and the server will dispatch it. Requires custom_fields:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Custom field value ID |
entity_id | string | Entity ID |
field_definition_id | string | Custom field definition ID - required when using the `value` fallback if you want to avoid the server fetching it |
value | string | Legacy single-value shim - server dispatches based on field_type |
value_boolean | boolean | null | Boolean value |
value_date | string | null | Date value, ISO YYYY-MM-DD |
value_number | number | null | Numeric value |
value_text | Text value |
delete_custom_field_value Delete custom field value
Delete a custom field value by ID. Requires custom_fields:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Custom field value ID |
create_part Create part
Create a new part/inventory item. Requires parts:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Part name (required) |
building_id | string | Building ID |
category | string | Category label |
cost | number | Unit cost |
desired_quantity | integer | Target / reorder quantity |
location_id | string | Location ID |
part_number | string | Part number / SKU |
quantity | integer | Current stock quantity |
site_id | string | Site ID |
specific_location | string | Storage location description |
supplier | string | DEPRECATED - legacy free-text supplier name. Use supplier_id instead. |
supplier_id | string | Vendor ID (resolve via list_vendors) |
update_part Update part
Update an existing part/inventory item by ID. Requires parts:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Part ID |
building_id | string | Building ID |
category | string | Category label |
cost | number | Unit cost |
desired_quantity | integer | Target / reorder quantity |
location_id | string | Location ID |
name | string | Part name |
part_number | string | Part number / SKU |
quantity | integer | Current stock quantity |
site_id | string | Site ID |
specific_location | string | Storage location description |
supplier | string | DEPRECATED - legacy free-text supplier name. Use supplier_id instead. |
supplier_id | string | Vendor ID (resolve via list_vendors) |
delete_part Delete part
Delete a part/inventory item by ID. Requires parts:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Part ID |
create_upload_url Create upload URL
Generate a signed upload URL for uploading a file to AssetLab storage. Returns a signed_url to PUT the file to, and the storage path to store on the record. IMPORTANT - When a user wants to upload a file, always clarify the target. File upload paths: (1) Asset IMAGE: bucket "asset-images" → update_asset with image_url. (2) Asset DOCUMENT (O&M, warranty, spec): bucket "documents" → create_asset_document. (3) Work order IMAGE: bucket "attachments" → update_work_order with image_url. (4) Work order/request/PM ATTACHMENT: bucket "attachments" → create_attachment with the parent ID. (5) Pro…
| Parameter | Type | Description |
|---|---|---|
bucket * | string | Storage bucket (required). Use "asset-images" for asset photos. |
file_name * | string | File name including extension (required) |
upload_file Upload file
Upload a file to AssetLab storage by sending its bytes inline (base64). The AssetLab backend performs the storage upload server-side - use this tool when the client cannot PUT directly to Supabase Storage (e.g. Claude integrations whose outbound network blocks arbitrary supabase.co hosts). Returns { path, bucket, file_size, content_type }. After uploading, pass path to the appropriate record tool (update_asset image_url, create_asset_document file_path, update_work_order image_url, create_attachment file_url, create_project_document file_path, create_contract_document file_path). Server limit…
| Parameter | Type | Description |
|---|---|---|
bucket * | string | Storage bucket (required). Use "asset-images" for asset photos, "attachments" for work-order/PM attachments. |
content_base64 * | string | File contents base64-encoded (required). Data URI prefixes like "data:image/png;base64," are stripped automatically. |
file_name * | string | File name including extension (required) |
content_type | string | MIME type (e.g. image/jpeg, application/pdf). Defaults to application/octet-stream. |
create_asset_document Create asset document
Create an asset document record (after uploading the file via create_upload_url). Requires asset_documents:write scope.
| Parameter | Type | Description |
|---|---|---|
asset_id * | string | Asset ID this document belongs to (required) |
file_path * | string | Storage path from upload URL response (required) |
name * | string | Document name (required) |
category | string | Document category |
description | string | Description |
file_size | number | File size in bytes |
file_type | string | MIME type |
user_id | string | Uploader user ID |
update_asset_document Update asset document
Update an asset document by ID. Requires asset_documents:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset document ID |
asset_id | string | Asset ID |
category | string | Document category |
description | string | Description |
file_path | string | Storage path |
file_size | number | File size in bytes |
file_type | string | MIME type |
name | string | Document name |
user_id | string | Uploader user ID |
delete_asset_document Delete asset document
Delete an asset document by ID. Requires asset_documents:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset document ID |
create_attachment Create attachment
Create an attachment record linked to a work order, work request, PM schedule, or PM template. Exactly one parent ID must be provided. Requires attachments:write scope.
| Parameter | Type | Description |
|---|---|---|
file_name * | string | File name (required) |
file_url * | string | File URL / storage path (required) |
description | string | Description |
file_size | number | File size in bytes |
file_type | string | MIME type |
pm_schedule_id | string | PM schedule ID (exactly one parent required) |
pm_template_id | string | PM template ID (exactly one parent required) |
uploaded_by | string | Uploader user ID |
work_order_id | string | Work order ID (exactly one parent required) |
work_request_id | string | Work request ID (exactly one parent required) |
update_attachment Update attachment
Update an attachment by ID. Requires attachments:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Attachment ID |
description | string | Description |
file_name | string | File name |
file_size | number | File size in bytes |
file_type | string | MIME type |
file_url | string | File URL / storage path |
pm_schedule_id | string | PM schedule ID |
pm_template_id | string | PM template ID |
uploaded_by | string | Uploader user ID |
work_order_id | string | Work order ID |
work_request_id | string | Work request ID |
delete_attachment Delete attachment
Delete an attachment by ID. Requires attachments:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Attachment ID |
create_project_document Create project document
Create a project document record. Requires project_documents:write scope.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Storage path from upload URL response (required) |
name * | string | Document name (required) |
project_id * | string | Project ID (required) |
uploaded_by * | string | Uploader user ID (required) |
description | string | Description |
file_size | number | File size in bytes |
file_type | string | MIME type |
folder_id | string | Folder ID |
update_project_document Update project document
Update a project document by ID. Requires project_documents:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project document ID |
description | string | Description |
file_path | string | Storage path |
file_size | number | File size in bytes |
file_type | string | MIME type |
folder_id | string | Folder ID |
name | string | Document name |
project_id | string | Project ID |
uploaded_by | string | Uploader user ID |
delete_project_document Delete project document
Delete a project document by ID. Requires project_documents:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project document ID |
create_contract_document Create contract document
Create a contract document record. Requires contract_documents:write scope.
| Parameter | Type | Description |
|---|---|---|
contract_id * | string | Contract ID (required) |
file_name * | string | File name (required) |
file_path * | string | Storage path from upload URL response (required) |
file_size | number | File size in bytes |
file_type | string | MIME type |
uploaded_by | string | Uploader user ID |
update_contract_document Update contract document
Update a contract document by ID. Requires contract_documents:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Contract document ID |
contract_id | string | Contract ID |
file_name | string | File name |
file_path | string | Storage path |
file_size | number | File size in bytes |
file_type | string | MIME type |
uploaded_by | string | Uploader user ID |
delete_contract_document Delete contract document
Delete a contract document by ID. Requires contract_documents:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Contract document ID |
create_project_team_member Create project team member
Add a team member to a project. Requires project_team_members:write scope.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID (required) |
role * | string | Role on the project (required) |
user_id * | string | Clerk user ID (required) |
end_date | string | End date (ISO 8601) |
is_active | boolean | Whether member is currently active |
responsibilities | string | Description of responsibilities |
start_date | string | Start date (ISO 8601) |
update_project_team_member Update project team member
Update a project team member by ID. Requires project_team_members:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project team member ID |
end_date | string | End date (ISO 8601) |
is_active | boolean | Whether member is currently active |
project_id | string | Project ID |
responsibilities | string | Description of responsibilities |
role | string | Role on the project |
start_date | string | Start date (ISO 8601) |
user_id | string | Clerk user ID |
delete_project_team_member Delete project team member
Remove a team member from a project by ID. Requires project_team_members:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project team member ID |
create_project_task_dependency Create project task dependency
Create a dependency between two project tasks. Requires project_task_dependencies:write scope.
| Parameter | Type | Description |
|---|---|---|
depends_on_task_id * | string | Task ID that must complete first (required); must differ from task_id |
task_id * | string | Task ID (the dependent task, required) |
dependency_type | string | Dependency type (default: finish_to_start) |
delete_project_task_dependency Delete project task dependency
Delete a task dependency by ID. Requires project_task_dependencies:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project task dependency ID |
create_project_update Create project update
Create a periodic project status update. Requires project_updates:write scope.
| Parameter | Type | Description |
|---|---|---|
author_id * | string | Author Clerk user ID (required) |
content * | string | Update content (required) |
period_value * | string | Period value - 1-12 for monthly, 1-4 for quarterly, etc. (required) |
period_year * | integer | Year for this update period (required) |
project_id * | string | Project ID (required) |
timeframe * | string | Update timeframe (required) |
title | string | Optional custom title |
update_project_update Update project update
Update an existing project update by ID. Requires project_updates:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project update ID |
author_id | string | Author Clerk user ID |
content | string | Update content |
period_value | string | Period value |
period_year | integer | Year for this update period |
project_id | string | Project ID |
timeframe | string | Update timeframe |
title | string | Optional custom title |
delete_project_update Delete project update
Delete a project update by ID. Requires project_updates:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project update ID |
create_project_cost_snapshot Create project cost snapshot
Record a cost snapshot for a project at a point in time. Requires project_cost_snapshots:write scope.
| Parameter | Type | Description |
|---|---|---|
actual_cost * | number | Actual cost to date (required) |
project_id * | string | Project ID (required) |
snapshot_date * | string | Snapshot date (ISO 8601, required) |
total_budget * | number | Total budget amount (required) |
forecasted_cost | number | Forecasted total cost |
percent_complete | number | Completion percentage (0-100) |
delete_project_cost_snapshot Delete project cost snapshot
Delete a project cost snapshot by ID. Requires project_cost_snapshots:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project cost snapshot ID |
create_project_location Create project location
Link a location to a project. Requires project_locations:write scope.
| Parameter | Type | Description |
|---|---|---|
location_id * | string | Location ID (required) |
project_id * | string | Project ID (required) |
delete_project_location Delete project location
Remove a location from a project by ID. Requires project_locations:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project location ID |
create_project_site Create project site
Link a site to a project. Requires project_sites:write scope.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID (required) |
site_id * | string | Site ID (required) |
delete_project_site Delete project site
Remove a site from a project by ID. Requires project_sites:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project site ID |
create_project_building Create project building
Link a building to a project. Requires project_buildings:write scope.
| Parameter | Type | Description |
|---|---|---|
building_id * | string | Building ID (required) |
project_id * | string | Project ID (required) |
delete_project_building Delete project building
Remove a building from a project by ID. Requires project_buildings:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project building ID |
create_project_system Create project system
Link a system to a project. Requires project_systems:write scope.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID (required) |
system_id * | string | System ID (required) |
delete_project_system Delete project system
Remove a system from a project by ID. Requires project_systems:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project system ID |
create_project_system_class Create project system class
Link a system class to a project. Requires project_system_classes:write scope.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID (required) |
system_class_id * | string | System class ID (required) |
delete_project_system_class Delete project system class
Remove a system class from a project by ID. Requires project_system_classes:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project system class ID |
create_project_system_group Create project system group
Link a system group to a project. Requires project_system_groups:write scope.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID (required) |
system_group_id * | string | System group ID (required) |
delete_project_system_group Delete project system group
Remove a system group from a project by ID. Requires project_system_groups:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project system group ID |
create_project_risk Create project risk
Create a new project risk. Requires project_risks:write scope.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID (required) |
title * | string | Risk title (required) |
category | string | Risk category |
contingency_plan | string | Contingency plan |
created_by | string | Creator (Clerk user ID) |
description | string | Risk description |
due_date | string | Due date (ISO 8601) |
impact | string | Impact level. Defaults to medium. |
mitigation_plan | string | Mitigation plan |
owner_id | string | Risk owner (Clerk user ID) |
probability | string | Probability level. Defaults to medium. |
status | string | Risk status (default: identified) |
update_project_risk Update project risk
Update an existing project risk by ID. Requires project_risks:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project risk ID |
category | string | Risk category |
contingency_plan | string | Contingency plan |
description | string | Risk description |
due_date | string | Due date (ISO 8601) |
impact | string | Impact level |
mitigation_plan | string | Mitigation plan |
owner_id | string | Risk owner (Clerk user ID) |
probability | string | Probability level |
project_id | string | Project ID |
status | string | Risk status |
title | string | Risk title |
delete_project_risk Delete project risk
Delete a project risk by ID. Requires project_risks:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project risk ID |
create_project_asset Create project asset
Link an asset to a project. Requires project_assets:write scope.
| Parameter | Type | Description |
|---|---|---|
asset_id * | string | Asset ID (required) |
project_id * | string | Project ID (required) |
delete_project_asset Delete project asset
Remove an asset from a project by ID. Requires project_assets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project asset ID |
create_service_area Create service area
Create a new service area for Level of Service tracking. Requires service_areas:write scope. After creating, link system classes via create_service_area_system_class and sites via create_service_area_site.
| Parameter | Type | Description |
|---|---|---|
name * | string | Service area name (required, unique per tenant) |
color | string | Hex color code (e.g., "#3B82F6") |
description | string | Description |
icon | string | Icon name (e.g., "droplets" for water) |
is_active | boolean | Whether the service area is active (default: true) |
sort_order | integer | Sort order for display |
update_service_area Update service area
Update an existing service area by ID. Requires service_areas:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Service area ID |
color | string | Hex color code |
description | string | Description |
icon | string | Icon name |
is_active | boolean | Active status |
name | string | Service area name |
sort_order | integer | Sort order |
delete_service_area Delete service area
Delete a service area by ID. WARNING: This also deletes all linked measures, measurements, and junction records. Requires service_areas:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Service area ID |
create_service_area_system_class Create service area system class
Link a system class to a service area. Requires service_areas:write scope. Resolve IDs first: list_service_areas → service_area_id, list_system_classes → system_class_id.
| Parameter | Type | Description |
|---|---|---|
service_area_id * | string | Service area ID (required) |
system_class_id * | string | System class ID (required) |
delete_service_area_system_class Delete service area system class
Remove a system class link from a service area. Requires service_areas:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Service area system class link ID |
create_service_area_site Create service area site
Link a site to a service area (optional scoping). Requires service_areas:write scope. Resolve IDs first: list_service_areas → service_area_id, list_sites → site_id.
| Parameter | Type | Description |
|---|---|---|
service_area_id * | string | Service area ID (required) |
site_id * | string | Site ID (required) |
delete_service_area_site Delete service area site
Remove a site link from a service area. Requires service_areas:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Service area site link ID |
create_los_measure Create LoS measure
Create a new LoS measure within a service area. Requires los_measures:write scope. Resolve service_area_id first via list_service_areas.
| Parameter | Type | Description |
|---|---|---|
category * | string | Measure category (required) |
data_source * | string | Data source type (required). Use "manual" if values will be entered by hand. |
name * | string | Measure name (required, unique per service area) |
service_area_id * | string | Service area ID (required) |
type * | string | Measure type (required) |
community_statement | string | Community-facing statement (for community type measures) |
data_source_config | object | Data source configuration (JSONB). E.g., {"threshold": 3} for pct_above/below, {"days_back": 90} for WO metrics. |
description | string | Description |
is_active | boolean | Whether the measure is active (default: true) |
minimum_acceptable | number | Minimum acceptable value |
sort_order | integer | Sort order for display |
stretch_goal | number | Stretch goal value |
target_value | number | Target value |
trend_direction | string | Which direction is better |
unit | string | Unit of measurement (e.g., "%", "hours", "count") |
weight | number | Weight for composite score calculation (default: 1.0) |
update_los_measure Update LoS measure
Update an existing LoS measure by ID. Requires los_measures:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | LoS measure ID |
category | string | Measure category |
community_statement | string | Community-facing statement |
data_source | string | Data source type |
data_source_config | object | Data source configuration (JSONB) |
description | string | Description |
is_active | boolean | Active status |
minimum_acceptable | number | Minimum acceptable value |
name | string | Measure name |
sort_order | integer | Sort order |
stretch_goal | number | Stretch goal value |
target_value | number | Target value |
trend_direction | string | Which direction is better |
type | string | Measure type |
unit | string | Unit of measurement |
weight | number | Weight for composite score calculation |
delete_los_measure Delete LoS measure
Delete a LoS measure by ID. WARNING: This also deletes all associated measurements and targets history. Requires los_measures:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | LoS measure ID |
create_los_measurement Create LoS measurement
Record a new LoS measurement value. Requires los_measurements:write scope. Resolve los_measure_id first via list_los_measures.
| Parameter | Type | Description |
|---|---|---|
actual_value * | number | Measured value (required) |
los_measure_id * | string | LoS measure ID (required) |
period_end * | string | Period end date (ISO 8601, required, e.g., "2026-03-31") |
period_start * | string | Period start date (ISO 8601, required, e.g., "2026-01-01") |
period_type * | string | Period type (required) |
is_auto | boolean | Whether this is an auto-calculated value (default: false) |
notes | string | Notes or context for this measurement |
update_los_measurement Update LoS measurement
Update an existing LoS measurement by ID. Requires los_measurements:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | LoS measurement ID |
actual_value | number | Measured value |
is_auto | boolean | Whether this is auto-calculated |
notes | string | Notes or context |
period_end | string | Period end date (ISO 8601) |
period_start | string | Period start date (ISO 8601) |
period_type | string | Period type |
delete_los_measurement Delete LoS measurement
Delete a LoS measurement by ID. Requires los_measurements:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | LoS measurement ID |
create_los_proposed_target Create LoS proposed target
Record the proposed level of service for a LoS measure in one future year (O. Reg. 588/17 s. 6(1)). One row per measure and year; a duplicate returns 409, so update the existing row instead. Use target_statement for a community measure and target_value for a technical one. Requires los_proposed_targets:write scope. Resolve los_measure_id first via list_los_measures.
| Parameter | Type | Description |
|---|---|---|
los_measure_id * | string | LoS measure ID (required) |
year * | integer | Target year, 2000-2200 (required) |
target_statement | string | Proposed level of service for a community measure, as a statement |
target_value | number | Proposed value for a technical measure, in the measure's own unit |
update_los_proposed_target Update LoS proposed target
Update an existing LoS proposed target by ID. Requires los_proposed_targets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | LoS proposed target ID |
target_statement | string | Proposed level of service for a community measure, as a statement |
target_value | number | Proposed value for a technical measure, in the measure's own unit |
year | integer | Target year, 2000-2200 |
delete_los_proposed_target Delete LoS proposed target
Delete a LoS proposed target by ID. Requires los_proposed_targets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | LoS proposed target ID |
create_system_los_target Create system LoS target
Set the technical Level of Service target for one system and metric. One base target per system and metric, set once for the organization; a duplicate returns 409, so update the existing row instead. Each building is held to a version adjusted by its criticality: a lower-is-better target is multiplied by the tier's modifier, a higher-is-better one keeps its distance from a perfect score multiplied by it (condition 70 becomes 82 at a Critical facility, 58 at a Low one). Derived targets never leave the metric's scale. Direction is fixed by the metric and cannot be sent: asset_condition_avg is hi…
| Parameter | Type | Description |
|---|---|---|
base_target * | number | Base target on the metric's scale (required): fci, asset_condition_avg and asset_past_useful_life_pct run 0-100; risk_score_avg runs 0-25 |
metric * | string | Metric the target tracks (required) |
system_id * | string | System ID (required) - resolve first via list_systems |
active | boolean | Whether the target is scored (default true) |
update_system_los_target Update system LoS target
Update a system LoS target by ID. base_target must sit on the scale of the metric in force (0-100, or 0-25 for risk_score_avg), so send a new base_target when changing to a metric with a smaller scale. Direction follows the metric automatically. Requires los_targets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | System LoS target ID |
active | boolean | Whether the target is scored |
base_target | number | Base target on the metric's scale: fci, asset_condition_avg and asset_past_useful_life_pct run 0-100; risk_score_avg runs 0-25 |
metric | string | Metric the target tracks |
system_id | string | System ID - resolve first via list_systems |
delete_system_los_target Delete system LoS target
Delete a system LoS target by ID. Buildings stop being scored on that system and metric; past status snapshots are kept. Requires los_targets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | System LoS target ID |
create_infrastructure_los_target Create infrastructure LoS target
Set the technical Level of Service target for one infrastructure feature class and metric. One base target per feature class and metric, set once for the organization; a duplicate returns 409, so update the existing row instead. Each network of that class is held to a version adjusted by the network's criticality (unrated counts as medium): a lower-is-better target is multiplied by the tier's modifier, a higher-is-better one keeps its distance from a perfect score multiplied by it (condition 70 becomes 82 at a Critical network, 58 at a Low one). Derived targets never leave the metric's scale.…
| Parameter | Type | Description |
|---|---|---|
base_target * | number | Base target, 0-100 (required) |
feature_class * | string | Feature class code (required) - must exist; resolve first via list_infrastructure_feature_classes |
metric * | string | Metric the target tracks (required) |
active | boolean | Whether the target is scored (default true) |
update_infrastructure_los_target Update infrastructure LoS target
Update an infrastructure LoS target by ID. base_target stays on 0-100. Requires los_targets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure LoS target ID |
active | boolean | Whether the target is scored |
base_target | number | Base target, 0-100 |
feature_class | string | Feature class code - resolve first via list_infrastructure_feature_classes |
metric | string | Metric the target tracks |
delete_infrastructure_los_target Delete infrastructure LoS target
Delete an infrastructure LoS target by ID. Networks of that class stop being scored on the metric; past status snapshots are kept. Requires los_targets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure LoS target ID |
create_criticality_modifier Create criticality modifier
Override the criticality modifier for one tier. Rows are overrides only: a tier with no row uses the built-in default (critical 0.6, high 0.8, medium 1.0, low 1.4). A modifier below 1 tightens every target held by facilities in that tier and one above 1 relaxes them. One override per tier; a duplicate returns 409, so call list_criticality_modifiers and update the existing row instead. Requires los_targets:write scope.
| Parameter | Type | Description |
|---|---|---|
criticality * | string | Criticality tier (required) |
modifier * | number | Multiplier from 0.1 to 1.9 (required); below 1 tightens, above 1 relaxes |
update_criticality_modifier Update criticality modifier
Update a criticality modifier override by ID. Below 1 tightens the targets of facilities in that tier, above 1 relaxes them. Requires los_targets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Criticality modifier ID |
criticality | string | Criticality tier |
modifier | number | Multiplier from 0.1 to 1.9; below 1 tightens, above 1 relaxes |
delete_criticality_modifier Delete criticality modifier
Delete a criticality modifier override by ID, which restores the built-in default for that tier (critical 0.6, high 0.8, medium 1.0, low 1.4). Requires los_targets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Criticality modifier ID |
create_los_consequence Create LoS consequence
Record what a missed technical Level of Service target means, in the organization's own words. Advisory only: the statement is shown on the Status screen when a matching target is breached, and no notification is sent to notify_roles or to anyone else. When several match a breach the most specific scope wins (a specific system or feature class over a criticality tier over global). severity is a floor; the severity shown scales with the size of the gap and the facility's criticality. Requires los_consequences:write scope.
| Parameter | Type | Description |
|---|---|---|
scope_type * | string | What the consequence applies to (required) |
severity * | string | Minimum severity shown (required) |
statement * | string | The consequence, as a statement (required) |
active | boolean | Whether the consequence is shown (default true) |
metric | Limit to one metric; omit or null to match any metric | |
notify_roles | array | Roles named as owning the consequence. Recorded only; nothing is sent |
scope_ref | string | null | What the scope points at: null for global; critical, high, medium or low for criticality_tier; a system ID (resolve first via list_systems) for system; a feature class code (resolve first via list_inf… |
update_los_consequence Update LoS consequence
Update a LoS consequence by ID. Changing scope_type to global clears scope_ref; changing it to anything else needs a scope_ref that fits the new type. Advisory only: no notification is sent. Requires los_consequences:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | LoS consequence ID |
active | boolean | Whether the consequence is shown |
metric | Limit to one metric; null matches any metric | |
notify_roles | array | Roles named as owning the consequence. Recorded only; nothing is sent |
scope_ref | string | null | What the scope points at: null for global; critical, high, medium or low for criticality_tier; a system ID (resolve first via list_systems) for system; a feature class code (resolve first via list_inf… |
scope_type | string | What the consequence applies to |
severity | string | Minimum severity shown |
statement | string | The consequence, as a statement |
delete_los_consequence Delete LoS consequence
Delete a LoS consequence by ID. Requires los_consequences:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | LoS consequence ID |
create_floorplan Create floorplan
Create a floorplan row. Provide EXACTLY ONE of building_id (per-building floor) or site_id (site-level / campus plan). Typically the web app calls this per page of an uploaded PDF; MCP clients rarely need to call this directly since they do not upload the PDF itself. Requires floorplans:write scope.
| Parameter | Type | Description |
|---|---|---|
floor_label * | string | Human-readable label (e.g. "Ground Floor", "Mezzanine", "Site Plan") |
pdf_filename * | string | Original filename for display |
pdf_storage_path * | string | Supabase Storage path to the PDF file |
building_id | string | Building this floor belongs to (omit if site-scoped) |
floor_order | integer | Sort order within the scope (lowest first) |
page_height_pt | number | Page height in PDF points |
page_number | integer | 1-indexed page number within the PDF |
page_width_pt | number | Page width in PDF points (discovered client-side) |
site_id | string | Site this plan belongs to (use for site-level / campus plans; omit if building-scoped) |
status | string | Detection status (default: pending) |
update_floorplan Update floorplan
Update floorplan metadata (rename floor, reorder, set status). Requires floorplans:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Floorplan ID |
detection_error | string | Error message if status=failed |
floor_label | string | New floor label |
floor_order | integer | New sort order |
status | string | Detection status |
delete_floorplan Delete floorplan
Delete a floorplan. WARNING: cascades to all regions and asset placements on this floor. Does NOT delete the underlying PDF file from storage (do that separately if no other floors reference it). Requires floorplans:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Floorplan ID |
create_floorplan_region Create floorplan region
Create a region (labeled room or zone) on a floorplan. Polygon coordinates are normalized 0-1 with origin top-left. Optionally link the region to an existing Location via location_id. Requires floorplan_regions:write scope.
| Parameter | Type | Description |
|---|---|---|
floorplan_id * | string | Floorplan this region belongs to |
label * | string | Region label (e.g. "Boiler Room 2B") |
polygon * | array | Polygon outline as an array of [x, y] points in normalized 0-1 coordinates (origin top-left). At least 3 points. |
confidence | number | AI confidence score (0-1), only set when source=ai |
location_id | string | Linked Location ID (resolved via list_locations) |
reviewed | boolean | True if an admin has reviewed this region (default: true for manual, false for ai) |
source | string | "manual" (default) or "ai" for AI-detected |
update_floorplan_region Update floorplan region
Update a floorplan region - rename, reshape polygon, link to a Location, or mark as reviewed. Requires floorplan_regions:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Floorplan region ID |
confidence | number | |
label | string | New label |
location_id | string | Linked Location ID (set to null to unlink) |
polygon | array | Polygon outline as an array of [x, y] points in normalized 0-1 coordinates (origin top-left). At least 3 points. |
reviewed | boolean | Mark region as reviewed by admin |
delete_floorplan_region Delete floorplan region
Delete a region. Asset placements that referenced this region will have region_id set to null but remain on the floorplan. Requires floorplan_regions:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Floorplan region ID |
create_asset_placement Create asset placement
Place an asset on a floorplan at the given (x, y) coordinate (normalized 0-1, origin top-left). UPSERTS by asset_id - an asset can have at most ONE placement globally, so calling this again just moves the pin. Use bulk_create with resource="asset-placements" to place many assets at once. Requires asset_placements:write scope.
| Parameter | Type | Description |
|---|---|---|
asset_id * | string | Asset to place (resolve via list_assets) |
floorplan_id * | string | Target floorplan (resolve via list_floorplans) |
x * | number | Normalized x coordinate (0=left, 1=right) |
y * | number | Normalized y coordinate (0=top, 1=bottom) |
region_id | string | Region the pin sits inside. Not inferred from the pin position: set it if the pin belongs to a region. |
source | string | "manual" (default) or "ai" for AI-placed |
update_asset_placement Update asset placement
Move an asset placement to new coordinates or a different floorplan. Requires asset_placements:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset placement ID |
floorplan_id | string | Move to a different floorplan |
region_id | string | New region (set to null to clear) |
x | number | New x coordinate |
y | number | New y coordinate |
delete_asset_placement Delete asset placement
Remove an asset placement. The asset itself is not affected - only the pin on the floorplan is removed. Requires asset_placements:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset placement ID |
bulk_create Bulk create
Create multiple records of a resource type in one API call (max 100). Each item is processed independently - one failure does not affect others. Returns per-item results. Requires {resource}:write scope. Counts as 1 request for rate limiting.
| Parameter | Type | Description |
|---|---|---|
items * | array | Array of objects to create (max 100). Each object uses the same fields as the single-create endpoint for that resource. |
resource * | string | Resource type (e.g. "assets", "work-orders") |
create_asset_status Create asset status
Create a new asset status (lifecycle state for assets). Requires asset_statuses:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Status name (required) |
description | string | Description |
module | string | Workspace the status is offered in: facilities (assets), infrastructure (features), or shared (both). Defaults to shared. |
update_asset_status Update asset status
Update an existing asset status by ID. Requires asset_statuses:write scope. On the built-in Archived status (system_key archived) only name and description can change.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset status ID |
description | string | Description |
module | string | Move the status to a workspace: facilities, infrastructure, or shared (both). |
name | string | Status name |
delete_asset_status Delete asset status
Delete an asset status by ID. Requires asset_statuses:write scope. The built-in Archived status (system_key archived) cannot be deleted.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset status ID |
create_compliance_item Create compliance item
Create a new compliance item (regulatory requirement). Requires compliance:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Compliance item name (required) |
compliance_period_months | integer | Compliance period in months |
description | string | Description |
regulation_reference | string | Regulation or code reference |
status | string | Status |
system_id | string | Associated system ID |
update_compliance_item Update compliance item
Update an existing compliance item by ID. Requires compliance:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Compliance item ID |
compliance_period_months | integer | Compliance period in months |
description | string | Description |
name | string | Compliance item name |
regulation_reference | string | Regulation or code reference |
status | string | Status |
system_id | string | Associated system ID |
delete_compliance_item Delete compliance item
Delete a compliance item by ID. Requires compliance:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Compliance item ID |
create_compliance_record Create compliance record
Create a new compliance record (audit trail entry). Requires compliance_records:write scope.
| Parameter | Type | Description |
|---|---|---|
completed_at * | string | Completion date-time (ISO 8601, required) |
compliance_item_id * | string | Compliance item ID (required) |
pm_schedule_id * | string | PM schedule ID (required) |
required_frequency_days * | integer | Required frequency in days (required) |
work_order_id * | string | Work order ID (required) |
completed_by | string | User ID who completed |
days_since_last_completion | integer | Days since last completion |
update_compliance_record Update compliance record
Update an existing compliance record by ID. Requires compliance_records:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Compliance record ID |
completed_at | string | Completion date-time (ISO 8601) |
completed_by | string | User ID who completed |
days_since_last_completion | integer | Days since last completion |
required_frequency_days | integer | Required frequency in days |
delete_compliance_record Delete compliance record
Delete a compliance record by ID. Requires compliance_records:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Compliance record ID |
create_compliance_pm_schedule Create compliance PM schedule
Link a PM schedule to a compliance item, so completing the schedule keeps the item compliant. Requires compliance:write scope. Required: compliance_item_id, pm_schedule_id, required_frequency_days. Resolve both ids first with list_compliance_items and list_pm_schedules.
| Parameter | Type | Description |
|---|---|---|
compliance_item_id * | string | Compliance item ID (required) |
pm_schedule_id * | string | PM schedule ID (required) |
required_frequency_days * | integer | How often, in days, the schedule must be completed for the item to stay compliant (required), e.g. 365 for annual |
weight | number | Relative weight of this schedule in the item score. Default 1. |
update_compliance_pm_schedule Update compliance PM schedule
Change the required frequency or weight of a compliance item to PM schedule link. Requires compliance:write scope. To point a link at a different item or schedule, delete it and create a new one.
| Parameter | Type | Description |
|---|---|---|
id * | string | Link ID - resolve via list_compliance_pm_schedules |
required_frequency_days | integer | Required frequency in days |
weight | number | Relative weight |
delete_compliance_pm_schedule Delete compliance PM schedule
Unlink a PM schedule from a compliance item. The schedule and the item both stay. Requires compliance:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Link ID - resolve via list_compliance_pm_schedules |
create_infrastructure_feature_class Create infrastructure feature class
Create a tenant-defined infrastructure feature class. Builtin classes are managed by AssetLab and cannot be created via API (is_builtin is always forced to false). Requires infrastructure_feature_classes:write scope.
| Parameter | Type | Description |
|---|---|---|
category * | string | Category - municipal service family (transportation, water, wastewater, stormwater, structures, facilities, electrical, telecom, gas, roadside, other) |
code * | string | Asset class code (lowercase snake_case, 1-50 chars) |
label * | string | Display name (required) |
color_hex | string | Display colour as hex, e.g. #3B82F6 |
icon | string | Icon name |
sort_order | integer | Sort order |
update_infrastructure_feature_class Update infrastructure feature class
Update a tenant-defined infrastructure feature class (addressed by code). The `code`, `category`, and `is_builtin` fields are immutable; attempts to change them on a builtin class return 409. Requires infrastructure_feature_classes:write scope.
| Parameter | Type | Description |
|---|---|---|
code * | string | Asset class code (lowercase snake_case, 1-50 chars) |
color_hex | string | Display colour as hex, e.g. #3B82F6 |
icon | string | Icon name |
label | string | Display name |
sort_order | integer | Sort order |
delete_infrastructure_feature_class Delete infrastructure feature class
Delete a tenant-defined infrastructure feature class by code. Builtin classes cannot be deleted. Classes referenced by any infrastructure network are protected by FK and cannot be deleted until those networks are reassigned. Requires infrastructure_feature_classes:write scope.
| Parameter | Type | Description |
|---|---|---|
code * | string | Asset class code (lowercase snake_case, 1-50 chars) |
create_infrastructure_lifecycle_event Create infrastructure lifecycle event
Create a lifecycle strategy event. Events attach to a SCOPE (feature_class code, material, optional diameter band) - never to individual features; every feature resolves the most specific matching scope, like replacement rates. Replacement is NOT an event (it is priced by the rates and scheduled by the renewal forecast) - model the interventions BEFORE replacement: crack sealing, relining, resurfacing. List existing events first to reuse a scope. Requires infrastructure_lifecycle_events:write scope.
| Parameter | Type | Description |
|---|---|---|
event_class * | string | Event type - preventative maintenance or rehabilitation |
impact_method * | string | Effect: add years of life, or reset condition to a value |
name * | string | Event name (required, e.g. "Crack Sealing") |
trigger_condition_max * | integer | Upper bound of the trigger window - the event fires when projected condition falls to this |
cost_method | string | Costing: per unit (uses the feature's measured quantity and unit) or a fixed amount (default per_unit) |
cost_source | string | Provenance of the cost ("Engineering 2026", a tender reference) |
diameter_min_mm | number | Lower bound of a diameter band (requires material); bands ladder like rates |
feature_class | string | Feature class code the strategy scope applies to (omit for a material-wide scope; at least one of feature_class/material is required) |
fixed_cost | number | Fixed cost (current dollars) |
impact_add_years | number | Years added (required when impact_method is add_years) |
impact_reset_to | integer | Condition after the event (required when impact_method is reset_condition) |
material | string | Material the scope applies to, exactly as features carry it (e.g. "PVC") |
max_applications | integer | How many times the event may fire over a feature's life (default 1) |
min_years_between | number | Minimum years between firings of a recurring event (default 1) |
sort_order | integer | Evaluation order within the strategy |
trigger_condition_min | integer | Lower bound of the trigger window (default 0); a feature already below it has missed the event |
unit_cost | number | Cost per unit (current dollars, never indexed) |
work_generation | string | What a due application of this event becomes when created from the interventions list: none (plan only, default), work_order, or project. Nothing is created on a schedule. |
work_generation_category_id | string | Work category for generated work orders - resolve with list_work_categories. Ignored unless work_generation is work_order. |
work_generation_priority | string | Priority for generated work orders. Ignored unless work_generation is work_order. |
update_infrastructure_lifecycle_event Update infrastructure lifecycle event
Update a lifecycle strategy event by ID. Editing re-confirms the cost (cost_reviewed_on is server-set). Set is_active false to disable an event without deleting it - projections recompute immediately. Requires infrastructure_lifecycle_events:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Lifecycle event ID |
cost_method | string | Costing: per unit (uses the feature's measured quantity and unit) or a fixed amount (default per_unit) |
cost_source | string | Provenance of the cost ("Engineering 2026", a tender reference) |
event_class | string | Event type - preventative maintenance or rehabilitation |
fixed_cost | number | Fixed cost (current dollars) |
impact_add_years | number | Years added (required when impact_method is add_years) |
impact_method | string | Effect: add years of life, or reset condition to a value |
impact_reset_to | integer | Condition after the event (required when impact_method is reset_condition) |
is_active | boolean | Disable/enable the event |
max_applications | integer | How many times the event may fire over a feature's life (default 1) |
min_years_between | number | Minimum years between firings of a recurring event (default 1) |
name | string | Event name |
sort_order | integer | Evaluation order within the strategy |
trigger_condition_max | integer | Upper bound of the trigger window - the event fires when projected condition falls to this |
trigger_condition_min | integer | Lower bound of the trigger window (default 0); a feature already below it has missed the event |
unit_cost | number | Cost per unit (current dollars, never indexed) |
work_generation | string | What a due application of this event becomes when created from the interventions list: none (plan only, default), work_order, or project. Nothing is created on a schedule. |
work_generation_category_id | string | Work category for generated work orders - resolve with list_work_categories. Ignored unless work_generation is work_order. |
work_generation_priority | string | Priority for generated work orders. Ignored unless work_generation is work_order. |
delete_infrastructure_lifecycle_event Delete infrastructure lifecycle event
Delete a lifecycle strategy event by ID. Projections recompute immediately; consider update with is_active=false to disable instead. Requires infrastructure_lifecycle_events:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Lifecycle event ID |
create_infrastructure_network Create infrastructure network
Create an infrastructure network - a named grouping of features bound to one feature class. Requires infrastructure_networks:write scope.
| Parameter | Type | Description |
|---|---|---|
feature_class * | string | Asset class code (must exist; resolve via list_infrastructure_feature_classes) |
name * | string | Network name (required) |
color_scheme | string | Display color scheme |
criticality | string | How strictly the network is held to its feature class's Level of Service targets: critical, high, medium or low. Unset is treated as medium; send null on update to clear it |
description | string | Description |
metadata | object | Free-form JSON metadata |
update_infrastructure_network Update infrastructure network
Update an existing infrastructure network by ID. Requires infrastructure_networks:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure network ID |
color_scheme | string | Display color scheme |
criticality | How strictly the network is held to its feature class's Level of Service targets: critical, high, medium or low. Unset is treated as medium; send null on update to clear it | |
description | string | Description |
feature_class | string | Asset class code |
metadata | object | Free-form JSON metadata |
name | string | Network name |
delete_infrastructure_network Delete infrastructure network
Delete an infrastructure network by ID. Cascades to all features in the network - confirm with the user before deleting. Requires infrastructure_networks:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure network ID |
create_infrastructure_asset Create infrastructure asset
Create an infrastructure asset (feature - segment or node). Geometry must be GeoJSON Point (for nodes) or LineString (for segments) in EPSG:4326; coordinates are [longitude, latitude]. `length_m`, `slope_pct`, and `risk_score` are computed server-side. Requires infrastructure_assets:write scope.
| Parameter | Type | Description |
|---|---|---|
feature_type * | string | "segment" (LineString) or "node" (Point) |
geometry * | GeoJSON geometry - Point for nodes, LineString for segments | |
network_id * | string | Infrastructure network ID (required) |
asset_type_id | string | Asset type ID |
building_id | string | Building ID |
condition_score | number | Condition score (0-100) |
consequence_of_failure_score | number | |
data_source | string | Data source |
depth_m | number | Depth (m) |
description | string | Description |
diameter_mm | number | Diameter (mm) |
environmental_impact | string | LOW, MEDIUM, HIGH, CRITICAL |
expected_lifetime_years | number | Expected lifetime (years) |
external_ids | object | Free-form external ID map |
feature_code | string | Feature ID - human-readable asset identifier, unique per tenant (typically the source GIS asset id) |
financial_impact | string | LOW, MEDIUM, HIGH, CRITICAL |
flow_direction | string | Flow direction |
from_feature_id | string | From-node feature ID (segments) |
from_invert_m | number | From-invert elevation (m) |
from_street | string | From street (segments) |
image_url | string | Image URL |
install_date | string | Install date (YYYY-MM-DD) |
lanes | integer | Lane count |
last_maintenance_date | string | Last maintenance date (YYYY-MM-DD) |
likelihood_of_failure_score | number | |
location_id | string | Location ID |
manufacturer_id | string | Manufacturer ID |
material | string | Material |
model | string | Model |
name | string | Feature name |
positional_accuracy_class | string | Positional accuracy class |
purchase_cost | number | Purchase cost |
purchase_cost_calculation_method | string | Cost calc method |
purchase_date | string | Purchase date (YYYY-MM-DD) |
qr_code | string | QR code |
quantity | number | Quantity |
regulatory_impact | string | LOW, MEDIUM, HIGH, CRITICAL |
reputation_impact | string | LOW, MEDIUM, HIGH, CRITICAL |
risk_factor | string | Risk factor: CRITICAL, HIGH, MEDIUM, LOW |
road_class | O. Reg. 239/02 road class 1-6 (1-2 arterial, 3-4 collector, 5-6 local) | |
safety_impact | string | LOW, MEDIUM, HIGH, CRITICAL |
salvage_value | number | Salvage value |
salvage_value_percentage | number | |
serial_number | string | Serial number |
service_impact | string | LOW, MEDIUM, HIGH, CRITICAL |
site_id | string | Site ID |
status_id | string | Asset status ID |
system_class_id | string | System class ID |
system_group_id | string | System group ID |
system_id | string | System ID |
to_feature_id | string | To-node feature ID (segments) |
to_invert_m | number | To-invert elevation (m) |
to_street | string | To street (segments) |
unit_of_measure | string | Unit of measure |
unit_replacement_value | number | Unit replacement value |
width_m | number | Width (m) |
update_infrastructure_asset Update infrastructure asset
Update an existing infrastructure asset (feature) by ID. To change geometry, provide a new GeoJSON Point/LineString matching the existing feature_type. Computed columns (length_m, slope_pct, risk_score) cannot be set. Requires infrastructure_assets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure asset ID |
asset_type_id | string | |
building_id | string | |
condition_score | number | |
consequence_of_failure_score | number | |
data_source | string | |
depth_m | number | |
description | string | |
diameter_mm | number | |
environmental_impact | string | |
expected_lifetime_years | number | |
external_ids | object | |
feature_code | string | |
financial_impact | string | |
flow_direction | string | |
from_feature_id | string | |
from_invert_m | number | |
from_street | string | |
geometry | Replacement GeoJSON geometry | |
image_url | string | |
install_date | string | |
lanes | integer | |
last_maintenance_date | string | |
likelihood_of_failure_score | number | |
location_id | string | |
manufacturer_id | string | |
material | string | |
model | string | |
name | string | |
positional_accuracy_class | string | |
purchase_cost | number | |
purchase_cost_calculation_method | string | |
purchase_date | string | |
qr_code | string | |
quantity | number | |
regulatory_impact | string | |
reputation_impact | string | |
risk_factor | string | |
road_class | O. Reg. 239/02 road class 1-6 (1-2 arterial, 3-4 collector, 5-6 local) | |
safety_impact | string | |
salvage_value | number | |
salvage_value_percentage | number | |
serial_number | string | |
service_impact | string | |
site_id | string | |
status_id | string | |
system_class_id | string | |
system_group_id | string | |
system_id | string | |
to_feature_id | string | |
to_invert_m | number | |
to_street | string | |
unit_of_measure | string | |
unit_replacement_value | number | |
width_m | number |
delete_infrastructure_asset Delete infrastructure asset
Soft-delete an infrastructure asset (feature) by ID (sets deleted_at). Requires infrastructure_assets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Infrastructure asset ID |
create_infrastructure_asset_inspection Create infrastructure asset inspection
Record an inspection against an infrastructure feature. Requires infrastructure_asset_inspections:write scope.
| Parameter | Type | Description |
|---|---|---|
feature_id * | string | Infrastructure asset (feature) ID (required) |
inspection_date * | string | Inspection date (YYYY-MM-DD, required) |
attachments | array | Attachment URLs/paths |
condition_score | number | Condition score (0-100) |
defects | object | Defect observations (JSON) |
inspector_id | string | Inspector user ID |
method | string | Inspection method (e.g. CCTV, visual) |
notes | string | Free-form notes |
update_infrastructure_asset_inspection Update infrastructure asset inspection
Update an existing infrastructure asset inspection by ID. Requires infrastructure_asset_inspections:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Inspection ID |
attachments | array | Attachment URLs/paths |
condition_score | number | Condition score |
defects | object | Defect observations |
inspection_date | string | Inspection date (YYYY-MM-DD) |
inspector_id | string | Inspector user ID |
method | string | Inspection method |
notes | string | Notes |
delete_infrastructure_asset_inspection Delete infrastructure asset inspection
Soft-delete an infrastructure asset inspection by ID. Requires infrastructure_asset_inspections:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Inspection ID |
create_asset_lifecycle_event Create asset lifecycle event
Create a facility lifecycle strategy event. Events attach to an asset-type SCOPE - exactly ONE of asset_type_id or asset_type_group_id - never to individual assets; an asset resolves its type's own strategy first, else its type group's. Replacement is NOT an event (it stays the renewal forecast + replacement value) - model the interventions BEFORE replacement: roof recoats, boiler retubes, overhauls. Resolve type ids with list_asset_types / list_asset_type_groups, and list existing events first to reuse a scope. Requires asset_lifecycle_events:write scope.
| Parameter | Type | Description |
|---|---|---|
event_class * | string | Event type - preventative maintenance or rehabilitation |
impact_method * | string | Effect: add years of life, or reset condition to a value |
name * | string | Event name (required, e.g. "Roof recoat") |
trigger_condition_max * | integer | Upper bound of the trigger window - the event fires when projected condition falls to this |
asset_type_group_id | string | Asset type group the scope applies to (exactly one of the two scope ids) |
asset_type_id | string | Asset type the strategy scope applies to (exactly one of the two scope ids) |
cost_source | string | Provenance of the cost ("Engineering 2026", a tender reference) |
fixed_cost | number | Fixed cost per application (current dollars, never indexed) |
impact_add_years | number | Years added (required when impact_method is add_years) |
impact_reset_to | integer | Condition after the event (required when impact_method is reset_condition) |
max_applications | integer | How many times the event may fire over an asset's life (default 1) |
min_years_between | number | Minimum years between firings of a recurring event (default 1) |
sort_order | integer | Evaluation order within the strategy |
trigger_condition_min | integer | Lower bound of the trigger window (default 0); an asset already below it has missed the event |
work_generation | string | What a due application of this event becomes when created from the interventions list: none (plan only, default), work_order, or project. Nothing is created on a schedule. |
work_generation_category_id | string | Work category for generated work orders - resolve with list_work_categories. Ignored unless work_generation is work_order. |
work_generation_priority | string | Priority for generated work orders. Ignored unless work_generation is work_order. |
update_asset_lifecycle_event Update asset lifecycle event
Update a facility lifecycle strategy event by ID. Editing re-confirms the cost (cost_reviewed_on is server-set). Set is_active false to disable an event without deleting it - projections recompute immediately. Requires asset_lifecycle_events:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Lifecycle event ID |
cost_source | string | Provenance of the cost ("Engineering 2026", a tender reference) |
event_class | string | Event type - preventative maintenance or rehabilitation |
fixed_cost | number | Fixed cost per application (current dollars, never indexed) |
impact_add_years | number | Years added (required when impact_method is add_years) |
impact_method | string | Effect: add years of life, or reset condition to a value |
impact_reset_to | integer | Condition after the event (required when impact_method is reset_condition) |
is_active | boolean | Disable/enable the event |
max_applications | integer | How many times the event may fire over an asset's life (default 1) |
min_years_between | number | Minimum years between firings of a recurring event (default 1) |
name | string | Event name |
sort_order | integer | Evaluation order within the strategy |
trigger_condition_max | integer | Upper bound of the trigger window - the event fires when projected condition falls to this |
trigger_condition_min | integer | Lower bound of the trigger window (default 0); an asset already below it has missed the event |
work_generation | string | What a due application of this event becomes when created from the interventions list: none (plan only, default), work_order, or project. Nothing is created on a schedule. |
work_generation_category_id | string | Work category for generated work orders - resolve with list_work_categories. Ignored unless work_generation is work_order. |
work_generation_priority | string | Priority for generated work orders. Ignored unless work_generation is work_order. |
delete_asset_lifecycle_event Delete asset lifecycle event
Delete a facility lifecycle strategy event by ID. Projections recompute immediately; consider update with is_active=false to disable instead. Requires asset_lifecycle_events:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Lifecycle event ID |
create_asset_betterment Create asset betterment
Record capital work that ALREADY extended a facility asset's life - an elevator modernization, a boiler retube, a major component replacement. Required: asset_id, occurred_on, and at least one of capitalized_amount or added_life_years (work that adds neither changes nothing and is rejected). The asset's net book value and remaining life re-base from occurred_on, and its purchase_date is NEVER changed - if a user asks to change an in-service date to reflect an overhaul, record this instead and say why. Use asset_lifecycle_events for work expected in future; use a condition assessment for what s…
| Parameter | Type | Description |
|---|---|---|
asset_id * | string | Asset the capital work was performed on (required) |
occurred_on * | string | Date the work went into service, YYYY-MM-DD (required). Not the invoice date - this is the date its value begins depreciating from. |
added_life_years | number | Extra service life the work bought, in years. Required unless capitalized_amount is given. |
asset_cost_id | string | The asset cost row holding the spend, so the money is not double-entered |
asset_lifecycle_event_id | string | The lifecycle strategy event this executed, if any |
capitalized_amount | number | Amount added to the asset value, in the organization currency (call get_organization_settings for currency_code). Required unless added_life_years is given. |
description | string | What was actually done |
project_id | string | The project that delivered it |
work_order_id | string | The work order that delivered it |
update_asset_betterment Update asset betterment
Update a betterment by ID. The asset it belongs to cannot be changed - delete and re-create to move one. The row must still add either capital or life after the update. Requires asset_betterments:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Betterment ID |
added_life_years | number | Extra service life the work bought, in years |
capitalized_amount | number | Amount added to the asset value |
description | string | What was actually done |
occurred_on | string | Date the work went into service, YYYY-MM-DD |
delete_asset_betterment Delete asset betterment
Delete a betterment by ID. The asset's net book value and remaining life revert to what they were without it. Requires asset_betterments:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Betterment ID |
create_asset_condition_assessment Create asset condition assessment
Record a point-in-time condition assessment against an asset. Requires asset_condition_assessments:write scope. Call list_assets first to resolve asset_id.
| Parameter | Type | Description |
|---|---|---|
assessed_on * | string | Assessment date (YYYY-MM-DD, required; today or earlier) |
asset_id * | string | Asset ID (required) |
assessor_id | string | Assessor user ID |
condition_score | integer | Condition score (0-100) |
defects | object | Structured defect findings (JSON) |
method | string | Assessment method |
notes | string | Free-form notes |
replacement_cost | number | Current replacement value / CRV at assessment time |
update_purchase_cost | boolean | Default OFF - omit unless the user explicitly asks to update/overwrite the asset's purchase cost, or says their org treats purchase cost as the current replacement value. Recording an assessment does… |
update_asset_condition_assessment Update asset condition assessment
Update an existing asset condition assessment by ID. Requires asset_condition_assessments:write scope. Note: the purchase-cost writeback is create-only and cannot be triggered by an update.
| Parameter | Type | Description |
|---|---|---|
id * | string | Assessment ID |
assessed_on | string | Assessment date (YYYY-MM-DD, today or earlier) |
assessor_id | string | Assessor user ID |
condition_score | integer | Condition score (0-100) |
defects | object | Structured defect findings (JSON) |
method | string | Assessment method |
notes | string | Free-form notes |
replacement_cost | number | Current replacement value / CRV |
delete_asset_condition_assessment Delete asset condition assessment
Soft-delete an asset condition assessment by ID. Requires asset_condition_assessments:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Assessment ID |
create_infrastructure_asset_cost Create infrastructure asset cost
Record a cost against an infrastructure feature. work_order_number is derived server-side from work_order_id; do not set it. Requires infrastructure_asset_costs:write scope.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Cost amount (required) |
category * | string | Cost category (required) |
cost_date * | string | Cost date (YYYY-MM-DD, required) |
feature_id * | string | Infrastructure feature ID (required) |
invoice_number | string | Invoice number |
po_number | string | PO number |
purchase_order_id | string | Purchase order that paid this cost - resolve via list_purchase_orders. Counts against the order's remaining balance unless the cost belongs to a work order. |
work_order_id | string | Linked work order ID |
update_infrastructure_asset_cost Update infrastructure asset cost
Update an infrastructure asset cost by ID. Requires infrastructure_asset_costs:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Cost ID |
amount | number | Cost amount |
category | string | Cost category |
cost_date | string | Cost date (YYYY-MM-DD) |
invoice_number | string | Invoice number |
po_number | string | PO number |
purchase_order_id | Purchase order that paid this cost - resolve via list_purchase_orders. Counts against the order's remaining balance unless the cost belongs to a work order; null clears it. | |
work_order_id | string | Linked work order ID |
delete_infrastructure_asset_cost Delete infrastructure asset cost
Delete an infrastructure asset cost by ID. Requires infrastructure_asset_costs:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Cost ID |
create_infrastructure_asset_part Create infrastructure asset part
Associate a part with an infrastructure feature. The (feature_id, part_id) pair must be unique - a duplicate returns 409. Requires infrastructure_asset_parts:write scope.
| Parameter | Type | Description |
|---|---|---|
feature_id * | string | Infrastructure feature ID (required) |
part_id * | string | Part ID (required; resolve via list_parts) |
quantity | number | Design/installed quantity (default 1) |
update_infrastructure_asset_part Update infrastructure asset part
Update an infrastructure asset part association by ID. Requires infrastructure_asset_parts:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Association ID |
feature_id | string | Infrastructure feature ID |
part_id | string | Part ID |
quantity | number | Design/installed quantity |
delete_infrastructure_asset_part Delete infrastructure asset part
Delete an infrastructure asset part association by ID. Requires infrastructure_asset_parts:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Association ID |
create_infrastructure_asset_document Create infrastructure asset document
Attach document metadata to an infrastructure feature. Upload the file bytes first via create_upload_url, then pass the returned file_path here. Requires infrastructure_asset_documents:write scope.
| Parameter | Type | Description |
|---|---|---|
feature_id * | string | Infrastructure feature ID (required) |
file_path * | string | Storage path from create_upload_url (required) |
name * | string | Document name (required) |
category | string | Document category |
description | string | Description |
file_size | number | File size in bytes |
file_type | string | MIME type |
update_infrastructure_asset_document Update infrastructure asset document
Update infrastructure asset document metadata by ID. Requires infrastructure_asset_documents:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Document ID |
category | string | Document category |
description | string | Description |
file_path | string | Storage path |
file_size | number | File size in bytes |
file_type | string | MIME type |
name | string | Document name |
delete_infrastructure_asset_document Delete infrastructure asset document
Delete an infrastructure asset document by ID. Requires infrastructure_asset_documents:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Document ID |
create_infrastructure_asset_comment Create infrastructure asset comment
Add a comment to an infrastructure feature. The author is attributed to the API key automatically; do not pass user_id. Requires infrastructure_asset_comments:write scope.
| Parameter | Type | Description |
|---|---|---|
comment * | string | Comment text (required) |
feature_id * | string | Infrastructure feature ID (required) |
update_infrastructure_asset_comment Update infrastructure asset comment
Update an infrastructure asset comment by ID. Requires infrastructure_asset_comments:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Comment ID |
comment | string | Comment text |
delete_infrastructure_asset_comment Delete infrastructure asset comment
Delete an infrastructure asset comment by ID. Requires infrastructure_asset_comments:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Comment ID |
create_infrastructure_zone Create infrastructure zone
Create an operational hydraulic boundary (pressure zone, DMA, sewershed, etc.). boundary is a GeoJSON Polygon, or a MultiPolygon when the area comes in separate pieces. (network_id, name) must be unique. Requires infrastructure_zones:write scope.
| Parameter | Type | Description |
|---|---|---|
boundary * | GeoJSON Polygon or MultiPolygon (EPSG:4326). Each ring is closed; coordinates are [lon, lat]. Use MultiPolygon for a boundary in separate pieces - an area split by a rail corridor, or one containing a… | |
kind * | string | Zone kind (required) |
name * | string | Zone name (required) |
network_id * | string | Infrastructure network ID (required) |
code | string | Optional short code (e.g. "PZ-04") |
notes | string | Free-form notes |
update_infrastructure_zone Update infrastructure zone
Update an infrastructure zone by ID. Pass boundary as a GeoJSON Polygon or MultiPolygon to replace the geometry. Requires infrastructure_zones:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Zone ID |
boundary | GeoJSON Polygon or MultiPolygon (EPSG:4326). Each ring is closed; coordinates are [lon, lat]. Use MultiPolygon for a boundary in separate pieces - an area split by a rail corridor, or one containing a… | |
code | string | Optional short code |
kind | string | Zone kind |
name | string | Zone name |
network_id | string | Infrastructure network ID |
notes | string | Free-form notes |
delete_infrastructure_zone Delete infrastructure zone
Delete an infrastructure zone by ID. Requires infrastructure_zones:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Zone ID |
create_project_infrastructure_asset Create project infrastructure asset
Link a project to an infrastructure feature. The (project_id, feature_id) pair must be unique - a duplicate returns 409. Requires project_infrastructure_assets:write scope.
| Parameter | Type | Description |
|---|---|---|
feature_id * | string | Infrastructure feature ID (required) |
project_id * | string | Project ID (required) |
notes | string | Free-form notes |
update_project_infrastructure_asset Update project infrastructure asset
Update a project ↔ infrastructure feature link by ID. Requires project_infrastructure_assets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Link ID |
feature_id | string | Infrastructure feature ID |
notes | string | Free-form notes |
project_id | string | Project ID |
delete_project_infrastructure_asset Delete project infrastructure asset
Delete a project ↔ infrastructure feature link by ID. Requires project_infrastructure_assets:write scope.
| Parameter | Type | Description |
|---|---|---|
id * | string | Link ID |
bulk_update Bulk update
Update multiple records of a resource type in one API call (max 100). Each item must include an "id" field (UUID). Each item is processed independently - one failure does not affect others. Returns per-item results. Requires {resource}:write scope. Counts as 1 request for rate limiting.
| Parameter | Type | Description |
|---|---|---|
items * | array | Array of objects to update (max 100). Each must include an "id" field (UUID) plus fields to change. |
resource * | string | Resource type (e.g. "assets", "work-orders") |
show_site_fci_trend Show site FCI trend
Show one site’s Facility Condition Index (FCI) history as a chart, in clients that render MCP Apps; other clients get the same summary as text. FCI is deferred renewal cost divided by current replacement value, a fraction where LOWER is healthier: good below 5%, fair 5-10%, poor 10% and above. It is not a 0-100 condition score. Resolve site_id with list_sites first.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | Site ID (required). Get it from list_sites. |
days | integer | How many days back to chart. Default 365. |