# Connect an agent over MCP

Mintila runs an MCP server: the agent you already use reads and works in your CRM, clients, projects, audits and signatures, with the permissions you give it.

The server is at `https://www.mintila.com/app/api/mcp`. Anything that speaks MCP over HTTP connects the same way: Claude, an editor, or your own agent.

```json
{
  "mcpServers": {
    "mintila": {
      "url": "https://www.mintila.com/app/api/mcp"
    }
  }
}
```

## Connect by signing in

The server answers OAuth discovery, so a client that supports sign-in sends you to your Stacklumen account and back. There is nothing to paste, and you choose what it may do.

## Connect with a token

Open **Agents & MCP** and make a token (`bl_…`) for the whole workspace or one client, with only the scopes it needs and, if you like, an expiry. It is shown once. Only owners can make tokens. A token limited to one client can’t reach the CRM, clients and projects: those need a workspace-wide token.

## Permissions

Each tool spends one scope. A call without it is refused, and the refusal names the scope it needed; `whoami` always answers, and says what the credential may do.

| Scope | What it allows |
| --- | --- |
| `clients:read` | Read the client list |
| `account:read` | Read your profile, settings, the workspace and its members |
| `account:write` | Update your profile, settings and the workspace details |
| `audits:read` | List the audits and read the workspace’s saved reports |
| `audits:run` | Run audits against public URLs, spending the workspace’s monthly tool runs |
| `signatures:read` | Read the team’s email signatures, designs and install links |
| `signatures:write` | Make and change signature designs and people’s signatures, and email people their install links |
| `clients:write` | Add and change clients, their contacts, follow-ups, checklists and approvals |
| `crm:read` | Read the CRM, its records and notes, and the projects, tasks and time |
| `crm:write` | Add and change leads, deals, contacts, notes, projects, tasks and time |

## Every tool

This list is read from the server itself.

### Your workspace

| Tool | What it does | Scope |
| --- | --- | --- |
| `whoami` | The workspace this token belongs to, the token name, its scopes, and its reach (whole workspace or one client). | any |
| `list_clients` | The workspace's clients — id, name, slug, website, status, industry. | `clients:read` |
| `get_profile` | Your profile in the suite — name, handle, headline, bio, job title, location, links, skills and whether it is public. | `account:read` |
| `update_profile` | Update your profile. | `account:write` |
| `get_settings` | Your settings — theme, density and which emails you receive. | `account:read` |
| `update_settings` | Update your settings. | `account:write` |
| `get_workspace` | The workspace — name, kind, industry, size, description — and its members with their roles. | `account:read` |
| `list_members` | The workspace's members and pending invitations, with roles. | `account:read` |
| `list_audit_events` | The workspace's audit log, newest first: who did what and when (invitations, removals and role changes, deleted Library files, room links revoked, deals, contacts and companies deleted, merged, imported and exported, apps and services connected, tokens made, exports), each with its target and where it came from. | `account:read` |
| `update_workspace` | Update the workspace's details. | `account:write` |

### Audits

| Tool | What it does | Scope |
| --- | --- | --- |
| `list_audits` | The audits an agent can run with run_audit: each one’s slug, name and what it checks. | `audits:read` |
| `run_audit` | Run one audit against a public URL, as this workspace. | `audits:run` |
| `list_reports` | The workspace’s saved audit runs, newest first: id, tool, target, status, score and when. | `audits:read` |
| `get_report` | One saved run: its score, the failing checks worst first, the previous successful run of the same audit on the same host to compare with, and the report’s address in the app. | `audits:read` |

### Signatures

| Tool | What it does | Scope |
| --- | --- | --- |
| `list_signature_designs` | The workspace’s email signature designs: id, name, layout, colour, type, which details show, its links (each with its icon), the photo’s shape, the icons’ style, the verified badge, the button, the brand ribbon (and its animation), the extra pictures, the Made with Mintila card, whether it carries a banner, its version, and how many people wear it. | `signatures:read` |
| `get_signature` | One person’s signature as it is now: their details, the design they wear, where it is (draft, sent, installed, or out of date), the signature’s HTML and plain text, and their install link (a page that copies it and shows the steps for their mail app). | `signatures:read` |
| `create_signature_design` | Make a signature design. | `signatures:write` |
| `update_signature_design` | Change a design. | `signatures:write` |
| `generate_team_signatures` | Give people signatures in a design: the workspace’s members (filled from their profiles: name, address, job title, pronouns), a list of people, or both. | `signatures:write` |
| `update_person_signature` | Change one person’s signature: their details, the design they wear (design_id, or null for the first), or which details show for them alone (overrides). | `signatures:write` |
| `send_signature_installs` | Email people their signature with its install link: person_ids, all: true, or stale: true (everyone whose installed copy is behind). | `signatures:write` |

### CRM and projects

| Tool | What it does | Scope |
| --- | --- | --- |
| `list_leads` | The CRM’s leads, as the pipeline shows them, with the people a lead can be given to: each with its name, company, stage, value, owner, overdue flag and counts, and `site` when it is linked to one of the workspace’s sites ({id, name, live}: live is whether it is published to production). | `crm:read` |
| `get_pipeline` | One pipeline’s board and what it is worth: the workspace’s pipelines ({id, name, isDefault}), then the one asked for (pipeline_id, the default without one) as its stages in their order, each with its key, name and leads in order (with `site` {id, name, live} on a lead linked to one of the workspace’s sites), and the stage-weighted forecast. | `crm:read` |
| `create_lead` | Add a lead, as the CRM’s New lead does: name is required; it is filed with its person and company, found by address and domain or made. | `crm:write` |
| `update_lead` | Change a lead: each field given is set, one left out is kept; contact_id and company_id link it to a person and company of this workspace; pipeline_id moves it to another pipeline, where it keeps a stage both share (won and lost included) or lands on the open stage nearest its odds. | `crm:write` |
| `move_lead` | Move a lead to a stage of its own pipeline (a key get_pipeline lists for that pipeline: new, contacted, qualified, proposal, won or lost in the default), optionally between two cards (before_position, after_position from get_pipeline); lost takes lost_reason. | `crm:write` |
| `convert_lead` | Win a lead, as the Convert dialog does: it becomes a client (client_id to file it under one you have, or client_name for a new one), its person the client’s contact unless copy_contact is false, and optionally a project from a template ({template, name, start_on}). | `crm:write` |
| `add_lead_note` | Write a note on a lead — what happened — kind note, call, email or meeting, optionally dated occurred_at (never in the future). | `crm:write` |
| `list_crm_followups` | Follow-ups on leads and clients: scope mine (default) or all, status open (default) or done, and one subject with subject_type (lead or client) and subject_id. | `crm:read` |
| `add_crm_followup` | Schedule the next step on a lead or a client: subject_type lead or client, subject_id, subject, optional body, scheduled_at (ISO) and assignee_id (a teammate; yourself when left out). | `crm:write` |
| `update_crm_followup` | Change a follow-up — subject, body, scheduled_at, assignee_id — or mark it done with completed: true (false reopens it). | `crm:write` |
| `search_crm` | Find records by name, as the record picker does: leads (by name or company), contacts, companies, clients, projects and tasks, five of each by default. | `crm:read` |
| `get_today` | What needs you in the CRM now, the CRM’s Today page itself, in its sections and order: follow-ups overdue or due today (yours first, then the team’s), deals gone quiet (no touch in 14 days, or longer in their stage than deals here usually stay) with no follow-up booked ahead, deals closing in the next seven days or whose close date just passed, notes that mention you, messages you saved from chat with no follow-up yet, and tasks on deals given to you. | `crm:read` |
| `list_contacts` | The CRM’s contacts, as its People page lists them: each with its id, name, title, lifecycle, company, owner, tags, last activity and what their deals add up to (lead_count, open_count, open_value, won_value). | `crm:read` |
| `get_contact` | One contact, as their page shows them: the record’s fields (not their address, phone or profile link), their company, their deals, the record’s summary (facts, the next step, pinned notes, what happened lately) and the address of their page. | `crm:read` |
| `create_contact` | Add a contact, as the CRM’s New contact does: name is required; company_id files them under a company, or company_name finds it or makes it. | `crm:write` |
| `update_contact` | Change a contact: each field given is set, one left out is kept, null clears it; custom merges into the fields they have. | `crm:write` |
| `list_companies` | The CRM’s companies, as its Companies page lists them: each with its id, name, domain, website, industry, size, owner, tags, how many people work there, what its deals add up to (lead_count, open_count, open_value, won_value), its last activity, and client_id with client_name once it is a client (get_client follows). | `crm:read` |
| `get_company` | One company’s whole account, as its account page draws it: the record’s fields, its live clause and fact chips, its people by name and title, every deal with it (stage, value, owner, close date, whether it is late), the open pipeline and what was won, the next step, pinned notes and what happened lately, and client_id when it is a client, so get_client (and get_client_money) can be chained. | `crm:read` |
| `create_company` | Add a company, as the CRM’s New company does: name is required; website sets its domain. | `crm:write` |
| `update_company` | Change a company: each field given is set, one left out is kept, null clears it; custom merges. | `crm:write` |
| `list_projects` | The agency’s projects, as the Projects portfolio shows them: each with progress, overdue work, how much of its budget is used, the next milestone, who is on it and a health verdict, with the crew (by name and role), clients and templates. | `crm:read` |
| `get_project_board` | One project’s board, as the Projects screen draws it: its columns and tasks, the people who can be assigned, the clients work can be booked against, and your running timer. | `crm:read` |
| `list_my_tasks` | Your open tasks across every project, soonest due first. | `crm:read` |
| `create_project` | Start a project, as Projects’ New project does: name, and template (website, brand, retainer, seo, app, or blank by default; list_projects names them with what each starts with) — a template brings its columns, dated tasks, milestones and sprints from start_on. | `crm:write` |
| `create_task` | Add a task to a project: board_id, title, and optionally column_name (the board’s first column when left out), assignee_id, parent_id to make it a subtask of a top-level task on the same project (two levels and no more; it lands in its parent’s column unless column_name is given, and board_id may then be left out), links to tie it to what it is about at once (each {kind, target_id, label}: a site, a page, a deal, a chat message, a client file, an approval or a url, as link_task takes them), and in fields any of body (its description), priority, labels, checklist, estimate_minutes, milestone and client_id — checked as the board checks them. | `crm:write` |
| `add_subtask` | Add a subtask under a task: parent_id (a top-level task: a subtask has no subtasks of its own), title, and optionally assignee_id, column_name (the parent’s when left out) and in fields any of body, priority, due_on, estimate_minutes and labels. | `crm:write` |
| `link_task` | Tie a task to what it is about, as the task page’s links do: kind site, page, lead (a deal), message (a chat message), file (a client file), approval or url, target_id (the thing’s id, or the address for url) and an optional label. | `crm:write` |
| `unlink_task` | Remove one of a task’s links, by link_id from link_task or list_task_links. | `crm:write` |
| `list_task_links` | What a task is connected to: task_id answers its links (each with kind, target_id, label, who made it and when), its subtasks (done or not, assignee, due date) and who is watching it, and whether you are. | `crm:read` |
| `watch_task` | Watch a task to hear about it, or stop with watching: false. | `crm:write` |
| `update_task` | Change a task: id, and in fields any of title, body, column_name (moves it to that column), assignee_id, priority, labels, checklist, estimate_minutes, milestone and client_id; completed: true or false; or place it between two cards (before_position, after_position). | `crm:write` |
| `log_time` | Log time already spent: minutes (or started_at and ended_at), on a task_id or a board_id, optionally client_id, note and billable. | `crm:write` |
| `start_timer` | Start your timer on a task_id or board_id — stopping the one running, since a person has one timer at a time. | `crm:write` |
| `stop_timer` | Stop your running timer; the stretch is logged. | `crm:write` |
| `set_lead_contacts` | Set a deal’s buying committee, whole, as the deal page’s committee does: contacts, each {contact_id, role: champion, decision_maker, influencer, blocker, user or other, is_primary}, at most 25, one primary (the first when none is marked). | `crm:write` |
| `get_relationship_map` | Who is who: lead_id answers the deal’s buying committee (each contact with their role, whether primary, their last touch and warmth 0–4), what it is missing ("No decision maker", "Champion silent 21 days") and the contacts who could be added; company_id answers the company’s org map (each person with who they report to, their warmth and their roles on its open deals) and the warnings on its open deals. | `crm:read` |
| `list_sequences` | The workspace’s sequences, as Settings lists them: each with its steps in order (day, kind email, task, call or note, whether it waits for review), what stops it, whether it is on, and how many people are active, paused, finished and stopped in it. | `crm:read` |
| `enroll_in_sequence` | Put a contact into a sequence, as Enrol on their record does: sequence_id (list_sequences), and contact_id, or lead_id for the deal’s contact (the deal is kept on the enrolment, so moving or closing the deal stops it by the sequence’s rules). | `crm:write` |
| `stop_enrollment` | End someone’s place in a sequence, as Stop on their enrolment chip does: enrollment_id (list_sequences with contact_id or lead_id). | `crm:write` |
| `get_forecast` | Reports’ Forecast for a month (month YYYY-MM, this month by default): per currency and per owner, quota, commit, best case, pipeline, won and the gap; what moved since last week; the deals that slipped out of the month and the open deals with no close date. | `crm:read` |
| `list_crm_views` | The CRM’s saved views you can open: your own and those shared with the workspace, each with its id (for bulk_update_leads view_id), name, what it lists (entity lead, person, company, activity or quote), whether it is shared or yours, and its filters, sort and columns. | `crm:read` |
| `bulk_update_leads` | One change to many leads, as the CRM’s selection tray makes it: ids (leads ticked), or view_id for every lead a saved view of leads matches now; at most 200 either way, and more is refused with how many matched, never cut short. | `crm:write` |
| `merge_crm_records` | Fold one record into another, as Merge on a duplicate does: entity person (a contact), company or lead, winner_id (kept) and loser_id (gone). | `crm:write` |
| `preview_import` | What an import would do, without doing it (the import sheet’s Review step): entity lead, person (contacts) or company, rows (up to 500 leads or 1,000 contacts or companies, each the fields create_lead, create_contact or create_company take, custom by key), and on_duplicate skip (default) or update. | `crm:write` |
| `add_task_comment` | Comment on a task, as its page’s composer does: task_id, body (mention a teammate as @[Name](account id); only members who can open the task are told), and visibility team (the default) or shared, which a client’s guest reads on a milestone shown to them, on a project shared with them. | `crm:write` |
| `list_task_comments` | A task’s comments, oldest first: each with who wrote it (by name), when, whether it was edited, whether it is shared with the client, the people it mentions and its reactions. | `crm:read` |
| `get_task_activity` | What changed on a task, newest first, each said in words as its Activity feed says it ("Maya moved to In review", "Agent changed due Nov 3 → Nov 7"), with who did it and whether that was a person, an agent or a rule; and what the client can see of it (whether its project is shared and the task shown to them). | `crm:read` |
| `list_sprints` | A project’s sprints, planned, active and completed, in order, with their goals and days; its sprint settings (length, working days); and the workspace’s weekly capacity per person. | `crm:read` |
| `plan_sprint` | Plan a sprint on a project, as Plan sprint does: board_id, and optionally name (the next "Sprint N" by default), goal, starts_on and ends_on (following the last sprint for the project’s sprint length by default), and task_ids to put into it (each a task of this project you can open; one that cannot be moved is named in not_added). | `crm:write` |
| `list_epics` | A project’s epics, the bodies of work that run across its sprints, in order: each with its id, name, description, colour and status. | `crm:read` |
| `add_dependency` | Say a task waits on another: task_id waits on depends_on_id (either may be on another project of the workspace, if you can open it). | `crm:write` |
| `save_project_template` | Save a project as one of the workspace’s templates, as "Save as template" does: board_id, name (one of each per workspace) and an optional description. | `crm:write` |
| `add_recurring_task` | A task made again on its day, for retainers, SEO months and monthly reports: board_id, freq daily, weekly or monthly, interval_n (every n of them), weekday (0 Sunday to 6) for weekly, month_day (1–31; a short month uses its last day) for monthly, starts_on and ends_on, and template {title ({month}, {week} or {date} fill in), column, assignee_id, labels, estimate_minutes, priority, due_in_days, body}; or task_id to copy a task of this project. | `crm:write` |
| `list_proposals` | The proposals made from deals’ quotes, newest first, as the deal page’s Quotes card lists them: each with its quote number and title, its state (draft, sent, viewed, signed, paid, declined or expired), the total and currency, the deposit asked (none, a percentage or a fixed amount, and what it comes to), when it was sent, opened and signed, the name the client typed to sign, and whether the deal was won from it. | `crm:read` |
| `get_proposal` | One proposal (proposal_id is its quote’s id, from list_proposals): everything list_proposals gives, with its scope text, the pictures it shows (each a design or a site, its name and caption), the project template it starts when won, the deposit invoice once one was issued and the reference of what was signed. | `crm:read` |
| `get_workload` | Who has how much planned, week by week, against what they can do: weeks (8 by default) from the week of from (YYYY-MM-DD, this week by default), each person’s planned minutes from open tasks’ estimates spread over their days, their weekly capacity, and the work that could not be placed (no estimate, or no dates), counted. | `crm:read` |

### Clients and approvals

| Tool | What it does | Scope |
| --- | --- | --- |
| `get_client` | One client, as the work on it needs: the profile (name, status, website, industry, tags, size, notes, account manager), contacts by name and role, its sites, designs and projects and their open tasks, sites: filed (the sites under this client) and choices (the workspace’s sites that could be), and origin: where it came from (the deal it was won from as lead:<id>, its source, the days it spent in each stage, when it was won and the accepted quote’s lines; the won value and the quote’s figures for the agency’s billing authority only). | `clients:read` |
| `create_client` | Add a client, as the Clients screen’s New client does: name is required; the rest as update_client takes them. | `clients:write` |
| `update_client` | Change a client’s profile: each field given is set, one left out is kept, null clears it. | `clients:write` |
| `archive_client` | Archive a client, as its profile’s Archive does: it leaves the active list and reads only. | `clients:write` |
| `restore_client` | Bring an archived client back to the active list. | `clients:write` |
| `add_client_contact` | Add a contact to a client: name, and any of email, phone, role_title and notes; is_primary makes them the main contact. | `clients:write` |
| `update_client_contact` | Change a contact: each field given is set, one left out is kept. | `clients:write` |
| `remove_client_contact` | Remove a contact from its client. | `clients:write` |
| `set_primary_contact` | Make a contact its client’s main contact. | `clients:write` |
| `log_client_activity` | Log something on a client’s timeline: kind note, call, email or meeting, an optional subject, and body. | `clients:write` |
| `add_client_followup` | Schedule a follow-up with a client: subject, scheduled_at (an ISO date-time), an optional body, and assignee_id (a teammate’s account id; yourself when left out). | `clients:write` |
| `update_client_followup` | Change a follow-up — its subject, body, scheduled_at or assignee_id — or mark it done with completed: true (false reopens it). | `clients:write` |
| `remove_client_followup` | Delete a follow-up. | `clients:write` |
| `get_client_money` | What a client is worth to the agency and what is owed, read only: each project’s hours against its budget, the time not yet invoiced by project, and the client’s site bills (open, paid, cancelled or expired), the same figures as the client’s Money page. | `clients:read` |
| `get_client_brand` | A client’s brand kit, as its Brand tab keeps it — colours [{name, hex}], fonts [{name, role}] and notes — the same kit the client’s guests see. | `clients:read` |
| `save_client_brand` | Save a client’s brand kit, whole: colours [{name, hex: #rrggbb}], fonts [{name, role}] and notes. | `clients:write` |
| `list_client_checklists` | A client’s onboarding checklists, as its Launch plan draws them: each checklist with its ring (done of total) and its items in order, each with its id, title, side (agency: we do it; client: they do it), kind (task, upload, approval, form, meeting or request), whether the client sees it, who has it, its due day, whether it is late, whether it is done and by whom (a person, a guest, an agent or a rule), and what ticks it by itself (a file arriving, an approval given, a task done). | `clients:read` |
| `list_checklist_templates` | The checklist templates this workspace offers: the built-in "Website launch" and the workspace’s own, each with its key (for start_client_checklist), name and items. | `clients:read` |
| `start_client_checklist` | Start a checklist for a client from a template, as the Launch plan’s Start does: template (a key from list_checklist_templates; Website launch when left out) and an optional name. | `clients:write` |
| `add_checklist_item` | Add an item to one of a client’s checklists: checklist_id, title, and optionally detail, side agency (default) or client, kind task (default), upload, approval, form, meeting or request, shared (whether the client sees it; something they do is always shared), due_on (YYYY-MM-DD), file_folder (for an upload: the Files folder that ticks it), assignee_id (a teammate). | `clients:write` |
| `complete_checklist_item` | Tick a client’s checklist item done, or untick it with done: false. | `clients:write` |
| `list_client_requests` | The requests clients sent from their portal, as the Client requests inbox lists them, newest activity first: each with its id, number, subject, status (open, in_progress, waiting_on_client, resolved, closed) and the words for it, priority, the client, who asked, who has it, its first words, how many messages, when the agency first answered and when it was last active. | `clients:read` |
| `get_client_request` | One client request and its thread, oldest first: what the client asked, each reply from either side with who wrote it and when, the files named by name, and who it may be given to. | `clients:read` |
| `reply_client_request` | Answer a client request: request_id and body. | `clients:write` |
| `update_client_request` | Change a client request: status (in_progress, waiting_on_client, resolved or closed, where the request may move), priority (low, normal, high, urgent) and assignee_id (a teammate who reaches the client, or null for nobody). | `clients:write` |
| `get_client_health` | How a client is doing and how that has moved: its health now (score 0–100, level good, watch or risk, and each reason it lost points), the signals behind it (requests unanswered, the portal unopened, bills unpaid, projects over budget, what waits on the client), and its last 90 days, one point a day (score, level, reasons, and the day’s counts: open and overdue tasks, unbilled minutes, approvals and requests waiting; what is outstanding only for the agency’s billing authority). | `clients:read` |
| `list_clients_at_risk` | The clients whose health is at risk (and with watch: true, those to watch as well), lowest score first, each with its score, level, reasons and next step (the portfolio’s own, with the call that does it). | `clients:read` |
| `list_approvals` | The workspace’s approvals, pending first, as the Hub’s Approvals lists them: each {id, clientId, clientName, subjectType (site, page, design or file), subjectId, subjectName, previewUrl, message, status (pending, approved, changes_requested, withdrawn), requestedBy, requestedAt, decidedBy, decidedAt, decisionNote, direction}. | `clients:read` |
| `request_client_approval` | Ask a client to approve a site, a page (subject_id "<site id>:<path>"), a design or a file filed under that client: their guests are told by bell, phone and email and answer on their Shared with you page. | `clients:write` |
| `withdraw_client_approval` | Withdraw a request the agency made of a client while it is pending — by whoever asked, or an owner or admin. | `clients:write` |
| `decline_publish_request` | Turn down a client editor’s request to publish their site (direction to_agency), with an optional note saying why: they are told by bell and email. | `clients:write` |

### Boards

| Tool | What it does | Scope |
| --- | --- | --- |
| `list_boards` | Every board in the workspace, as the boards sidebar lists them: the system boards (Deals, Contacts, Companies, Clients and one per project) and the boards people made, each with its id, kind, source and folder, the folders, and the boards you starred. | `crm:read` |
| `get_board` | One board’s shape: its columns (key, type, title, and a status column’s labels), its groups (a deal’s stages, a task’s project columns, a custom board’s groups), the people a people column takes, its saved views and whether you may change it. | `crm:read` |
| `query_items` | A board’s items, searched, filtered and sorted, a page at a time: {items, next, total}. | `crm:read` |
| `create_item` | Add an item to a board: a deal on Deals, a contact on Contacts, a task on a project, a row on a custom board. | `crm:write` |
| `update_item_values` | Write cells on one item, or the same cells on many (refs), and rename one (name). | `crm:write` |
| `move_item` | Move an item into a group: a deal to a stage (won files it under a client), a task to a project column, a custom item to another group. | `crm:write` |
| `add_update` | Post an update on an item, as its Updates tab does: on a system item it is a note (or a task’s comment) on that record. | `crm:write` |
| `create_board` | Make a custom board, owners and admins: name, an optional folder, and template "tasks" (Owner, Status, Due date, Priority, Notes and two groups; the default) or "blank" (a Status column only). | `crm:write` |
| `add_column` | Add a column, owners and admins. | `crm:write` |

### Any record

| Tool | What it does | Scope |
| --- | --- | --- |
| `get_record` | One record of any kind, as the record pane beside a conversation draws it: its title and live clause ("$12K in Proposal, 8 days."), fact chips (value, weighted value, owner, close date, status, last contact…), its stage path for a lead (each stage with the days spent in it), the next step due and whether it is late, its pinned notes and its ten newest timeline entries (what happened, by whom and when), the people involved by name and role, the actions this credential may take on it, and the address of its page. | `crm:read` |
| `get_timeline` | What has happened with a record, newest first, merged from every source the screens read: notes, calls, meetings and email logged; stage moves; follow-ups booked and done; quotes; approvals; client files; bills; projects started and finished; milestones; a client waiting on a reply in chat (never the messages); and what the products recorded. | `crm:read` |
| `add_note` | Write a note on a lead, a contact, a company or a client, in the one note store every record reads from: markdown body (at most 20,000 characters), optional subject, pin: true to pin it to the record (five pins a record), and mention_account_ids to tell teammates. | `crm:write` |
| `log_activity` | Log a call, a meeting, or an email sent outside Stacklumen, on a lead, a contact, a company or a client, as the composer’s Call, Meeting and Email log do: kind, optional body (markdown), subject, occurred_at (ISO; never in the future, except a meeting, which booked ahead is an upcoming meeting), duration_minutes for a call or a meeting, outcome for a call (connected, voicemail, no_answer, busy, wrong_number) or a meeting (held, no_show, rescheduled, cancelled). | `crm:write` |
| `pin_note` | Pin a note to the top of its record, or unpin it with pinned: false: note_id from add_note, log_activity, get_record or get_timeline. | `crm:write` |

### Library and rooms

| Tool | What it does | Scope |
| --- | --- | --- |
| `list_library` | The Library’s files you may open (folders with restricted access are left out): each file’s id, title, kind (pdf, image, video, link, office), tags, folder, current version and page count, and how many rooms hold it, with the folders. | `crm:read` |
| `create_room` | Make a share room for a deal (lead_id from list_leads): file_ids from list_library and, with include_proposal, the deal’s sent proposal. | `crm:write` |
| `get_room_activity` | What happened in a share room (room_id), or every room on a deal (lead_id): who opened it (invited, forwarded or unverified), their visits and reading time, what they read last, and time per page for each PDF where the plan has page-by-page reading. | `crm:read` |
