---
description: Use when the user asks to read or change RTPT / R³ work (projects, parcels, plans, takanon, layers, pictures, balance) through the rtpt MCP tools
alwaysApply: false
---
<!-- GENERATED from packages/cli/registry.json by scripts/cli-sync.mjs — do not edit by hand. -->
# RTPT (R³) — instructions for AI tools

RTPT (by R³, https://rcube.cloud) builds tools for architecture offices: MIND (projects), SITE (parcels, plans, takanon), CUBE (3D), PIXL (pictures), SHOW, GRID, CNCS and LEXS. The `rtpt` MCP server lets you read and change the person's RTPT work as that person, with their own sign-in and their own קיובים balance. 285 commands (the list of 2026-12-01).

## Sign-in
- Install, connect and sign in from scratch: follow https://rcube.cloud/ai/setup.md. The person may paste one Hebrew sentence that points there (it names https://rcube.cloud, or develop.rcube.cloud for the R³ team).
- Sign-in is a code sent to the person's email. Either they run `node ~/.r3/r3.mjs login` in a terminal and type it, or you ask them for their email, run `node ~/.r3/r3.mjs login <email> --send`, ask them for the code they received, and run `node ~/.r3/r3.mjs login <email> --code <code>`. Put the email in quotes; the code is digits only. If `--send` exits 4, that email has no account: tell them to open one on the site (it includes the terms) and do not run `--code`. Never read their email yourself, and never print, copy or store the session token (it stays in ~/.r3/config.json).
- The MCP server reads the session again on every call: after a new login the next call works, no restart.

## Money and safety — always
- Commands marked `$` cost קיובים (kiyuvim, RTPT credits, paid by the person or their office). Run the free price command first (`command: 'list'` names it as "price first: …"), tell the person the price, and call with `confirm: true` only after a clear yes.
- Commands marked `!` delete or overwrite the person's real work, which colleagues see too. Say in one sentence what will be removed or replaced, ask, and call with `confirm: true` only after a clear yes. Before an overwrite, keep the current answer so it can be put back.
- Never pass `confirm: true` on your own judgement. Without it the server answers "Not run": that is the guard working, not an error to work around.
- `status: 402` = not enough קיובים: tell the person to buy a pack at https://rcube.cloud/#account and do not retry. `429` = more than 120 requests a minute: wait 60 seconds. `401` = signed out: ask the person to run the login line again.

## The MCP tools
One tool per RTPT tool family. Arguments: `command` (a name from the tool's description, without its `$` / `!` mark), `params` (fills `<project_id>` and the other placeholders in the path; other keys go to the query string), `body` (JSON for POST / PUT / PATCH), `confirm`, `explain: true` (the route, an example body and notes, without running it).

| tool | what | commands | `$` | `!` |
|---|---|---|---|---|
| `core` | the account: who is signed in, balance, office, usage, open a tool window in the person's browser | 12 | 0 | 0 |
| `mind` | projects: place and parcel, plans and rights, files, notes, tasks, the place pack, display layers shared by SITE and CUBE | 64 | 2 | 10 |
| `site` | parcels and plans (תב״ע): locate, plans on a place, plan card and documents, takanon reading, site analyses, statistics | 51 | 3 | 5 |
| `pixl` | pictures: upload, render images and videos, upscale, prices and usage | 58 | 2 | 10 |
| `cube` | the server side of CUBE: saved models, OSM and SITE layers, materials, 3D library elements, heights, placing | 65 | 4 | 15 |
| `cncs` | CNCS: design-picture models and prices | 1 | 0 | 0 |
| `show` | SHOW presentations: models, slide price, saved decks and sources | 9 | 0 | 2 |
| `grid` | GRID facade projects and saved results | 8 | 0 | 2 |
| `lexs` | LEXS planning law: sample questions, news, prices, conversations (production only) | 14 | 0 | 0 |

## Finding the right command
- `command: 'list'` on a tool answers every command with what it does (in Hebrew) and its price and ask-first marks.
- `explain: true` shows one command's method, path, example body and notes.
- Every command in one file: https://rcube.cloud/llms-full.txt. The person's guide (Hebrew): https://rcube.cloud/docs/cli.
- Project ids come from `mind` → `core.projects` (24 hex characters). Take ids from answers, never guess them.

## Examples
- "מה היתרה שלי?" → tool `core`, command `balance`.
- "Which plans apply to gush 6904 helka 27?" → tool `site`, command `plans`, body `{"gush":6904,"helka":27}`.
- "Read the takanon of plan 507-0880112" → `site` `takanon_price` with params `{"number":"507-0880112"}` → tell the person the קיובים → after a yes, `site` `takanon_read` with body `{"number":"507-0880112"}` and `confirm: true`.
- "Remove this layer from the project" → `mind` `layers` to find the id → say which layer goes → after a yes, `mind` `layers_remove` with params `{project_id, display_id}` and `confirm: true`.
- After a change, `core` `open` (body `{"tool":"site","projectId":"…"}`) shows it in the RTPT window the person has open in the browser.

## Without MCP
`node ~/.r3/r3.mjs call <METHOD> <path> [json] --json` calls the same routes (the paths are in llms-full.txt). Exit codes: 0 done, 1 error, 2 unknown command, 3 not enough קיובים, 4 `login --send` found no account. Uploads (`--form name=@file`) and binary answers (`--out file`) work only this way, not over MCP.

## Not possible from here
Drawing inside an open SITE or CUBE window, the binuy annex and the AutoCAD plugin: the person opens those in RTPT (https://rcube.cloud/core).
