listContracts
listContractsRetrieve a paginated list of contracts with filters for ID, customer, name, start/end dates, creation date, and status.
Instructions
Retrieve a paginated list of contracts, with extensive options for filtering by ID, customer ID, name, start date, end date, creation date, and status.
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": "listContracts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Filter by Contract ID (exact match). | |
| name | No | Filter by Contract Name (exact match). | |
| limit | No | Maximum number of records to return per page (defaults to 10). | |
| order | No | Order of results (e.g., '-created_at' for descending creation date). | -created_at |
| cursor | No | The cursor for pagination to fetch the next or previous set of records. | |
| id__in | No | Filter by a comma-separated list of Contract IDs. | |
| status | No | Filter contracts by their status. | |
| end_date | No | Contract End Date (exact match, ISO 8601). | |
| name__in | No | Filter by a comma-separated list of Contract Names. | |
| created_at | No | Contract Created At (exact match, ISO 8601). | |
| id__isnull | No | Filter by whether Contract ID is null. | |
| name__like | No | Contract Name (case-sensitive partial match). | |
| start_date | No | Contract Start Date (exact match, ISO 8601). | |
| status__in | No | Filter by a comma-separated list of contract statuses. | |
| customer_id | No | Filter by Customer ID (exact match). | |
| name__ilike | No | Contract Name (case-insensitive partial match). | |
| end_date__gt | No | Contract End Date (greater than, ISO 8601). | |
| end_date__in | No | Filter by a comma-separated list of Contract End Dates. | |
| end_date__lt | No | Contract End Date (less than, ISO 8601). | |
| name__isnull | No | Filter by whether Contract Name is null. | |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow | |
| end_date__gte | No | Contract End Date (greater than or equal to, ISO 8601). | |
| end_date__lte | No | Contract End Date (less than or equal to, ISO 8601). | |
| end_date__neq | No | Contract End Date (not equal, ISO 8601). | |
| created_at__gt | No | Contract Created At (greater than, ISO 8601). | |
| created_at__in | No | Filter by a comma-separated list of Contract Creation Dates. | |
| created_at__lt | No | Contract Created At (less than, ISO 8601). | |
| start_date__gt | No | Contract Start Date (greater than, ISO 8601). | |
| start_date__in | No | Filter by a comma-separated list of Contract Start Dates. | |
| start_date__lt | No | Contract Start Date (less than, ISO 8601). | |
| created_at__gte | No | Contract Created At (greater than or equal to, ISO 8601). | |
| created_at__lte | No | Contract Created At (less than or equal to, ISO 8601). | |
| created_at__neq | No | Contract Created At (not equal, ISO 8601). | |
| customer_id__in | No | Filter by a comma-separated list of Customer IDs. | |
| start_date__gte | No | Contract Start Date (greater than or equal to, ISO 8601). | |
| start_date__lte | No | Contract Start Date (less than or equal to, ISO 8601). | |
| start_date__neq | No | Contract Start Date (not equal, ISO 8601). | |
| end_date__isnull | No | Filter by whether Contract End Date is null. | |
| created_at__isnull | No | Filter by whether Contract Created At is null. | |
| start_date__isnull | No | Filter by whether Contract Start Date is null. | |
| customer_id__isnull | No | Filter by whether Customer ID is null. |