Skip to main content
Generated from the code running in production — do not edit. Tool names, titles and descriptions are in English in every language.

get_pipeline

Get the deals pipeline Read this account’s deals pipeline: its stages (id, label, kind open/won/lost, milestone) and the fields a deal carries (key, label, type, options). Read it first: move_deal takes a stage id from here and create_deal and update_deal take field keys from here. pipeline is null when the account has not created one; creating it is done in the dashboard. Read-only · Idempotent: Yes No inputs.

search_deals

Search deals Search the deals of this account: by stage, by kind of stage (open, won, lost), by contact, by days stuck in their stage (minDaysInStage), by text in the title (q, 2 to 80 characters) or by days since they closed. With no filter it lists the deals of every stage that is not archived. Paged: pass nextCursor back as cursor. count and totals (money per currency) cover everything the filter reaches, not only the page. Read-only · Idempotent: Yes Inputs

get_deal

Get a deal Read one deal and its history: the stage it is in and since when, its value, expected date and fields, and the last 20 changes of stage (newest first) with who made each, through which door, and why. A change made through a connection names it in grant.clientName. Read-only · Idempotent: Yes Inputs

create_deal

Create a deal Create a deal for a contact, in the first open stage unless stageId says another. Name the contact with contactId, or declare a person with contact {email, phone, name} (at least an email or a phone) when they are not in the account yet. fields are by the keys get_pipeline shows, each of the type it declares. reason (1 to 500 characters) is recorded in the deal history. idempotencyKey (8 to 128 characters, yours to choose) makes a retry safe: the same key answers the deal the first call made instead of a second one. What you write is recorded as written by this person through this connection. Write · Idempotent: Yes Inputs Nested inputs, as JSON Schema:

update_deal

Edit a deal Edit a deal: its title, value (amountMinor with currency), expected date (YYYY-MM-DD) and fields by the keys get_pipeline shows. Only what you name is written; null clears an optional value. It does not change the stage: that is move_deal. Pass expectedUpdatedAt (the deal updatedAt you read) to refuse the edit if someone changed the deal since. What you write is recorded as written by this person through this connection. Write · Idempotent: No Inputs Nested inputs, as JSON Schema:

move_deal

Move a deal to another stage Move a deal to another stage. toStageId is a stage id from get_pipeline; expectedStageId is the stage the deal is in as you last read it: if someone moved it since, the move is refused with stale_stage and details.currentStageId says where it is now, so read it again and decide. reason (1 to 500 characters) is recorded in the deal history. The move is recorded as made by this person through this connection. Write · Idempotent: No Inputs