List Opportunities
list_opportunitiesFind and page through CRM deals by title, account, stage, outcome, or field filters to retrieve missing deal IDs or check whether a deal exists before creating one.
Instructions
List deals: find them by title or account, or pull exactly the ones a task needs, a page at a time.
Call it to find a deal whose id you do not hold (query), to check for an existing
deal before create_opportunity, or to read the deals that match: by account, primary
contact, stage, outcome, or a filter on any field, including the account's
(organization.industry), the primary contact's (contact.title) and the rollups
interactions.count and interactions.last_at. Only open deals are listed unless
stage, outcome or a filter on either says otherwise. For per-stage totals use
get_pipeline; to read one deal in full, get_opportunity.
It opens no view: to show the user their pipeline, call get_pipeline.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_opportunities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | A field path to order by, "-" first for descending (e.g. "-weighted_value", "close_date"). Rows with no value sort last. Default: newest first. | |
| limit | No | Page size (default 50, at most 200). | |
| query | No | Free text matched against the deal's title and its account's name: split into words, each of which must appear in one of them. | |
| stage | No | Only deals in this stage (get_pipeline lists the keys). | |
| cursor | No | The next_cursor of the previous page. Pass the same query, filter, sort and columns with it. | |
| filter | No | Rows to keep, as {"field": path, "op": op, "value": v}, or {"and": [...]} / {"or": [...]} of those. The server instructions list the operators for each field type; list_fields lists the paths. | |
| columns | No | Return only these paths per row (plus id and uri), e.g. ["title", "stage", "value", "organization.name"]. Without it each row is the whole deal but its dossier. | |
| outcome | No | Only deals with this outcome. | |
| organization_id | No | Only this account's deals. | |
| primary_contact_id | No | Only deals with this primary contact. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||