getContracts
List contracts. Omit locationRef and customerRef to list contracts across all locations, or provide one to scope to a location or customer. Call getLocations to list locations, or getLocation to fetch one by locationId. Call getCustomers to list valid customerRef values.
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": "getContracts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Case-insensitive search by contract title, within customerRef or locationRef when given and across the network otherwise. | |
| limit | No | Maximum number of contracts per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. | |
| status | No | Filter by status: 'draft' created and not sent yet, 'issued' sent and waiting for signatures, 'signed' signed by everyone and active, 'declined' a signer declined it or it expired unsigned, 'terminated' ended by an admin after it was signed. Defaults to every status. Comma-separated, one or more of: draft, issued, signed, declined, terminated. | |
| createDate | No | Filter by create date (createDate). Provide gte, lte ISO datetimes. | |
| customerRef | No | UUID of the customer (membership or company). When set, returns only that customer's contracts. | |
| locationRef | No | UUID of the location. When set, returns contracts in that location. Omit both locationRef and customerRef to list contracts across every location of the network. | |
| nextPageToken | No | Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contracts | Yes | ||
| nextPageToken | No | Pass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page. |