ServiceTitan MCP Server

campaigns_getcosts

Retrieve campaign cost details by specifying parameters like tenant ID, year, month, and pagination. Supports sorting and includes total count for accurate cost analysis.

Input Schema

NameRequiredDescriptionDefault
idYesFormat - int64.
includeTotalNoWhether total count should be returned
monthNoFormat - int32.
pageNoFormat - int32. The logical number of page to return, starting from 1
pageSizeNoFormat - int32. How many records to return (50 by default)
sortNoApplies sorting by the specified field: "?sort=+FieldName" for ascending order, "?sort=-FieldName" for descending order. Available fields are: Id, Date (Year + Month)
tenantYesFormat - int64. Tenant ID
yearNoFormat - int32.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "id": { "description": "Format - int64.", "type": "integer" }, "includeTotal": { "description": "Whether total count should be returned", "type": "boolean" }, "month": { "description": "Format - int32.", "type": "integer" }, "page": { "description": "Format - int32. The logical number of page to return, starting from 1", "type": "integer" }, "pageSize": { "description": "Format - int32. How many records to return (50 by default)", "type": "integer" }, "sort": { "description": "Applies sorting by the specified field:\n\"?sort=+FieldName\" for ascending order,\n\"?sort=-FieldName\" for descending order.\n\nAvailable fields are: Id, Date (Year + Month)", "type": "string" }, "tenant": { "description": "Format - int64. Tenant ID", "type": "integer" }, "year": { "description": "Format - int32.", "type": "integer" } }, "required": [ "id", "tenant" ], "type": "object" }

You must be authenticated.

Other Tools from ServiceTitan MCP Server

Related Tools

ID: mrnu4dtu2r