attributed_leads_get
Retrieve attributed leads for a specific tenant within a defined time frame, filtered by lead type and pagination settings. Use this tool to access detailed lead data via the ServiceTitan MCP Server.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tenant": "<tenant>",
"fromUtc": "<fromUtc>",
"toUtc": "<toUtc>"
},
"name": "attributed_leads_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fromUtc | Yes | Format - date-time (as date-time in RFC3339). Gets or sets the start date and time in UTC for the filtering period. | |
| includeTotal | No | Whether total count should be returned | |
| leadType | No | Gets or sets the type of lead for filtering purposes. Possible values are: LeadType.Call, LeadType.WebBooking, LeadType.WebLeadForm, LeadType.ManualJob. If null, data for all lead types is returned. | |
| page | No | Format - int32. The logical number of page to return, starting from 1 | |
| pageSize | No | Format - int32. How many records to return (50 by default) | |
| tenant | Yes | Format - int64. Tenant ID | |
| toUtc | Yes | Format - date-time (as date-time in RFC3339). Gets or sets the end date and time in UTC for the filtering period. |