Lewati ke konten

MCP tool reference

Konten ini belum tersedia dalam bahasa Anda.

The MCP server at /api/mcp offers 137 tools: 60 read data, the other 77 change it. tools/list returns only the tools of products your workspace can use.

  • Read tools carry the MCP readOnlyHint annotation. The in-app assistant runs them straight away.
  • Write tools change data. Clients such as Claude ask you before running them; the in-app assistant always asks.
  • Permission is checked on every call. A denied call returns an error whose message is forbidden: missing <code>.

Project

add_comment

Add a comment to a task

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
comment_html string yes
comment_stripped string no
access "internal" | "public" no
slim boolean no Return a slim identifying comment instead of the full comment body

add_contract_line

Add a line to a contract: quantity × unit price with its own term. Units bought at different times that expire in different months are separate lines.

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
contract_id string yes
name string yes What is sold, e.g. “Device subscription”
description string no
quantity number yes Units, e.g. 20 devices
unit_label string no Unit name, e.g. “device”, “user”
unit_price_cents integer yes Price per unit per billing period in cents of the contract currency (IDR 2.535.000 = 253500000)
billing_period "one_time" | "monthly" | "annual" no Default annual
start_date string | integer no Date as YYYY-MM-DD (UTC) or epoch ms; null clears it
end_date string | integer no Date as YYYY-MM-DD (UTC) or epoch ms; null clears it. Omit to use the contract’s end date
renews_line_id string no The line on an earlier contract this line continues (marks it renewed)

Add an external link to a task

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
title string no
url string yes URL of the linked resource

add_reaction

Add a reaction to a task (replaces this user’s existing reaction)

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
reaction string yes The reaction emoji or text

add_relation

Add a relation between two tasks

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
related_task_id string yes
relation_type "blocks" | "blocked_by" | "relates_to" | "duplicates" yes

add_subscriber

Add a subscriber to a task (idempotent)

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
user_id string yes user_profile.id of the subscriber

add_task_attachment

Attach an evidence file to a task. Upload the bytes FIRST via multipart POST /api/uploads (R2 storage + tenant quota; auth with the same credential as MCP), then register the returned id (an R2 key) here. Evidence rule: embed the returned url in a task comment so reviewers see the proof inline.

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
asset string yes R2 key: the id returned by POST /api/uploads
name string no File name (e.g. evidence.png)
size number no File size in bytes
type string no MIME type (e.g. image/png)

add_task_to_module

Add a task to a module

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
module_id string yes
task_id string yes

add_task_to_sprint

Add a task to a sprint

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
sprint_id string yes
task_id string yes

bulk_assign_task

Add one user as assignee on multiple tasks in a single call (max 100)

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_ids string[] yes Task IDs (max 100)
assignee_id string yes user_profile.id of the assignee

bulk_move_to_sprint

Add multiple tasks to one sprint in a single call. Tasks outside the sprint’s project are skipped and reported (max 100)

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_ids string[] yes Task IDs (max 100)
sprint_id string yes Target sprint: must belong to the tasks’ project

bulk_update_state

Move multiple tasks to one workflow state in a single call. Tasks in a different project than the state are skipped and reported (max 100)

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_ids string[] yes Task IDs (max 100)
state_id string yes Target state: must belong to the tasks’ project

create_contract

Create a draft contract for a client company. Give client_id, or client_name to match an existing company by exact name. Add what it sells with add_contract_line; once it has lines its amount is their annual total.

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
client_id string no
client_name string no
name string yes
type "retainer" | "annual_support" | "implementation" | "change_request" | "presales" | "internal" | "training" yes
start_date string | integer no Date as YYYY-MM-DD (UTC) or epoch ms; null clears it
end_date string | integer no Date as YYYY-MM-DD (UTC) or epoch ms; null clears it
currency string no ISO code, default IDR
amount_cents integer no Only for contracts without lines
auto_renew boolean no

create_custom_field

Create a custom field on a project. field_type: text|number|date|select|multiselect|boolean. select/multiselect require options.

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
project_id string yes
name string yes
field_type "text" | "number" | "date" | "select" | "multiselect" | "boolean" yes
description string no
is_required boolean no
options string[] no Choice list for select/multiselect

create_folder

Create a project folder. ALWAYS pass name.

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
name string yes
color string no Optional hex swatch, e.g. #3b82f6
sort_order number no

create_label

Create a label

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
name string yes
color string no

create_module

Create a module in a project

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
project_id string yes
name string yes
description string no
status "planned" | "in_progress" | "completed" no

create_page

Create a wiki page

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
project_id string no
name string yes
description_html string no
access integer no

create_project

Create a project under a company

  • Kind: Write
  • Permission: pmo:project:create
Argument Type Required Description
company_id string yes ID of the company (client/internal) the project belongs to
name string yes
description string no Solution summary

create_sprint

Create a sprint in a project

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
project_id string yes
name string yes
description string no
start_date integer no Epoch ms
end_date integer no Epoch ms

create_state

Create a workflow state (board column) in a project

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
project_id string yes
name string yes
group_name "backlog" | "started" | "completed" | "cancelled" no
color string no
sequence number no

create_task

Create a task in a project

  • Kind: Write
  • Permission: pmo:task:create
Argument Type Required Description
project_id string yes
name string yes
description_html string no
priority "none" | "urgent" | "high" | "medium" | "low" no
state_id string no
label_ids string[] no
assignee_ids string[] no
is_decision boolean no Flag as a portfolio-level decision task
slim boolean no Return a slim identifying subset instead of the full task

create_whiteboard

Create an empty whiteboard in a project

  • Kind: Write
  • Permission: pmo:whiteboard:create
Argument Type Required Description
project_id string yes
name string yes

delete_comment

Soft-delete a comment on a task

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
comment_id string yes

delete_folder

Soft-delete a folder (projects keep their data and render under No folder).

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
folder_id string yes

delete_page

Soft-delete a wiki page (it disappears from lists; same as the UI’s delete)

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
page_id string yes

delete_task

Soft-delete a task

  • Kind: Write
  • Permission: pmo:task:delete
Argument Type Required Description
task_id string yes

draw_on_whiteboard

Draw a boxes-and-arrows diagram (flowchart, architecture, process, org chart) on a whiteboard. Give nodes and edges; the layout is computed automatically and placed below the existing content, so it never overwrites anything. Edges connect node keys from this call, or ids/keys of shapes already on the board (see get_whiteboard). Everyone viewing the board sees the drawing appear live, and it stays fully editable.

  • Kind: Write
  • Permission: pmo:whiteboard:update
Argument Type Required Description
board_id string yes
direction "right" | "down" no Flow direction of the layers (default right)
nodes object[] no max 60 items
nodes[].key string yes Your handle for this node, used by edges
nodes[].label string yes Text inside the shape (max 200 chars)
nodes[].shape "rectangle" | "ellipse" | "diamond" no
nodes[].color "none" | "gray" | "blue" | "green" | "yellow" | "red" | "violet" no
edges object[] no max 120 items
edges[].from string yes
edges[].to string yes
edges[].label string no Text on the arrow (max 80 chars)
edges[].dashed boolean no

get_contract

Read a contract with its lines

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
contract_id string yes

get_contract_renewal_settings

Renewal automation for this workspace: reminder thresholds (days before a line ends; 0 = on/after the end), who gets the reminder emails (empty = workspace admins; renewal deal owners are always added), and how many days ahead a CRM renewal deal opens automatically

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.

No arguments.

get_module

Get a module by ID

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
module_id string yes

get_page

Get a wiki page by ID

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
page_id string yes

get_project

Get a project by ID

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
project_id string yes

get_sprint

Get a sprint by ID

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
sprint_id string yes

get_sprint_progress

Get sprint completion progress (total/completed/percentage)

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
sprint_id string yes

get_task

Get a task by ID

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
task_id string yes
slim boolean no Return a slim identifying subset (incl. project_id) instead of the full task

get_task_attachment

Get one task attachment: metadata of the latest version (name/size/type, version), its download url, and versions: every superseded version (newest first) with its own url, attributes and upload time.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
task_id string yes
attachment_id string yes Attachment id from list_task_attachments / add_task_attachment

get_task_detail

Get a task with its assignees, labels, comments and activities in one response

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
task_id string yes

get_whiteboard

Read a whiteboard: its shapes (id, type, label, position, size), the connectors between them, free text, and counts of images and freehand drawings. Use the shape ids to connect new boxes to existing ones with draw_on_whiteboard.

  • Kind: Read
  • Permission: pmo:whiteboard:read
Argument Type Required Description
board_id string yes

list_activities

List the activity trail of a task

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
task_id string yes

list_comments

List comments on a task

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
task_id string yes
slim boolean no Return slim rows (id, task_id, actor_id, created_at, access) without comment bodies

list_contract_renewals

Renewal pipeline: contract lines whose term ends in [from, to), with quantity, unit price and total, plus totals per end month. Approved and active contracts only unless statuses says otherwise. renewed = a later line already continues it.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
from string | integer yes Date as YYYY-MM-DD (UTC) or epoch ms; null clears it
to string | integer yes Date as YYYY-MM-DD (UTC) or epoch ms; null clears it
client_id string no
statuses "draft" | "pending_approval" | "approved" | "active" | "expired"[] no

list_contracts

List client contracts (support, retainer, subscriptions…), soonest end first, with the client’s name

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
client_id string no
status "draft" | "pending_approval" | "approved" | "active" | "expired" | "cancelled" no
search string no Matches the contract or client name

list_custom_fields

List custom field definitions for a project (options parsed, not raw JSON).

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
project_id string yes

list_decisions

List open decision tasks (is_decision) across the tenant: the portfolio decision inbox

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.

No arguments.

list_folders

List project folders in the current tenant (grouping level above projects)

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.

No arguments.

list_labels

List tenant labels

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.

No arguments.

List external links on a task

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
task_id string yes

list_members

List members of a project

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
project_id string yes

list_modules

List modules in a project

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
project_id string yes

list_my_tasks

List tasks assigned to the calling user across every project in the tenant (the My Issues page), ordered by target date. scope=active hides completed/cancelled tasks.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
scope "active" no active = open tasks only
limit integer no Max rows (default 50, max 200)

list_pages

List wiki pages (optionally in a project)

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
project_id string no

list_projects

List all projects in the current tenant

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.

No arguments.

list_reactions

List reactions on a task

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
task_id string yes

list_relations

List relations on a task

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
task_id string yes

list_sprints

List sprints in a project

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
project_id string yes

list_states

List workflow states for a project

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
project_id string yes

list_subscribers

List subscribers on a task

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
task_id string yes

list_task_attachments

List a task’s attachments (R2-backed evidence files or SharePoint files: see storage/web_url), newest first, with serve URLs and parsed attributes. Each row is the LATEST version (version, asset, url); versions lists the superseded versions newest first, each with its own url.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
task_id string yes

list_tasks

List tasks (optionally in a project), newest first

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
project_id string no
state string no Filter by state ID
limit integer no
offset integer no
slim boolean no Return slim rows (id, sequence_id, name, state_id, priority) instead of full tasks
include string[] no With slim:true, fields to carry back in, e.g. [“description”] (truncated at 500 chars)

list_whiteboards

List the whiteboards (Excalidraw boards) of a project, most recently edited first

  • Kind: Read
  • Permission: pmo:whiteboard:read
Argument Type Required Description
project_id string yes

list_workspace_members

List all users in the current tenant

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.

No arguments.

remove_assignee

Remove a user from a task’s assignees (soft-delete the assignment)

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
assignee_id string yes user_profile.id of the assignee

remove_contract_line

Remove a line from a contract

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
contract_id string yes
line_id string yes

Remove a link from a task

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
link_id string yes

remove_reaction

Remove your own reaction from a task

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
reaction_id string yes

remove_relation

Remove a relation by ID

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
relation_id string yes

remove_subscriber

Remove a subscriber from a task

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
user_id string yes user_profile.id of the subscriber to remove

remove_task_attachment

Remove an attachment from a task (soft delete, same as the UI’s remove). The stored file and its version history are kept; a SharePoint file is never deleted.

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
attachment_id string yes Attachment id from list_task_attachments / add_task_attachment

remove_task_from_module

Remove a task from a module

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
module_id string yes
task_id string yes

remove_task_from_sprint

Remove a task from a sprint

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
sprint_id string yes
task_id string yes

replace_task_attachment

Upload a new VERSION of an existing task attachment instead of adding a new one. Upload the bytes FIRST via multipart POST /api/uploads, then pass the returned id (R2 key, must be from your own tenant) as asset. The attachment id stays stable; list/get/URL show the new version, the previous one is kept in versions (its file is never deleted). On a SharePoint attachment the uploaded bytes are copied into SharePoint as a new SharePoint version (the R2 object is only a transport). If name is omitted the previous file name is kept; size/type are not inherited. Logs an activity entry on the task.

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
attachment_id string yes
asset string yes R2 key: the id returned by POST /api/uploads
name string no File name (defaults to the previous version’s name)
size number no File size in bytes
type string no MIME type (e.g. application/pdf)

search_tasks

Search tasks by name/description or task key (29, #29, ABC-29) across the tenant

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
query string yes
limit integer no
slim boolean no Return slim rows (id, sequence_id, name, state_id, priority) instead of full tasks
include string[] no With slim:true, fields to carry back in, e.g. [“description”] (truncated at 500 chars)

set_assignee

Assign (or re-assign) a user to a task. If the assignment already exists it is a no-op

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
assignee_id string yes user_profile.id of the assignee

set_contract_renewal_settings

Change renewal automation. Recipients by user id or by email (people in this workspace); omit a field to keep it.

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
reminders_enabled boolean no
lead_days integer[] no e.g. [90,60,30,7,0]
recipient_user_ids string[] no
recipient_emails string[] no
auto_deal_enabled boolean no
auto_deal_lead_days integer no

set_contract_status

Move a contract along draft → pending_approval → approved → active → expired; cancelled from draft/pending/approved/active; pending_approval → draft rejects it

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
contract_id string yes
status "draft" | "pending_approval" | "approved" | "active" | "expired" | "cancelled" yes
rejected_reason string no

set_project_folder

Move a project into a folder (or out: pass folder_id null).

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
project_id string yes
folder_id string | null no Target folder UUID, or null to remove

set_task_custom_value

Set one custom field value on a task. Pass null to clear. Type-checked against the definition.

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
custom_field_id string yes
value string | null no String value; null clears

update_comment

Update a comment’s HTML and/or stripped text

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
comment_id string yes
comment_html string no
comment_stripped string no
slim boolean no Return a slim identifying comment instead of the full comment body

update_contract

Change a contract’s name, type, dates, currency, amount or auto-renew

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
contract_id string yes
name string no
type "retainer" | "annual_support" | "implementation" | "change_request" | "presales" | "internal" | "training" no
start_date string | integer no Date as YYYY-MM-DD (UTC) or epoch ms; null clears it
end_date string | integer no Date as YYYY-MM-DD (UTC) or epoch ms; null clears it
currency string no
amount_cents integer no
auto_renew boolean no

update_contract_line

Change a contract line

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
contract_id string yes
line_id string yes
name string no What is sold, e.g. “Device subscription”
description string no
quantity number no Units, e.g. 20 devices
unit_label string no Unit name, e.g. “device”, “user”
unit_price_cents integer no Price per unit per billing period in cents of the contract currency (IDR 2.535.000 = 253500000)
billing_period "one_time" | "monthly" | "annual" no Default annual
start_date string | integer no Date as YYYY-MM-DD (UTC) or epoch ms; null clears it
end_date string | integer no Date as YYYY-MM-DD (UTC) or epoch ms; null clears it. Omit to use the contract’s end date
renews_line_id string no The line on an earlier contract this line continues (marks it renewed)

update_folder

Update a project folder (name/color/sort_order).

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
folder_id string yes
name string no
color string no
sort_order number no

update_module

Update a module (partial: only provided fields change)

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
module_id string yes
name string no
description string no
status "planned" | "in_progress" | "completed" no
start_date integer no Epoch ms
target_date integer no Epoch ms

update_page

Update a wiki page (name/description/access)

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
page_id string yes
name string no
description_html string no
access integer no

update_sprint

Update a sprint (name/description/dates)

  • Kind: Write
  • Permission: pmo:project:update
Argument Type Required Description
sprint_id string yes
name string no
description string no
start_date integer no Epoch ms
end_date integer no Epoch ms

update_task

Update a task (name/description/priority/state/dates/estimate)

  • Kind: Write
  • Permission: pmo:task:update
Argument Type Required Description
task_id string yes
name string no
description_html string no
priority "none" | "urgent" | "high" | "medium" | "low" no
state_id string no
start_date integer no Epoch ms
target_date integer no Epoch ms
estimate_points integer no
is_decision boolean no Flag/unflag as a portfolio-level decision task
slim boolean no Return a slim identifying subset instead of the full task

CRM

create_contact

Create a CRM lead/contact

  • Kind: Write
  • Permission: crm:record:write
Argument Type Required Description
email string yes
name string no
company string no
phone string no
source string no
status "lead" | "active" | "churned" no

create_deal

Create a CRM deal

  • Kind: Write
  • Permission: crm:record:write
Argument Type Required Description
name string yes min length 1, max length 200
contact_id string no
company_id string | null no
project_id string no
notes string | null no max length 5000
amount_cents integer no
currency string no
stage "lead" | "qualified" | "demo_poc" | "proposal" | "negotiation" | "won" | "lost" no
win_probability integer no Override % 0-100 (null = stage default)
lost_reason "price" | "scope" | "no_budget" | "competitor" | "stalled" no
competitor_name string no
expected_close_at integer no Epoch ms
sales_owner_id string no Active sales owner id (deal owner)

get_contact

Get a CRM contact by ID

  • Kind: Read
  • Permission: crm:record:read
Argument Type Required Description
contact_id string yes

get_deal

Get a CRM deal by ID

  • Kind: Read
  • Permission: crm:record:read
Argument Type Required Description
deal_id string yes

list_contacts

List CRM contacts in the tenant

  • Kind: Read
  • Permission: crm:record:read
Argument Type Required Description
limit integer no
offset integer no

list_deals

List CRM deals in the tenant (by pipeline stage)

  • Kind: Read
  • Permission: crm:record:read
Argument Type Required Description
limit integer no
offset integer no

list_facts

List evidence facts for a contact or company

  • Kind: Read
  • Permission: crm:record:read
Argument Type Required Description
contact_id string no
company_id string no
status "PROPOSED" | "APPLIED" | "DISMISSED" | "SUPERSEDED" no
limit integer no
offset integer no

move_deal_stage

Move a deal to a new pipeline stage (stamps stage_sort + closed_at; lost requires lost_reason)

  • Kind: Write
  • Permission: crm:record:write
Argument Type Required Description
deal_id string yes
stage "lead" | "qualified" | "demo_poc" | "proposal" | "negotiation" | "won" | "lost" yes
lost_reason "price" | "scope" | "no_budget" | "competitor" | "stalled" no Required when stage is lost
competitor_name string no

record_fact

Record an evidence-led fact about a contact or company. Strong evidence (score >= 1.0 across independent sources) auto-applies to the record; weaker evidence is stored as a PROPOSED suggestion a human can apply/dismiss. Never write contact fields directly: use this.

  • Kind: Write
  • Permission: crm:record:write
Argument Type Required Description
contact_id string no
company_id string no
field string yes Allowlisted field: contact → name|title|phone|company|address; company → name|website|domain|industry|description
value string yes
evidence object[] yes
evidence[].source string yes
evidence[].method "signature" | "email_thread" | "social" | "web_search" | "manual" | "unknown" yes
evidence[].url string no
method string no
source_url string no
observed_at integer no Epoch ms

update_contact

Update a CRM contact

  • Kind: Write
  • Permission: crm:record:write
Argument Type Required Description
contact_id string yes
email string no
name string no
company string no
phone string no
status "lead" | "active" | "churned" no
source string no

update_deal

Update a CRM deal (amount/stage/close/name)

  • Kind: Write
  • Permission: crm:record:write
Argument Type Required Description
deal_id string yes
name string no min length 1, max length 200
company_id string | null no
notes string | null no max length 5000
amount_cents integer no
currency string no
stage "lead" | "qualified" | "demo_poc" | "proposal" | "negotiation" | "won" | "lost" no
win_probability integer no Override % 0-100 (null = stage default)
lost_reason "price" | "scope" | "no_budget" | "competitor" | "stalled" no
competitor_name string no
expected_close_at integer no Epoch ms
sales_owner_id string | null no Sales owner id to assign (null = unassign)

Timesheets

approve_timesheet

Approve pending time: a member’s whole week (week_id from list_pending_timesheet_approvals) or specific entry_ids. Same rules as the Approvals page: needs timesheets:approvals:approve, never your own time, lead/PM roles only on assigned projects; entries that cannot be reviewed are returned under skipped with a reason.

  • Kind: Write
  • Permission: timesheets:approvals:approve
Argument Type Required Description
week_id string no ‘<user_id>:’
entry_ids string[] no Specific time entry ids

create_time_entry

Log time on a task. Either pass duration_seconds (positive multiple of 60) with an optional date (YYYY-MM-DD), or pass started_at/ended_at (epoch ms) for an exact clock slot: with started_at+ended_at the span defines the duration, with started_at+duration_seconds ended_at is derived. The entry is created as the calling user, status pending. AI agents logging their own work MUST pass source=‘agent’ plus agent_name, model, and the token counts (input/output/cache_read/cache_write/reasoning): omit unknown token fields rather than guess. Agent entries default billable=false and are excluded from human timesheet cost reports.

  • Kind: Write
  • Permission: timesheets:entry:create
Argument Type Required Description
task_id string yes Task to log time against
duration_seconds number no Seconds spent; positive, multiple of 60 (whole minutes). Required unless started_at+ended_at are both given
date string no Work date (YYYY-MM-DD); defaults to today. Mutually exclusive with started_at/ended_at
started_at number no Optional: block start (epoch ms). Pair with ended_at (span = duration) or with duration_seconds (end derived)
ended_at number no Optional: block end (epoch ms); requires started_at
description string no What was done (max 4000 chars)
billable boolean no Billable flag; defaults to true (false for agent entries)
source "agent" no AI-agent telemetry marker; omit entirely for normal manual logging
agent_name string no Required when source is “agent”: harness/agent identity (e.g. “omp/firstmate”)
model string no Model id exactly as reported by the harness (e.g. zai/glm-5.3-flash)
input_tokens number no Input tokens (billing bucket)
output_tokens number no Output tokens (billing bucket)
cache_read_tokens number no Cache-read tokens
cache_write_tokens number no Cache-write tokens
reasoning_tokens number no Reasoning tokens (billed as output)

delete_time_entry

Soft-delete a time entry. Your own entries, or anyone’s with timesheets:entry:delete_others; running and finalized (approved/invoiced) entries cannot be deleted.

  • Kind: Write
  • Permission: timesheets:entry:delete_own or timesheets:entry:delete_others
Argument Type Required Description
id string yes Time entry id

get_agent_usage

Agent bookkeeping KPI (Atur parity): roll up agent-attributed time entries by agent, model, and task with token totals and USD cost via the global model_prices rate card. Unpriced models return cost_usd: null: never $0. Human timesheet reports exclude agent entries. Needs timesheets:report:read_others.

  • Kind: Read
  • Permission: timesheets:report:read_others
Argument Type Required Description
from string no Window start (YYYY-MM-DD, inclusive)
to string no Window end (YYYY-MM-DD, inclusive)
project_id string no Filter to one project

list_my_time_entries

List the calling user’s time entries in a date range, including UI/timer-created entries with no task link (list_time_entries only sees task-linked rows). Newest first. Pass user_id to read someone else’s entries (needs timesheets:entry:read_others). list_time_entries shows only your own rows without that code.

  • Kind: Read
  • Permission: timesheets:entry:read_own or timesheets:entry:read_others
Argument Type Required Description
from string yes Range start (YYYY-MM-DD, inclusive)
to string yes Range end (YYYY-MM-DD, inclusive)
user_id string no Optional: read another user’s entries (needs timesheets:entry:read_others)
project_id string no Filter to one project
limit number no Max entries to return (default 200, max 500)

list_pending_timesheet_approvals

The approver’s queue: pending time grouped by member and week (week_id = ‘<user_id>:’), oldest week first. Only time the caller may review is listed: never their own, and for lead/PM roles only projects they are assigned to. Needs timesheets:approvals:approve. Feed week_id (or entry_ids) to approve_timesheet / reject_timesheet.

  • Kind: Read
  • Permission: timesheets:approvals:approve
Argument Type Required Description
limit number no Max weeks to return (default 50, max 200)

list_time_entries

List time entries logged against a task, newest first.

  • Kind: Read
  • Permission: timesheets:entry:read_own or timesheets:entry:read_others
Argument Type Required Description
task_id string yes
limit number no Max entries to return (default 50, max 200)

reject_timesheet

Reject pending time with a required reason (shown to the member, who edits and resubmits). Targets a week_id or entry_ids; same permission and scope rules as approve_timesheet.

  • Kind: Write
  • Permission: timesheets:approvals:approve
Argument Type Required Description
week_id string no ‘<user_id>:’
entry_ids string[] no Specific time entry ids
reason string yes Why the time is rejected (1-1000 chars)

update_time_entry

Edit a time entry (your own, or anyone’s with timesheets:entry:update_others). Pass only the fields to change. Clock fields (epoch ms) derive omitted siblings from the entry’s current duration: started_at alone moves the block, ended_at alone shifts its start, duration_minutes alone resizes it from the current start. Running and finalized entries (approved on approval-flow projects, invoiced everywhere) are rejected, as are entries outside the editable policy window. Editing a rejected entry resubmits it (pending, or approved on flag-less projects).

  • Kind: Write
  • Permission: timesheets:entry:update_own or timesheets:entry:update_others
Argument Type Required Description
id string yes Time entry id
description string | null no What was done (max 4000 chars); null clears
started_at number no Block start (epoch ms)
ended_at number no Block end (epoch ms)
duration_minutes number no Whole minutes; positive integer
billable boolean no Billable flag

Helpdesk

add_ticket_comment

Post a reply or internal note on a ticket. internal=true posts a staff-only internal note (requires internal-staff access; never send for customer-facing replies). Staff may pass status_purpose to move the ticket with the reply (e.g. RESOLVED). Notifies requester/assignee and fans out to CC’d collaborators on public replies. A staff public reply carries the author’s email signature, and any /api/files/ links of this workspace in the body are attached to the client email (links instead when over the mail size limit).

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
ticket_id string yes Ticket id (from list_tickets/get_ticket).
body string yes Comment text (1-20000 chars).
internal boolean no Post as internal staff note instead of a public reply (default false).
status_purpose string no Staff-only: move the ticket after the reply. Pass a Status Workflow status code (e.g. RESOLVED, or any custom code configured in this workspace).

assign_ticket

Assign (or unassign with assignee_id=null) a ticket to a workspace user. Requires the helpdesk:ticket:assign permission; the assignee must be a tenant member and the ticket’s AI triage must be settled (use the override flow in the UI otherwise).

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
ticket_id string yes Ticket id (from list_tickets/get_ticket).
assignee_id string yes User profile id to assign, or null to unassign.

create_ticket

Create a support ticket on behalf of the caller (requester = caller). Needs either project_id or product_id (ids from the workspace’s projects/products); title (3-200 chars) and body required. Sets priority/category masters, initial workflow status and SLA, notifies staff, and runs the same triage and ticket_created automation rules (receipt email, CC copies) as the web form.

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
title string yes Ticket title (3-200 chars).
body string yes Ticket description (supports HTML, 1-20000 chars).
project_id string no Existing project id (takes precedence over product_id).
product_id string no Product master id; the ‘ ’ project is found-or-created.
company_id string no Customer company id (staff callers only on the product path).
priority_id string no Ticket Priority master id (optional).
category_id string no Ticket Category master id (optional; defaults to the workspace default).
priority "low" | "normal" | "high" | "urgent" no Fallback legacy priority when no priority_id (default normal).
module string no Module name (free text, ≤80 chars).

get_kb_article

Get one knowledge-base document by id, including its indexed source text when stored inline. Use after list_kb_articles to read an article.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
article_id string yes KB document id (from list_kb_articles).

get_ticket

Get one support ticket by id with its recent thread (comments, internal notes for staff viewers, status changes). Use after list_tickets to read the full conversation before replying or updating. Internal notes are hidden from non-staff viewers.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
ticket_id string yes Ticket id (from list_tickets).
thread_limit number no Max thread events to return (default 20, max 100).

list_kb_articles

List knowledge-base documents in the tenant (source name, product, module, status). Use to browse KB content ids.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
search string no Optional text filter on source name/module/version.
limit number no Max results to return (default 20, max 100).

list_ticket_statuses

List the workspace’s ticket workflow statuses (ids, codes, categories). Call before create_ticket/update flows to obtain valid status master ids and to understand the lifecycle.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.

No arguments.

list_tickets

List support tickets in the tenant, scoped to the caller’s visibility (requesters see only their own + looped-in tickets, consultants their assigned/group tickets, staff see all). Use to find ticket ids, check status/priority/SLA or browse a workload. Filters: status/priority legacy text or master ids, assignee, requester, company (staff only), free-text search, open-only.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
status string no Legacy status text filter (e.g. ‘new’, ‘in_progress’).
status_ids string[] no Ticket Status master ids (from list_ticket_statuses).
priority string no Legacy priority text filter (low|normal|high|urgent).
priority_ids string[] no Ticket Priority master ids.
assignee_id string no Filter by assignee user id.
requester_id string no Filter by requester user id (staff callers only).
company_id string no Filter by customer company id (managers/admins only).
search string no Free-text search over ticket number/title/body fields.
open boolean no Only tickets not in a final status.
limit number no Max results to return (default 20, max 100).

search_kb

Search knowledge-base documents by keyword (matches source name, module, Epicor version and inline text). Use to find documentation that may answer a customer question.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
query string yes Search text.
limit number no Max results to return (default 20, max 100).

update_ticket

Update a ticket’s Priority, Category, Product or Module (the same fields the web header edit allows; use add_ticket_comment for replies and assign_ticket for assignment). Requires the helpdesk:ticket:work permission. Logs a fields-updated history entry.

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
ticket_id string yes Ticket id (from list_tickets/get_ticket).
priority_id string no New Ticket Priority master id.
category_id string no New Ticket Category master id.
product_id string no New product master id, or null to clear.
module string no New module text, or null to clear.

Expenses

approve_expense

Approve a pending expense (pending → approved): requires the expenses approval permission and, for lead/PM roles, an active grant on the expense’s project. Optional comment is recorded on the audit timeline. Expenses linked to a submission are decided via the submission instead.

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
expense_id string yes Expense id (from list_pending_expense_approvals)
comment string no Optional reviewer note (max 1000)

create_expense

Create a draft expense document as the calling user (no file upload / OCR: pass the known fields). It stays draft until submit_expense. Vendor, amounts in minor units (cents), currency (default USD), category, and an optional in-tenant project_id. Optionally attach line items (description/qty/unitAmountCents/amountCents/taxCents/glCode).

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
vendor_name string no Vendor/merchant name (max 200)
vendor_tax_id string no Vendor tax id (max 60)
invoice_number string no Invoice/reference number (max 120)
document_kind "invoice" | "receipt" | "nota" | "billing" | "other" no Document kind; default ‘other’
issued_at number no Document date (epoch ms)
currency string no ISO code, default USD (max 8 chars)
subtotal_cents number no Subtotal in minor units
tax_cents number no Tax in minor units
total_cents number no Total in minor units
category string no One of list_expense_categories (max 120)
project_id string no In-tenant project for cost attribution
subject_type "ticket" | "task" no Optional work-item link type
subject_id string no Work-item id (required with subject_type)
lines object[] no Optional line items (replaces nothing: initial set)
lines[].description string no
lines[].qty number no
lines[].unitAmountCents number no
lines[].amountCents number no
lines[].taxCents number no
lines[].glCode string no

delete_expense

Soft-delete a draft expense (drafts only: anything submitted/approved/paid is a record and stays; expenses in a submission leave via the submission instead). No restore tool: recreate if needed.

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
expense_id string yes Expense id (from list_expenses)

get_expense

Get one expense document by id: vendor, totals, currency, category, status, submission link, rejection reason, plus its line items. Use after list_expenses to inspect details before a decision.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
expense_id string yes Expense id (from list_expenses)

list_expense_categories

Reference data for filling expense write arguments: the canonical expense categories, and the tenant’s expense-eligible projects (id + name + currency-independent: pass project_id on create_expense). Call when unsure which category/project values are valid.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.

No arguments.

list_expenses

List expense documents in the caller’s tenant (read scope: own filings plus actively assigned projects for consultant/lead/PM roles; tenant-wide for admin). Use for ‘my expenses’, ‘what did X spend’, or finding an expense id before get_expense / submit_expense. Filter by status (draft|pending|approved|rejected|paid), date range on the document date, category, or project_id.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
mine boolean no Only the caller’s own expenses
status "draft" | "pending" | "approved" | "rejected" | "paid" no Workflow status filter
issued_from number no Document date from (epoch ms, inclusive)
issued_to number no Document date to (epoch ms, inclusive)
category string no Exact category match (see list_expense_categories)
project_id string no Project attribution filter
limit number no Max rows (default 20, max 100), newest first

list_pending_expense_approvals

The approver’s queue: pending expenses awaiting a decision, scoped to the caller’s assigned projects (tenant-wide for admin). Requires the expenses approval permission. Use before approve_expense/reject_expense.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
project_id string no Narrow to one assigned project
limit number no Max rows (default 20, max 100), oldest first

reject_expense

Reject a pending expense with a required reason (surfaces to the submitter and reopens the document to draft on their next edit). Same permission and project scope as approve_expense.

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
expense_id string yes Expense id (from list_pending_expense_approvals)
reason string yes Why it is rejected (1..1000 chars, shown to the submitter)

submit_expense

Submit a draft (or rejected) expense for approval: status becomes pending and the document locks. Submitter or a submission-manager role. Expenses linked to a submission transition via the submission instead.

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
expense_id string yes Expense id (from list_expenses)

update_expense

Edit an expense (only drafts or rejected documents: editing a rejected one reopens it to draft). Owner or a submission-manager role; pass only the fields to change. Lines, when given, replace the existing set wholesale. Pending/approved/paid documents are locked.

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
expense_id string yes Expense id (from list_expenses)
vendor_name string no
vendor_tax_id string no
invoice_number string no
document_kind "invoice" | "receipt" | "nota" | "billing" | "other" no
issued_at number no Document date (epoch ms)
due_at number no Due date (epoch ms); pass 0 to clear
currency string no
subtotal_cents number no
tax_cents number no
total_cents number no
category string no
project_id string no In-tenant project; not editable once in a submission
subject_type "ticket" | "task" no Work-item link type
subject_id string no Work-item id
lines object[] no Replaces the line-item set wholesale
lines[].description string no
lines[].qty number no
lines[].unitAmountCents number no
lines[].amountCents number no
lines[].taxCents number no
lines[].glCode string no

Leave

approve_leave_request

Approve a PENDING leave request as one of its current approvers (or with the leave approval override). In a multi-stage workflow this approves the caller’s stage; the request is approved once the last stage is. Optional decision_note is stored and shown to the requester.

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
request_id string yes
decision_note string no Optional note (1..1000 chars)

cancel_leave_request

Cancel a PENDING leave request. The owner may cancel their own pending request; a leave approver may cancel any pending one. Approved/rejected/cancelled requests can no longer be cancelled.

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
request_id string yes

create_leave_request

Create and submit a leave request for the CALLER (status pending). Weekdays are computed server-side; the window may span at most 60 days and must not overlap the caller’s own pending/approved leave. type_id comes from list_leave_types; covering_peer_id must be another active teammate (list_leave_peers). Who approves follows the workspace’s approval workflow; it cannot be chosen here.

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
type_id string yes Leave type id (list_leave_types)
start_date integer | string yes Epoch ms or YYYY-MM-DD (inclusive)
end_date integer | string yes Epoch ms or YYYY-MM-DD (inclusive)
reason string yes 1..2000 chars, shown to the approver
covering_peer_id string yes Teammate covering the absence (list_leave_peers; not the caller)

get_leave_request

Get one leave request by id, including requester, type and covering-peer names, status and decision note. The caller must own the request or hold the leave approval permission. Get ids from list_leave_requests / list_pending_leave_approvals.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
request_id string yes

list_leave_peers

List active workspace members (excluding the caller) eligible as covering_peer_id for create_leave_request. Optional search matches name or email.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
search string no Substring match on name or email
limit integer no Max items (default 20, max 50)

list_leave_requests

List leave requests with requester/type/covering-peer names. Defaults to the caller’s OWN requests; scope=team covers the whole workspace and requires the leave approval permission. from/to select requests OVERLAPPING the window (request ends on/after from, starts on/before to).

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
scope "mine" | "team" no mine (default) = own requests; team = whole workspace (needs leave:approval:approve)
status "pending" | "approved" | "rejected" | "cancelled" | "revision_requested" no
from integer | string no Epoch ms or YYYY-MM-DD: window start (inclusive)
to integer | string no Epoch ms or YYYY-MM-DD: window end (inclusive)
limit integer no Max items (default 20, max 100)
offset integer no

list_leave_types

List the workspace’s leave types (Annual/Sick/Unpaid are seeded on first call). Use it to get the type_id required by create_leave_request.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.

No arguments.

list_pending_leave_approvals

List PENDING leave requests awaiting a decision in the workspace (requires the leave approval permission). Use it to find request_id values before approve_leave_request / reject_leave_request.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
limit integer no Max items (default 20, max 100)

reject_leave_request

Reject a PENDING leave request as one of its current approvers (or with the leave approval override); a reason is mandatory and becomes the decision note.

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
request_id string yes
reason string yes Why the request is rejected (1..1000 chars)

Approvals (every product)

decide_approval_task

Approve or reject one of the CALLER’s pending approval tasks (task_id from list_my_approval_tasks). Only the task’s assignee can decide it. A conflict means someone else decided or the request changed: list the tasks again.

  • Kind: Write
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
task_id string yes
decision "approved" | "rejected" yes
comment string no Optional note shown to the requester (max 2000 chars)

list_my_approval_tasks

List approval tasks waiting for the CALLER’s decision across every product (leave, expenses, timesheets…), oldest first. Each item has a task_id for decide_approval_task, the product, the record, the stage and how many approvals the stage still needs.

  • Kind: Read
  • Permission: Checked inside the tool, with the same rules as the REST API.
Argument Type Required Description
limit integer no Max items (default 20, max 100)