Bonsai MCP by usefulapi

v1.2.1
io.usefulapi/bonsai Checked 2 days ago Published 1 day ago

Read clients, projects, tasks and invoices; create records and update tasks in Bonsai.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

bonsai_list_companies List companies

List client companies, optionally filtered by name. Bonsai API: GET /public-api/v1/companies.

ParameterTypeDescription
namestringMatches company names from the start of any word.
pageintegerPage to return, starting at 1.
page_sizeintegerRecords per page, 1-100 (default 25).

bonsai_get_company Get a company

Get one company by id. Bonsai API: GET /public-api/v1/companies/{id}.

ParameterTypeDescription
id *integerNumeric id.

bonsai_list_contacts List contacts

List contacts, optionally filtered by name, email or company. Bonsai API: GET /public-api/v1/contacts.

ParameterTypeDescription
company_idstringOne or more company ids, comma-separated.
emailstringMatches email addresses anywhere, ignoring case.
namestringMatches contact names anywhere, ignoring case.
pageintegerPage to return, starting at 1.
page_sizeintegerRecords per page, 1-100 (default 25).

bonsai_get_contact Get a contact

Get one contact by id. Bonsai API: GET /public-api/v1/contacts/{id}.

ParameterTypeDescription
id *integerNumeric id.

bonsai_list_deals List deals

List sales deals, optionally filtered by title, assignee (use 'me' for the key's member) or pipeline stage. Bonsai API: GET /public-api/v1/deals.

ParameterTypeDescription
assignee_member_idstringTeam member ids, comma-separated, or 'me'.
board_group_idstringOne or more pipeline stage ids, comma-separated.
pageintegerPage to return, starting at 1.
page_sizeintegerRecords per page, 1-100 (default 25).
titlestringMatches deal titles from the start of any word.

bonsai_list_projects List projects

List projects. Defaults to active projects. Bonsai API: GET /public-api/v1/projects.

ParameterTypeDescription
board_group_idstringOne or more pipeline stage ids, comma-separated.
pageintegerPage to return, starting at 1.
page_sizeintegerRecords per page, 1-100 (default 25).
statusstringWhich projects to include (default active).
titlestringMatches project titles from the start of any word.

bonsai_list_tasks List tasks

List tasks. Defaults to active tasks. Use 'me' for assignee_id to get the key's own tasks. Bonsai API: GET /public-api/v1/tasks.

ParameterTypeDescription
assignee_idstringUser ids, comma-separated, or 'me'.
billablestringOnly billable (true) or only non-billable (false) tasks.
duestringNamed due window. Do not combine with due_from or due_to.
due_fromstringDate as YYYY-MM-DD.
due_tostringDate as YYYY-MM-DD.
pageintegerPage to return, starting at 1.
page_sizeintegerRecords per page, 1-100 (default 25).
prioritystringOne or more priorities, comma-separated: urgent, high, medium, low.
project_idstringOne or more project ids, comma-separated.
scopestringWhich tasks to include (default active).
task_status_idstringOne or more task status ids, comma-separated.
titlestringMatches task titles, ignoring case.

bonsai_get_task Get a task

Get one task by uuid. Bonsai API: GET /public-api/v1/tasks/{uuid}.

ParameterTypeDescription
uuid *stringThe record's uuid.

bonsai_list_task_comments List task comments

List comments on a task. Default is written comments only; 'events' returns system entries. Bonsai API: GET /public-api/v1/tasks/{task_id}/comments.

ParameterTypeDescription
task_uuid *stringThe record's uuid.
kindstringWhich entries to return (default user_created).
pageintegerPage to return, starting at 1.
page_sizeintegerRecords per page, 1-100 (default 25).

bonsai_list_time_entries List time entries

List logged time entries by date range, member, project or client. Bonsai API: GET /public-api/v1/time_entries.

ParameterTypeDescription
billing_statusstringOne or more of: billed, unbilled, non_billable (comma-separated). Needs billing permission.
company_idstringOne or more client company ids, comma-separated.
date_fromstringDate as YYYY-MM-DD.
date_tostringDate as YYYY-MM-DD.
owner_member_idstringTeam member ids, comma-separated, or 'me'.
pageintegerPage to return, starting at 1.
page_sizeintegerRecords per page, 1-100 (default 25).
project_idstringOne or more project ids, comma-separated.

bonsai_list_invoices List invoices

List invoices by number, project, client company or contact. Bonsai API: GET /public-api/v1/invoices.

ParameterTypeDescription
company_idstringOne or more client company ids, comma-separated.
contact_idstringOne or more contact ids, comma-separated.
invoice_numberstringExact invoice number(s), comma-separated.
pageintegerPage to return, starting at 1.
page_sizeintegerRecords per page, 1-100 (default 25).
project_idstringOne or more project ids, comma-separated.

bonsai_list_notes List notes

List notes, optionally attached to one record (give both record_type and record_id). Bonsai API: GET /public-api/v1/notes.

ParameterTypeDescription
created_by_member_idstringTeam member ids, comma-separated, or 'me'.
date_fromstringDate as YYYY-MM-DD.
date_tostringDate as YYYY-MM-DD.
pageintegerPage to return, starting at 1.
page_sizeintegerRecords per page, 1-100 (default 25).
record_idstringId of the record named by record_type.
record_typestringKind of record. Needs record_id.

bonsai_list_docs List documents

List quotes, proposals, agreements and other documents, filtered by status or linked record. Bonsai API: GET /public-api/v1/docs.

ParameterTypeDescription
archivedstringOnly archived (true) or only active (false) documents.
company_idstringOne or more client company ids, comma-separated.
contact_idstringOne or more contact ids, comma-separated.
deal_idstringOne or more deal ids, comma-separated.
pageintegerPage to return, starting at 1.
page_sizeintegerRecords per page, 1-100 (default 25).
project_idstringOne or more project ids, comma-separated.
statusstringOne or more statuses, comma-separated: draft, sent, completed, expired, awaiting_payment.

bonsai_get_doc Get a document

Get one document by id. Bonsai API: GET /public-api/v1/docs/{id}.

ParameterTypeDescription
id *integerNumeric id.

bonsai_list_team_members List team members

List team members, optionally filtered by name, user or project. Bonsai API: GET /public-api/v1/team_members.

ParameterTypeDescription
namestringMatches member names, ignoring case.
pageintegerPage to return, starting at 1.
page_sizeintegerRecords per page, 1-100 (default 25).
project_idstringOne or more project ids, comma-separated.
user_idstringOne or more user ids, comma-separated.

bonsai_list_task_statuses List task statuses

List the task statuses (board columns) you can set on a task. Bonsai API: GET /public-api/v1/task_statuses.

ParameterTypeDescription
pageintegerPage to return, starting at 1.
page_sizeintegerRecords per page, 1-100 (default 25).

bonsai_list_time_off List time off

List time off by date range or team member. Bonsai API: GET /public-api/v1/time_off.

ParameterTypeDescription
date_fromstringTime off that ends on or after this day.
date_tostringTime off that starts on or before this day.
pageintegerPage to return, starting at 1.
page_sizeintegerRecords per page, 1-100 (default 25).
team_member_idstringTeam member ids, comma-separated, or 'me'.
time_off_category_idstringOne or more time off category ids, comma-separated.

bonsai_list_tax_rates List tax rates

List the tax rates configured in the account. Bonsai API: GET /public-api/v1/tax_rates.

ParameterTypeDescription
pageintegerPage to return, starting at 1.
page_sizeintegerRecords per page, 1-100 (default 25).

bonsai_create_company Create a company

Create a client company. Bonsai API: POST /public-api/v1/companies.

ParameterTypeDescription
name *stringCompany name.
descriptionstring | nullFree-text description.

bonsai_create_contact Create a contact

Create a contact, optionally linked to a company. Bonsai API: POST /public-api/v1/contacts.

ParameterTypeDescription
email *stringEmail address.
name *stringFull name.
company_idClient company id, if the contact belongs to one.
job_titlestring | null
phone_numberstring | null

bonsai_create_task Create a task

Create a task. It can sit on a project, a deal, both or neither. Bonsai API: POST /public-api/v1/tasks.

ParameterTypeDescription
title *stringTask title.
assignee_member_idTeam member id, or 'me'; null leaves it unassigned.
billableboolean
deal_id
descriptionstring | null
due_date
priority
project_id
start_date
task_status_idstring | nullTask status id from bonsai_list_task_statuses.
time_estimate_in_minutes

bonsai_update_task Update a task

Change fields on a task. Only the fields you pass change. Bonsai API: PATCH /public-api/v1/tasks/{uuid}.

ParameterTypeDescription
uuid *stringThe record's uuid.
assignee_member_idAssign to this member, or 'me'; null unassigns.
billableboolean
deal_idMove to this deal; null takes it off.
descriptionstring | nullHTML fragment; null clears it.
due_datenull clears the due date.
prioritystringCannot be cleared once set.
project_idMove to this project; null detaches it.
start_datenull clears the start date.
tag_idsarrayTags on the task, replacing the current ones. An empty array removes them all.
task_status_idstring
time_estimate_in_minutesnull clears it.
titlestring

bonsai_create_task_comment Comment on a task

Add a written comment to a task. Bonsai API: POST /public-api/v1/tasks/{task_id}/comments.

ParameterTypeDescription
body *stringComment text.
task_uuid *stringThe record's uuid.

bonsai_log_time Log time

Log a time entry for a date, optionally on a project or task. Bonsai API: POST /public-api/v1/time_entries.

ParameterTypeDescription
date *stringDate as YYYY-MM-DD.
seconds *integerDuration in seconds.
non_billableboolean | null
notesstring | null
owner_member_idTeam member id, or 'me'; defaults to the key's member.
project_id
task_uuid

bonsai_create_note Create a note

Create a note, optionally attached to a company, project, contact or deal. Bonsai API: POST /public-api/v1/notes.

ParameterTypeDescription
content *stringNote text.
date
record_idId of the record named by record_type; send with record_type.
record_typeKind of record to attach to; send with record_id.
titlestring | null
visibility