# Rolin: full reference for agents > Rolin is an electric-vehicle charging app for Colombia: find charge points on a map, start and stop charging on real OCPP chargers, pay from a prepaid wallet in pesos (COP), and redeem partner offers. This file documents everything an AI agent can do with Rolin. Short version: [llms.txt](https://rolin.com.co/llms.txt). ## Concepts - **Charge point (station)**: a place with one or more **connectors** (CCS2, Type 2, CHAdeMO, ...). Each connector has a power in kW and a price per kWh in COP. Stations wired to a real charger speak OCPP; their status is live. - **Charging session**: `pending` (start sent to a real charger, waiting for the cable), `active` (energy flowing), `completed` (billed) or `cancelled`. A driver has at most one open session. - **Wallet**: prepaid balance in COP. Energy is billed when a session ends, even if that takes the balance below zero. Top-ups are paid by card or PSE through Bold; an agent starts a top-up and gets a payment link the driver must open. - **Offers**: partner discounts. Premium-only offers need Rolin Premium. - Money in tool results is `{ amount, currency: "COP", formatted }`. Times are ISO 8601. ## Connecting 1. Call the MCP endpoint without a token. You get `401` with `WWW-Authenticate: Bearer resource_metadata="..."`. 2. Read the protected resource metadata, then `https://rolin.com.co/.well-known/oauth-authorization-server`. 3. Register at `https://rolin.com.co/oauth/register` (RFC 7591), with `token_endpoint_auth_method: "none"` for public clients. 4. Send the user to `/oauth/authorize` (authorization code + PKCE S256). They sign in to Rolin and approve. 5. Exchange the code at `/oauth/token`, call the MCP server with `Authorization: Bearer `, and refresh when it expires (1 hour). Details: [auth.md](https://rolin.com.co/auth.md). Claude Code: `claude mcp add --transport http rolin https://rolin.com.co/mcp` Other clients: add a remote MCP server with URL `https://rolin.com.co/mcp`. ## Rolin for drivers — `https://rolin.com.co/mcp` Act on the signed-in driver's own Rolin account: find chargers, start and stop charging, check sessions, wallet balance and top-ups, and redeem partner offers. OAuth scope: `driver`. ### `find_charge_points` Search Rolin charge points. Give latitude and longitude to get the nearest ones sorted by distance (within radius_km), or a text query to match name, address, city or operator. Returns stations with their connectors, power, price per kWh and whether each connector can be started now. Arguments: - `latitude` (number): Search centre latitude - `longitude` (number): Search centre longitude - `radius_km` (number) - `query` (string): Text to match, e.g. a city or station name - `available_only` (boolean): Only stations with a free connector - `limit` (integer) ### `get_charge_point` Full details of one charge point: address, opening, live status, every connector with its id (needed by start_charging), power and price, and the driver's open session there if any. Arguments: - `charge_point_id` (integer, required) ### `start_charging` Start charging on a connector (ids come from find_charge_points or get_charge_point). The energy is billed to the driver's wallet when the session ends, so confirm with the driver first. On a real charger the session is 'pending' until the cable is plugged in; poll get_charging_status. The driver must be within 50 m of the station: pass their latitude/longitude if you know them (otherwise their car's position is used). When they're far, use reserve_connector instead. Arguments: - `connector_id` (integer, required) - `latitude` (number): The driver's current latitude - `longitude` (number): The driver's current longitude ### `stop_charging` Stop the driver's open charging session (or the one with session_id). A pending start is cancelled at no cost; on a real charger the stop is requested and billed when the charger reports the final meter reading; otherwise the session is closed and billed now. Arguments: - `session_id` (integer): Defaults to the open session ### `get_charging_status` The driver's open charging session right now (pending or active) with live energy, power, battery percentage and running cost, or null when not charging. No arguments. ### `list_charging_sessions` The driver's charging sessions, newest first, with energy and cost, plus lifetime totals. Arguments: - `status` (string) One of: pending, active, completed, cancelled. - `limit` (integer) ### `get_wallet` The driver's prepaid wallet: balance in COP (it can be negative: charging is billed even into a negative balance), latest movements, and pending top-up payments. Arguments: - `limit` (integer) ### `top_up_wallet` Start a wallet top-up for one of the fixed amounts. Returns a payment link: the driver must open it and pay; the balance goes up once the payment is confirmed (check with get_wallet). Confirm the amount with the driver first. Arguments: - `amount` (integer, required): COP One of: 20000, 50000, 100000, 200000. ### `list_offers` Discounts from Rolin partners. Shows which ones the driver can redeem (premium-only offers need Rolin Premium) and the codes they already have. Arguments: - `category` (string) One of: food, apparel, parts, services, entertainment. ### `redeem_offer` Get the driver's discount code for a partner offer. Free; redeeming twice returns the same code. Arguments: - `offer_id` (integer, required) ### `get_profile` Who the agent is acting for: name, email, language, Rolin Premium status, RFID cards, and lifetime charging totals. No arguments. ### `update_profile` Change the driver's display name or app language (es or en). Email and password can only be changed in the app. Arguments: - `name` (string) - `language` (string) One of: es, en. ### `list_vehicle_models` The electric car models sold in Colombia that can be added to the garage by model_key, with battery size, peak AC/DC charging power and the plugs they take. Filter with a text query (e.g. 'tesla model y' or 'byd'). brand_api says whether the brand's official API can read the battery. Arguments: - `query` (string) ### `list_vehicles` The driver's cars, their own and ones shared with them: specs, color, plugs, the driver's role (owner or partner), who else shares it, which one is primary (the map filters for it and new charging sessions are recorded against it) and, for cars linked to a brand account, the last battery level, range and charging state read from the brand with when it was read. No arguments. ### `add_vehicle` Add a car to the driver's garage. Prefer model_key from list_vehicle_models, which fills in the specs; for an unlisted car give make, model, connector_types and, for charge estimates, battery_kwh and max power. The first car becomes primary. Linking a brand account (to read the battery) can only be done by the driver in the app. Arguments: - `model_key` (string) - `nickname` (string) - `plate` (string) - `color` (string) One of: white, silver, gray, black, red, blue, green, yellow, orange, brown, beige, purple. - `body_type` (string): Unlisted cars only One of: suv, sedan, hatchback, city. - `make` (string) - `model` (string) - `battery_kwh` (number) - `max_ac_kw` (number) - `max_dc_kw` (number) - `connector_types` (array) - `primary` (boolean): Make it the primary car ### `update_vehicle` Change a car in the garage: nickname, plate, color, its model (model_key from list_vehicle_models), or make it the driver's primary car. Only owners can change the car; a partner can only make it their primary. Specs of a listed model can't be edited. Arguments: - `vehicle_id` (integer, required) - `nickname` (string) - `plate` (string) - `color` (string) One of: white, silver, gray, black, red, blue, green, yellow, orange, brown, beige, purple. - `model_key` (string) - `primary` (boolean): true makes it the primary car ### `remove_vehicle` Remove a car from the driver's garage. On a shared car the others keep it; if the driver is its only owner, the car is deleted for everyone who shares it. Past charging sessions keep their history. If it was the primary car, the oldest remaining one becomes primary. Confirm first. Arguments: - `vehicle_id` (integer, required) ### `get_vehicle_battery` Read a linked car's battery level, range (km) and charging state from its brand (Tesla, Volvo). A reading younger than 10 minutes is returned as is. Only for cars whose brand account the driver connected in the app; other cars have no live battery. Arguments: - `vehicle_id` (integer): Defaults to the primary car ### `estimate_charge` Estimate time, energy and cost (COP) to charge a car from one battery level to another on a connector, using the lower of the car's and the connector's power. A rough guide: real charging slows near the top. Defaults: the primary car, its last known level (or 20 %) to 80 %. Arguments: - `connector_id` (integer, required) - `vehicle_id` (integer) - `from_percent` (integer) - `to_percent` (integer) ### `share_vehicle` Email someone an invitation to share one of the driver's cars, as partner (sees the car and its battery, charges with it) or owner (also edits it and invites others). Only owners can share. This emails a third party: confirm the address and role with the driver first. The person accepts from the email with a Rolin account using that address. Arguments: - `vehicle_id` (integer, required) - `email` (string, required) - `role` (string) One of: owner, partner. ### `reserve_connector` Hold a free connector for the driver for 15 minutes while they drive there; nobody else can start on it meanwhile. Free for Premium members; others may pay a fee from the wallet (see `fee` in the result; free for now), given back when they start charging on it. Confirm with the driver first. Arguments: - `connector_id` (integer, required) ### `cancel_reservation` Cancel the driver's active connector reservation. A paid reservation's fee is not refunded. No arguments. ## Rolin for operators — `https://rolin.com.co/admin/mcp` Operate Rolin as a staff member: metrics, users, wallets, premium, charge points, live charging sessions, payments, OCPP traffic and the audit log. Admin accounts only; every change is written to the audit log. OAuth scope: `admin`. ### `get_metrics` Business numbers from the admin dashboard for the last N days: signups, active users, completed sessions, energy, charging/subscription revenue and wallet top-ups (COP integers, each with the figure for the previous equal period), redemptions, premium members now, the signup-to-premium funnel, top charge points and offers. The period is rounded to the dashboard's 7, 30 or 90 days; days_applied says which was used. Arguments: - `days` (integer): Period length in days ### `search_users` Find users by email or name (partial match), newest first. Filter to premium members, admins or archived (soft-deleted) accounts. Returns id, email, name, premium and wallet balance; use get_user with an id for full detail. Arguments: - `query` (string): Part of an email or name - `filter` (string) One of: all, premium, admins, archived. - `limit` (integer) ### `get_user` Full picture of one user: profile, premium status, wallet balance, the last 20 ledger entries, last 10 charging sessions, RFID cards, offer redemptions and recent admin actions taken on the user or their wallet. Use after search_users. Arguments: - `user_id` (integer, required): User id ### `list_charge_points` List stations (including test-mode ones) with status, whether each OCPP charger is online, last heartbeat time and connectors. Match a text query against name, city or operator. Archived stations are hidden unless include_archived is true. Use get_charge_point for one station's detail. Arguments: - `query` (string) - `status` (string) One of: available, occupied, offline. - `include_archived` (boolean) - `limit` (integer) ### `get_charge_point` Everything about one station: location, status, OCPP identity, online state, last heartbeat, vendor/model/serial/firmware, test mode, notes, archived flag, each connector with its OCPP status and error code, and the sessions currently open there. Use to diagnose a charger. Arguments: - `charge_point_id` (integer, required) ### `list_ocpp_messages` The raw OCPP 1.6J wire log for one charger, newest first: direction (in = from charger, out = from Rolin), kind (call/result/error), action, unique_id and JSON payload. Use to debug why a charger is not starting or stopping a charge. Arguments: - `charge_point_id` (integer, required) - `limit` (integer) ### `list_charging_sessions` Charging sessions across all users, newest first, with energy, cost, status and the driver. Filter by status, user or station; use status pending/active to find sessions that may be stuck, then stop_charging_session. Arguments: - `status` (string) One of: pending, active, completed, cancelled. - `user_id` (integer) - `charge_point_id` (integer) - `limit` (integer) ### `list_payments` Wallet top-up payments, newest first, with amount, status, provider (bold or simulated), card details, failure reason and the user. Filter by status or user. Use get_payment with the id for one. Arguments: - `status` (string) One of: pending, paid, rejected, expired, voided, needs_review. - `user_id` (integer) - `limit` (integer) ### `get_payment` One payment by its public id (as returned by list_payments): amount, status, provider, test flag, method, card, failure reason, timestamps and the user. If it is still pending, refresh_payment asks the provider for the latest state. Arguments: - `payment_id` (string, required): Payment public id ### `list_audit_log` The admin audit trail, newest first: who did what to which record and when, with details (via: mcp marks changes made through this server). Optionally filter by exact action name, e.g. wallet.adjust, user.grant_premium, charging_session.stop. Arguments: - `limit` (integer) - `action` (string): Exact action name ### `adjust_wallet` Add (positive) or remove (negative) pesos from a user's wallet as a manual correction, recorded in the ledger and audit log. The amount is whole COP, non-zero, at most 2,000,000 in either direction, and cannot take the balance below zero. Returns the new balance and ledger entry id. Arguments: - `user_id` (integer, required) - `amount` (integer, required): COP to add (positive) or remove (negative); not zero - `reason` (string, required): Why this change is being made. Recorded in the audit log. ### `grant_premium` Give a user premium for a number of days (1 to 365), extending any premium they already have. Returns the new expiry. Arguments: - `user_id` (integer, required) - `days` (integer, required) - `reason` (string, required): Why this change is being made. Recorded in the audit log. ### `revoke_premium` End a user's premium immediately. Returns the expiry that was removed. Arguments: - `user_id` (integer, required) - `reason` (string, required): Why this change is being made. Recorded in the audit log. ### `archive_user` Archive (soft-delete) a user: they are signed out and cannot sign in again until restored. Their history is kept and restore_user undoes it. You cannot archive your own account. Arguments: - `user_id` (integer, required) - `reason` (string, required): Why this change is being made. Recorded in the audit log. ### `restore_user` Bring an archived user back so they can sign in again. Arguments: - `user_id` (integer, required) - `reason` (string, required): Why this change is being made. Recorded in the audit log. ### `stop_charging_session` Stop a pending or active session on a real (OCPP) charger for a driver who cannot. A pending request is cancelled; an online charger is told to end the transaction (the session finishes when it confirms); an unreachable charger has the session closed here and billed for the last meter reading received (forced_close true). Returns the resulting status. Arguments: - `session_id` (integer, required) - `reason` (string, required): Why this change is being made. Recorded in the audit log. ### `refresh_payment` Ask the payment provider for the current state of a pending payment now, instead of waiting for the webhook or poller; a paid result credits the wallet. Returns the payment after the check. Arguments: - `payment_id` (string, required): Payment public id - `reason` (string, required): Why this change is being made. Recorded in the audit log. ### `update_charge_point` Edit a station's name, operator, address, city, notes, 24h flag or test mode. Status can only be set by hand on non-OCPP stations; on OCPP chargers it follows the connectors. Send only the fields to change. Returns the fields that actually changed. Arguments: - `charge_point_id` (integer, required) - `name` (string) - `operator` (string) - `address` (string) - `city` (string) - `notes` (string) - `status` (string) One of: available, occupied, offline. - `open_24h` (boolean) - `test_mode` (boolean): Test stations are hidden from non-admin drivers - `reason` (string, required): Why this change is being made. Recorded in the audit log. ## A2A agent — `https://rolin.com.co/a2a` JSON-RPC 2.0, method `message/send` (A2A 0.3). Send a text part; the reply is an agent message answering from the driver's account (balance, chargers, sessions, prices). Same bearer token as the driver MCP server (scope `driver`). Card: [agent-card.json](https://rolin.com.co/.well-known/agent-card.json). ## Content use robots.txt states `Content-Signal: search=yes, ai-input=yes, ai-train=no`. Every HTML page is also available as Markdown: request it with `Accept: text/markdown`.