/autotask:contractsfrom autotask
Manages Autotask contract and service agreement types (recurring services, block hours, time & materials, fixed price, retainer), service/service bundle associations, SLAs, and billing for MSP account managers.
Ships in autotask. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Contracts in Autotask define the service relationship with clients - what services you provide, how you bill for them, and what service levels apply. Contracts control how time and expenses flow to invoices and are critical for MSP financial management.
autotask-billing.autotask-product-catalog.kaseya-bms-api-patterns.halopsa-contracts.| Type | Description | Billing Method |
|---|---|---|
| Recurring Services | Monthly/annual managed services | Fixed recurring fee |
| Block Hours | Prepaid hour bank | Deduct from balance |
| Time & Materials | Pay as you go | Bill actual time |
| Fixed Price | Project-based fixed fee | Milestone billing |
| Retainer | Prepaid monthly hours | Use or lose |
| Field | Description | Required |
|---|---|---|
id | Unique identifier | System |
contractName | Contract name | Yes |
companyID | Client company | Yes |
contractType | Type of contract | Yes |
status | Contract status | Yes |
startDate | Contract start | Yes |
endDate | Contract end | Yes |
setupFee | One-time setup fee | No |
timeReportingRequiresStartStopTimes | Require start/stop | No |
serviceLevelAgreementID | SLA assignment | No |
| ID | Status | Description |
|---|---|---|
| 1 | Active | Current, billable |
| 2 | Inactive | Suspended |
| 3 | Cancelled | Terminated |
Services define what's included in a contract:
| Field | Description |
|---|---|
serviceName | Name of service |
unitPrice | Price per unit |
unitCost | Cost per unit |
periodType | Monthly, Quarterly, Annual |
isOptional | Required vs optional |
The autotask-mcp server exposes typed contract tools — prefer these over
autotask_raw_request. Read tools return contract header fields only
(no service lines), keeping responses light.
Tool: autotask_search_contracts
Args: {
"companyID": 12345,
"status": 1,
"searchTerm": "Managed",
"pageSize": 25
}
All filters optional: searchTerm (contains-match on contract name), companyID, status, contractType (picklist ID), endDateFrom / endDateTo (ISO YYYY-MM-DD), pageSize (default 25, max 500). Filter on contractType and end date server-side, so the page-size limit applies to the filtered set.
To fetch one contract by ID, call autotask_get_contract (id; header fields only). For a renewal pipeline, call autotask_list_expiring_contracts with daysAhead (default 60), status: 1 (In Effect), pageSize: 500 (default 100), optional companyID, and includeExpired: true to also catch contracts already past their end date. If 500 rows come back the list may be incomplete: split the request by companyID and warn about any company that still reaches the cap. Sort the result by endDate:
endDate on or before today → expired but still Active — the compliance-risk case. Autotask does not auto-deactivate expired contracts, so this is how clients still receiving service on expired paper are found.endDate within the next 30/60/90 days → the renewal call list, in ascending urgency order.Tool: autotask_create_contract
Args: {
"companyID": 12345,
"contractName": "Acme Corp - Managed Services",
"contractType": 1,
"contractCategory": 3,
"startDate": "2026-01-01",
"endDate": "2026-12-31",
"status": 1
}
Required: companyID, contractName, contractType, contractCategory, startDate, endDate
For multi-contract onboarding (e.g. one contract per client location), pass up to 50 shells in one call — same fields per item as autotask_create_contract:
Tool: autotask_create_contracts_bulk
Args: {
"contracts": [
{ "companyID": 12345, "contractName": "Acme - HQ", "contractType": 1, "contractCategory": 3, "startDate": "2026-01-01", "endDate": "2026-12-31" },
{ "companyID": 12345, "contractName": "Acme - Branch", "contractType": 1, "contractCategory": 3, "startDate": "2026-01-01", "endDate": "2026-12-31" }
]
}
Shells are created sequentially (Autotask has no batch endpoint); a failure on one shell does not abort the rest. Each item reports {index, contractName, success, id | error} — retry only the failures.
Tool: autotask_update_contract
Args: { "id": 54321, "endDate": "2027-12-31", "status": 1 }
Only fields provided change — the typical renewal move is extending endDate.
autotask_create_contract_service (required: contractID, serviceID, unitPrice) and autotask_update_contract_service (required: id, contractID) manage the ContractServices line items on a contract. Reading those lines, their billed units and the recurring-revenue roll-up is covered in autotask-contract-services.
Raw REST shapes for reference — the typed tools above cover these; reach for autotask_raw_request only for entities without typed tools (ContractBlocks, ContractRetainers, etc.).
POST /v1.0/Contracts
Content-Type: application/json
{
"contractName": "Acme Corp - Managed Services",
"companyID": 12345,
"contractType": 1,
"status": 1,
"startDate": "2024-01-01",
"endDate": "2024-12-31",
"setupFee": 500.00,
"timeReportingRequiresStartStopTimes": true,
"serviceLevelAgreementID": 1
}
POST /v1.0/ContractServices
Content-Type: application/json
{
"contractID": 54321,
"serviceID": 111,
"unitPrice": 150.00,
"adjustedPrice": 150.00,
"quantity": 50,
"effectiveDate": "2024-01-01"
}
POST /v1.0/Contracts
Content-Type: application/json
{
"contractName": "Acme Corp - Block Hours",
"companyID": 12345,
"contractType": 4,
"status": 1,
"startDate": "2024-01-01",
"endDate": "2024-06-30"
}
Then add block hours:
POST /v1.0/ContractBlocks
Content-Type: application/json
{
"contractID": 54322,
"datePurchased": "2024-01-01",
"hoursPurchased": 40,
"hourlyRate": 150.00,
"isPaid": true
}
Active contracts for a company:
{
"filter": [
{"field": "companyID", "op": "eq", "value": 12345},
{"field": "status", "op": "eq", "value": 1}
]
}
Contracts expiring soon:
{
"filter": [
{"field": "status", "op": "eq", "value": 1},
{"field": "endDate", "op": "lte", "value": "2024-03-31"},
{"field": "endDate", "op": "gte", "value": "2024-01-01"}
]
}
GET /v1.0/ContractBlocks/query?search={"filter":[{"field":"contractID","op":"eq","value":54322}]}
Calculate remaining hours:
hoursPurchased - Sum of time entries against contractCreate contract
Add services
Configure billing
Assign to tickets
Identify expiring contracts
autotask_list_expiring_contracts with daysAhead: 90, status: 1, pageSize: 500 and includeExpired: true, bucketed by endDate into 30/60/90 days (a full page of 500 means the list may be incomplete)endDate before today are already lapsed but still marked activeReview contract performance
Negotiate renewal
Create renewal
Monitor balance
Replenish as needed
Handle overages
Contracts can be linked to SLAs:
| SLA Metric | Description |
|---|---|
| Response Time | Time to first response |
| Resolution Time | Time to resolve |
| Uptime | System availability % |
| Business Hours | When SLA applies |
SLA violations trigger alerts and can affect contract terms.
| Code | Message | Resolution |
|---|---|---|
| 400 | Invalid contract type | Use valid contract type ID |
| 400 | EndDate before StartDate | Fix date sequence |
| 409 | Cannot modify - has billing | Adjust dates only |
| 404 | ServiceID not found | Verify service exists |
"CompanyID is required" - Must associate with a company
"StartDate is required" - All contracts need start date
"Invalid service for contract type" - Service must match contract type
What SKILL.md sets; muted values are Claude Code's defaults
When working with recurring services, block hours, time & materials, or contract billing in Autotask. Use when: autotask contract, service agreement, block hours, recurring service, contract renewal, contract billing, managed services agreement, or autotask billing.
Three short reads, in order
autotask, contract-management, msp-billing, service-agreements
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin autotask16 skills in this plugin
/api-patternsAutotask API PatternsAutotask REST API fundamentals: header-based authentication, zone detection, the query/filter DSL (14 operators, logical grouping, includes), pagination, rate limits, and CRUD conventions across the 215+ entity PSA.
/billingAutotask BillingAutotask billing item retrieval, approval-level workflows, and invoice search — covering billing item types, approval status filtering, and reconciliation of billable work against invoices for MSP finance teams./configuration-itemsAutotask Configuration ItemsAutotask Configuration Item (CI) asset management: CI types and categories, lifecycle status codes, the CI field schema, related-item relationships, DNS records, notes, and contract/billing associations for MSP infrastructure tracking.
/contract-servicesAutotask Contract Services and Recurring BillingThe recurring-billing side of Autotask contracts: service and bundle lines (autotask_search_contract_services, autotask_search_contract_service_bundles), the billed unit rows behind them (autotask_search_contract_service_units, autotask_search_contract_service_bundle_units), the per-contract monthly recurring-revenue roll-up (autotask_get_contract_recurring_lines), and writing service lines and onboarding contract shells.
/crmAutotask CRMAutotask CRM entities - companies (accounts), contacts, and sites/locations - including field references, company type classifications, and how these records underpin tickets, contracts, and projects for MSP account management.
/expensesAutotask ExpensesAutotask expense report and expense item structure - the report/item parent-child relationship, approval status workflow, expense categories, payment types, and the billable vs reimbursable distinction for MSP operational expenses.
Other plugins' skills for the same job