> ## Documentation Index
> Fetch the complete documentation index at: https://kb.manage.management/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Tools & Schemas Reference

> Technical reference for all 12 read-only and draft-write tools exposed by the Manage.Management Remote MCP Server.

**Connecting Claude via Manage.Management Remote MCP to match 14 supplier PDFs across blocks and stage a human-reviewed draft invoice batch**

The Manage.Management Remote MCP Server (`https://app.manage.management/mcp`) exposes **12 curated, tenant-isolated tools** over JSON-RPC 2.0 Streamable HTTP (`POST` with `Content-Type: application/json`, supporting MCP protocol versions `2025-03-26`, `2025-06-18`, and `2025-11-25`).

All monetary amounts returned or accepted by MCP tools use **GBP integer pence** alongside human-readable formatting, so floating-point rounding errors can never enter financial workflows.

***

## Rate & payload limits

| Limit | Value |
| - | - |
| Maximum HTTP request body | **256 KB** |
| Maximum JSON-RPC response payload | **64 KB** |
| Per-user sliding window | **60 requests / minute** |
| Per-portfolio sliding window | **200 requests / minute** |
| `create_draft_invoice_batch` sliding window | **10 batch calls / hour / portfolio** |
| Max invoices per `create_draft_invoice_batch` | **100 invoices** |
| Max attached invoice file size (signed upload) | **10 MB** (`application/pdf`, `image/png`, `image/jpeg`, `image/webp`) |
| Max inline `base64` attachment size | **176 KB** |

***

## Read tools (`mcp:read`)

Available when the portfolio policy is **Read-only intelligence** or **Read + Draft Writes**.

> [accordion] 1. list\_portfolio\_buildings
>
> Returns paginated active buildings in the authenticated `Portfolio Admin`'s portfolio (`max 50` per call).
>
> * **Returns**: `id`, `name`, `unit_count`, `status`, pagination cursor.

> [accordion] 2. get\_portfolio\_overview
>
> Returns pre-aggregated portfolio KPIs across active buildings.
>
> * **Privacy & ledger safety**: Isolates verified current unit owners only and excludes all resident personal contact data.

> [accordion] 3. get\_portfolio\_arrears\_summary
>
> Returns verified current-owner service charge arrears ageing in integer pence (`GBP`).
>
> * **MRI owner isolation**: Units flagged `mri_owner_ambiguous = true` or historical `Assignor` / terminated accounts are strictly excluded and never summed or guessed.

> [accordion] 4. get\_building\_budget\_vs\_actual
>
> Returns schedule-level budget vs actual expenditure for a specified `building_id` and `financial_year` in integer pence and GBP.
>
> * **Data honesty**: Unrecorded actuals return `null` rather than `0`, distinguishing unposted actuals from zero spend.

> [accordion] 5. list\_portfolio\_suppliers
>
> Lists active suppliers in the portfolio (`id`, `name`, `category`, `vat_number`).
>
> * **Security boundary**: Supplier bank sort codes, account numbers, and Vault secret IDs are never returned.

> [accordion] 6. list\_building\_schedules
>
> Lists active `service_charge_schedules` (`id`, `name`, `code`, `apportionment_basis`) on a building together with the supported RICS expense account code range (`5000`–`5800`) required when staging draft invoices.

> [accordion] 7. get\_portfolio\_compliance\_status
>
> Returns statutory compliance due dates across fire risk assessments, external wall systems, lift LOLER checks, gas safety, electrical (EICR), and buildings insurance for the whole portfolio or a single `building_id`.

> [accordion] 8. list\_building\_issues\_and\_works
>
> Returns open building-scope `issues` and `work_orders` summaries for a `building_id`.
>
> * **Untrusted content & privacy**: Resident names, emails, and phone numbers are stripped, and free-text issue descriptions are wrapped as untrusted data to defend against indirect prompt injection.

> [accordion] 9. list\_building\_documents
>
> Lists building-scope `document_repository` metadata (`id`, `title`, `category`, `mime_type`, `file_size`, `expiry_date`, `created_at`) where `access_level` is `public`, `building`, or `directors_only`.
>
> * **Security boundary**: Returns metadata only — never raw document text or storage download URLs.

***

## Draft-write tools (`mcp:draft_write`)

Available **only** when a `Portfolio Admin` explicitly selects **Read + Draft Writes** in **Settings → Integrations → AI Assistants (MCP)** and grants `mcp:draft_write` during OAuth consent. Draft-write tools write exclusively to isolated staging records and require human verification in the web app.

### 10. `create_draft_invoice_batch`

Stages **1 to 100** draft supplier invoices in `mcp_draft_invoice_batches`.

* **Required inputs**:
  * `idempotency_key` (prevents duplicate batches on network retry)
  * `invoices` array (`1..100` items), each specifying:
    * `building_id` (must belong to the authenticated portfolio)
    * `supplier_name` and optional portfolio `supplier_id`
    * `invoice_number`, `invoice_date`, optional `due_date` and `incurred_on`
    * `currency`: `'GBP'`
    * `net_amount_pence`, `vat_amount_pence`, `gross_amount_pence` (strictly validated so `gross_amount_pence = net_amount_pence + vat_amount_pence`)
    * `expense_account_code`: active RICS expense nominal code (`5000`–`5800`)
    * optional `schedule_id` (validated against the building's active schedules)
    * optional `file` metadata (`filename`, `mime_type`, `byte_size`) to request a 2-hour single-use signed `PUT` upload URL in the `invoice-draft-uploads` bucket
* **Returns**: `batch_id`, per-item staging IDs, `duplicate_warning` flags, signed upload instructions (when requested), and `review_url` (`https://app.manage.management/management/money/bills/batches/<batch_id>`).

### 11. `attach_draft_invoice_file`

Attaches the source invoice document to a staged draft invoice item so it passes the mandatory file gate during human review.

* **Supported MIME types**: `application/pdf`, `image/png`, `image/jpeg`, `image/webp`
* **Upload modes**:
  1. **Signed upload completion** (up to **10 MB**): Upload bytes via `PUT` to the single-use signed URL, then call `attach_draft_invoice_file` with the uploaded path.
  2. **Mint a fresh signed URL**: Pass `request_upload: true` with file metadata if an earlier upload URL expired.
  3. **Inline base64** (small receipts/invoices up to **176 KB**): Pass base64 content directly within the JSON-RPC call.

### 12. `create_draft_works_order`

Stages an idempotent draft contractor instruction (`status = 'draft'`, `source_system = 'mcp'`, `work_order_number = 'MCP-...'`) linked to a portfolio `building_id` (and optional `issue_id` / `supplier_id`).

* **Human dispatch required**: Draft works orders are **never** emailed or dispatched to contractors automatically. The tool returns `review_url` (`https://app.manage.management/management/works-orders?buildingId=<id>&workOrderId=<id>`) for staff review and dispatch.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.