| name | pp-servicetitan-pricebook | |||||||
|---|---|---|---|---|---|---|---|---|
| description | A focused per-module ServiceTitan CLI for the Pricebook — sync once, then audit markup, costs, vendor parts, and warranties the ST UI cannot. Trigger phrases: `use servicetitan-pricebook`, `run servicetitan-pricebook`, `sync the pricebook`, `check markup drift`, `reconcile a vendor quote`, `update pricing from this invoice`, `audit warranty text`, `find duplicate parts in the pricebook`, `find SKUs missing a 2M part number`, `rewrite this pricebook description`, `find a part for`, `pricebook health check`, `which prices drifted`. | |||||||
| author | user | |||||||
| license | Apache-2.0 | |||||||
| argument-hint | <command> [args] | install cli|mcp | |||||||
| allowed-tools | Read Bash | |||||||
| metadata |
|
This skill drives the servicetitan-pricebook-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
- Install via the Printing Press installer. It defaults binaries to
$HOME/.local/binon macOS/Linux and%LOCALAPPDATA%\Programs\PrintingPress\binon Windows:npx -y @mvanhorn/printing-press-library install servicetitan-pricebook --cli-only
- Verify:
servicetitan-pricebook-pp-cli --version - Ensure the reported install directory is on
$PATHfor the agent/runtime that will invoke this skill.
If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.3 or newer):
go install github.com/mvanhorn/printing-press-library/library/sales-and-crm/servicetitan-pricebook/cmd/servicetitan-pricebook-pp-cli@latestIf --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.
Use this CLI when an agent or operator needs to inspect or maintain the ServiceTitan Pricebook — costs, prices, markup tiers, vendor part numbers, warranty text, category taxonomy — without loading the 600+-tool general ST MCP. It is the right choice for margin-discipline checks after vendor cost changes, vendor-quote reconciliation, and pricebook hygiene audits. Run sync first; the novel audit commands read the local store.
These capabilities aren't available in any other tool for this API.
-
markup-audit— Find every material and equipment SKU whose actual markup has drifted off the materials-markup tier ladder.Reach for this after any vendor cost change to catch SKUs that are now mispriced for their tier before margin erodes.
servicetitan-pricebook-pp-cli markup-audit --tolerance 5 --agent
-
cost-drift— Show every SKU whose cost moved since a given date, with old and new cost, old and new price, and whether the price followed.Reach for this to see whether recent vendor cost increases were actually passed through to price.
servicetitan-pricebook-pp-cli cost-drift --since 2026-04-01 --agent
-
reprice— Compute the tier-correct price for markup-drifted SKUs and emit the exact update payloads; preview by default, --apply to write.Reach for this after markup-audit to apply hold-markup pricing in one pass instead of editing each SKU by hand.
servicetitan-pricebook-pp-cli reprice --tolerance 5 --agent
-
vendor-part-gaps— List materials and equipment whose primary vendor part number is empty — the missing 2M Part # sweep.Reach for this to enforce the 2M Part # discipline before a vendor-quote reconcile, which matches on vendor part.
servicetitan-pricebook-pp-cli vendor-part-gaps --kind material --agent
-
warranty-lint— Flag equipment whose warranty text is not prefixed Manufacturer's, or that is missing JKA's 1-year parts & labor line.Reach for this to keep warranty attribution honest — manufacturer warranties clearly labeled, JKA's own offering listed alongside.
servicetitan-pricebook-pp-cli warranty-lint --agent
-
orphan-skus— List materials, equipment, and services assigned to inactive or non-existent categories.Reach for this during category taxonomy cleanup to find SKUs that fell out of the visible tree.
servicetitan-pricebook-pp-cli orphan-skus --agent
-
dedupe— Cluster near-duplicate materials and equipment so excess pricebook growth can be collapsed.Reach for this to find redundant parts before they multiply — duplicate SKUs scatter estimates and inventory across entries that should be one.
servicetitan-pricebook-pp-cli dedupe --kind material --min-score 0.8 --agent
-
copy-audit— Flag SKUs whose display name or description is empty, too short, ALL-CAPS, a bare part number, or otherwise not customer-facing.Reach for this to find pricebook entries that read like internal shorthand instead of customer-facing sales copy.
servicetitan-pricebook-pp-cli copy-audit --kind equipment --agent
-
quote-reconcile— Match a vendor cost file against synced SKUs by vendor part number and print a no-write diff of proposed cost changes; accepts CSV or Claude-extracted JSON from a quote, order confirmation, or invoice PDF.Reach for this when a vendor quote, order confirmation, or invoice lands; have Claude extract it to JSON, then reconcile against current costs before touching the pricebook.
servicetitan-pricebook-pp-cli quote-reconcile ./2m-quote-2026-05.csv --agent
-
bulk-plan— Turn a reviewed cost or copy change file into a single pricebook bulk-update payload instead of N individual update calls.Reach for this to apply a batch of reconciled changes in one rate-limit-friendly call.
servicetitan-pricebook-pp-cli bulk-plan ./reviewed-changes.csv --agent
-
health— One compact rollup of markup-drift, vendor-part-gap, warranty-lint, cost-drift, orphan-SKU, duplicate, and weak-copy counts.Reach for this first in any pricebook session to see what needs attention before drilling into a specific audit.
servicetitan-pricebook-pp-cli health --agent
-
find— Forgiving ranked search over synced SKUs tuned for describing a part you do not know the code for.Reach for this when a tech describes a part in plain words — it returns suggested SKUs with the code, price, vendor part, and category they need to pick one.
servicetitan-pricebook-pp-cli find "1 hp submersible pump motor" --agent
categories — Manage categories
servicetitan-pricebook-pp-cli categories create— Post to add a new category to your pricebookservicetitan-pricebook-pp-cli categories delete— Deletes an existing category from your pricebookservicetitan-pricebook-pp-cli categories get— Gets category detailsservicetitan-pricebook-pp-cli categories get-list— GET the categories in your pricebookservicetitan-pricebook-pp-cli categories update— Edits an existing category in your pricebook
clientspecificpricing — Manage clientspecificpricing
servicetitan-pricebook-pp-cli clientspecificpricing client-specific-pricing-get-all-rate-sheets— Client specific pricing_get all rate sheetsservicetitan-pricebook-pp-cli clientspecificpricing client-specific-pricing-update-rate-sheet— Client specific pricing_update rate sheet
discounts-and-fees — Manage discounts and fees
servicetitan-pricebook-pp-cli discounts-and-fees discount-and-fees-create— Post to add a new discount or fee to your pricebookservicetitan-pricebook-pp-cli discounts-and-fees discount-and-fees-delete— Deletes a discount or fee from your pricebookservicetitan-pricebook-pp-cli discounts-and-fees discount-and-fees-get— Get details of a discount or fee in the pricebook.servicetitan-pricebook-pp-cli discounts-and-fees discount-and-fees-get-list— Get data on all of the discounts or fees in the pricebook. Supports optional search filtering.servicetitan-pricebook-pp-cli discounts-and-fees discount-and-fees-update— Edit an existing item in your pricebook
equipment — Manage equipment
servicetitan-pricebook-pp-cli equipment create— Post to add new equipment to your pricebookservicetitan-pricebook-pp-cli equipment delete— Deletes equipment from your pricebookservicetitan-pricebook-pp-cli equipment get— Get details of equipment in the pricebook.servicetitan-pricebook-pp-cli equipment get-list— Get data on all the equipment in the pricebook. Supports optional search filtering.servicetitan-pricebook-pp-cli equipment update— Edit an existing item in your pricebook
images — Manage images
servicetitan-pricebook-pp-cli images get— Downloads a specified pricebook image.servicetitan-pricebook-pp-cli images post— Uploads a specified image to temporary storage. To associate the image with a pricebook item, send a separate...
materials — Manage materials
servicetitan-pricebook-pp-cli materials create— Add a new Materials to your pricebookservicetitan-pricebook-pp-cli materials delete— Deletes a material from your pricebookservicetitan-pricebook-pp-cli materials get— Get details on a material in the pricebook.servicetitan-pricebook-pp-cli materials get-cost-types— Get details on materials in the pricebook.servicetitan-pricebook-pp-cli materials get-list— Get details on materials in the pricebook. Supports optional search filtering.servicetitan-pricebook-pp-cli materials update— Edit an existing item in your pricebook
materialsmarkup — Manage materialsmarkup
servicetitan-pricebook-pp-cli materialsmarkup materials-markup-create— Create materials markup itemservicetitan-pricebook-pp-cli materialsmarkup materials-markup-get— Get materials markup itemservicetitan-pricebook-pp-cli materialsmarkup materials-markup-get-list— Get materials markup collectionservicetitan-pricebook-pp-cli materialsmarkup materials-markup-update— Update materials markup item
pricebook — Manage pricebook
servicetitan-pricebook-pp-cli pricebook bulk-create— Pricebook bulk_createservicetitan-pricebook-pp-cli pricebook bulk-update— Pricebook bulk_update
pricebook-export — Manage pricebook export
servicetitan-pricebook-pp-cli pricebook-export categories— Provides export feed for categoriesservicetitan-pricebook-pp-cli pricebook-export equipment— Provides export feed for equipmentservicetitan-pricebook-pp-cli pricebook-export materials— Provides export feed for materialsservicetitan-pricebook-pp-cli pricebook-export services— Provides export feed for services
services — Manage services
servicetitan-pricebook-pp-cli services create— Post to add a new service to your pricebookservicetitan-pricebook-pp-cli services delete— Deletes a service from your pricebookservicetitan-pricebook-pp-cli services get— Get details a service in the pricebook.servicetitan-pricebook-pp-cli services get-list— Get data on all of the services in the pricebook. Supports optional search filtering.servicetitan-pricebook-pp-cli services update— Edit an existing item in your pricebook
When you know what you want to do but not which command does it, ask the CLI directly:
servicetitan-pricebook-pp-cli which "<capability in your own words>"which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match — fall back to --help or use a narrower query.
servicetitan-pricebook-pp-cli markup-audit --tolerance 5 --agentSync the latest pricebook, then list every SKU whose markup drifted more than 5% off its tier.
servicetitan-pricebook-pp-cli quote-reconcile ./2m-quote-2026-05.csv --agentMatch the quote's vendor part numbers against synced SKUs and print the proposed cost diff without writing.
servicetitan-pricebook-pp-cli materials get-list 42 --active True --agent --select results.data.code,results.data.cost,results.data.primaryVendor.vendorPartMaterials responses are large and deeply nested; --select with dotted paths returns only the fields an agent needs to reason about cost and vendor part.
servicetitan-pricebook-pp-cli health --agentOne rollup of every audit count so an agent knows where to look before drilling in.
servicetitan-pricebook-pp-cli vendor-part-gaps --kind material --agentList materials whose primary vendor part number is empty so they can be filled before the next reconcile.
ServiceTitan uses composed auth: a static ST-App-Key header (set ST_APP_KEY) plus an OAuth2 client-credentials bearer token (set ST_CLIENT_ID and ST_CLIENT_SECRET). Run servicetitan-pricebook-pp-cli auth login to walk the credential setup, then set the three credentials plus ST_TENANT_ID (your numeric tenant ID) in your environment. The client mints and refreshes the bearer token automatically and attaches both headers to every call. Whitespace is stripped defensively from credentials — a known JKA gotcha where a trailing newline in an env file produced opaque invalid_client 400s.
Run servicetitan-pricebook-pp-cli doctor to verify setup.
Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.
-
Pipeable — JSON on stdout, errors on stderr
-
Filterable —
--selectkeeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:servicetitan-pricebook-pp-cli categories get mock-value mock-value --agent --select id,name,status
-
Previewable —
--dry-runshows the request without sending -
Offline-friendly — sync/search commands can use the local SQLite store when available
-
Non-interactive — never prompts, every input is a flag
-
Explicit retries — use
--idempotentonly when an already-existing create should count as success, and--ignore-missingonly when a missing delete target should count as success
Commands that read from the local store or the API wrap output in a provenance envelope:
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal AND no machine-format flag (--json, --csv, --compact, --quiet, --plain, --select) is set — piped/agent consumers and explicit-format runs get pure JSON on stdout.
When you (or the agent) notice something off about this CLI, record it:
servicetitan-pricebook-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
servicetitan-pricebook-pp-cli feedback --stdin < notes.txt
servicetitan-pricebook-pp-cli feedback list --json --limit 10
Entries are stored locally at ~/.servicetitan-pricebook-pp-cli/feedback.jsonl. They are never POSTed unless SERVICETITAN_PRICEBOOK_FEEDBACK_ENDPOINT is set AND either --send is passed or SERVICETITAN_PRICEBOOK_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.
Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
| Sink | Effect |
|---|---|
stdout |
Default; write to stdout only |
file:<path> |
Atomically write output to <path> (tmp + rename) |
webhook:<url> |
POST the output body to the URL (application/json or application/x-ndjson when --compact) |
Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
servicetitan-pricebook-pp-cli profile save briefing --json
servicetitan-pricebook-pp-cli --profile briefing categories get mock-value mock-value
servicetitan-pricebook-pp-cli profile list --json
servicetitan-pricebook-pp-cli profile show briefing
servicetitan-pricebook-pp-cli profile delete briefing --yes
Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found |
| 4 | Authentication required |
| 5 | API error (upstream issue) |
| 7 | Rate limited (wait and retry) |
| 10 | Config error |
Parse $ARGUMENTS:
- Empty,
help, or--help→ showservicetitan-pricebook-pp-cli --helpoutput - Starts with
install→ ends withmcp→ MCP installation; otherwise → see Prerequisites above - Anything else → Direct Use (execute as CLI command with
--agent)
Install the MCP binary from this CLI's published public-library entry or pre-built release, then register it:
claude mcp add servicetitan-pricebook-pp-mcp -- servicetitan-pricebook-pp-mcpVerify: claude mcp list
- Check if installed:
which servicetitan-pricebook-pp-cliIf not found, offer to install (see Prerequisites at the top of this skill). - Match the user query to the best command from the Unique Capabilities and Command Reference above.
- Execute with the
--agentflag:servicetitan-pricebook-pp-cli <command> [subcommand] [args] --agent
- If ambiguous, drill into subcommand help:
servicetitan-pricebook-pp-cli <command> --help.