find-contact
Resolve a 3CX contact or extension by email, extension, or name
Check contract status, service entitlements, and billing information for a client
$ npx -y skills add wyre-technology/msp-claude-plugins --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/contract-statusContext preview
What this command does when you run it.
Check contract status, service entitlements, and billing information for a client
description: Check contract status, service entitlements, and billing information for a client argument-hint: "[client_id] [contract_id] [include_services] [include_usage]" arguments: [client_id, contract_id, include_services, include_usage]
Check contract status, service entitlements, and billing information for a client.
1. **Authenticate with OAuth 2.0**
# Get OAuth token
TOKEN=$(curl -s -X POST "{base_url}/auth/token?tenant={tenant}" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id={client_id}" \
-d "client_secret={client_secret}" \
-d "scope=all" | jq -r '.access_token')2. **Fetch contracts**
# By client
curl -s -X GET "{base_url}/api/Contract?client_id={client_id}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"
# Or by contract ID
curl -s -X GET "{base_url}/api/Contract/{contract_id}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"3. **Fetch service lines (if requested)**
curl -s -X GET "{base_url}/api/RecurringInvoice?contract_id={contract_id}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"4. **Fetch usage/block hours (if requested)**
curl -s -X GET "{base_url}/api/ContractBlock?contract_id={contract_id}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"5. **Format and display results**
| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | client_id | integer | No* | - | Client ID to check contracts | | contract_id | integer | No* | - | Specific contract ID | | include_services | boolean | No | false | Include service line details | | include_usage | boolean | No | false | Include usage/hours consumed |
*Either client_id or contract_id is required
/contract-status --client_id 12345
/contract-status --contract_id 9876
/contract-status --client_id 12345 --include_services true
/contract-status --contract_id 9876 --include_services true --include_usage true
/contract-status --client_id 12345 --include_usage true
================================================================================ Contract Status: Acme Corporation (ID: 123) ================================================================================ ACTIVE CONTRACTS (2) -------------------------------------------------------------------------------- 1. Managed Services Agreement ──────────────────────────────────────────────────────────────────────────── Contract ID: 9876 Type: All-Inclusive Status: ✓ Active Start Date: 2023-01-01 End Date: 2024-12-31 Auto-Renewal: Yes (Annual) SLA: Premium Billing: Monthly ($5,500.00) Next Invoice: 2024-03-01 Coverage: Unlimited support for covered items Exclusions: Project work, after-hours (overtime rates apply) 2. Block Hours Agreement ──────────────────────────────────────────────────────────────────────────── Contract ID: 9877 Type: Pre-Paid Hours Status: ✓ Active Start Date: 2024-01-01 End Date: 2024-12-31 Hours Purchased: 100 hours Hours Used: 67.5 hours Hours Remaining: 32.5 hours Billing: Prepaid ($12,500.00) Rollover: No EXPIRED/INACTIVE CONTRACTS (1) -------------------------------------------------------------------------------- 3. Implementation Project ──────────────────────────────────────────────────────────────────────────── Contract ID: 9800 Type: Fixed Price Project Status: Completed Duration: 2022-06-01 to 2022-12-31 Value: $45,000.00 ================================================================================ Quick Actions: - View contract: /contract-status --contract_id <id> - Client tickets: /search-tickets --client 123 - Create ticket: /create-ticket 123 "Summary"
================================================================================ Contract Details: Managed Services Agreement ================================================================================ CONTRACT INFORMATION -------------------------------------------------------------------------------- Contract ID: 9876 Client: Acme Corporation (ID: 123) Type: All-Inclusive Managed Services Status: ✓ Active Start Date: 2023-01-01 End Date: 2024-12-31 Term: 2 years Auto-Renewal: Yes (Annual, 90-day notice required) SLA Profile: Premium Account Manager: John Manager Sales Rep: Jane Sales BILLING INFORMATION -------------------------------------------------------------------------------- Billing Cycle: Monthly Amount: $5,500.00 /month Payment Terms: Net 30 Tax Status: Taxable Next Invoice: 2024-03-01 Last Invoice: 2024-02-01 (#INV-2024-0234) Invoice Status: Paid Annual Value: $66,000.00 Contract Total: $132,000.00 (2 years) SERVICE LINES ---------------------------------------
One command to supercharge Claude Code for MSP workflows. Then restart Claude Code. That's it. Documentation: mcp.wyre.ai
Repo: wyre-technology/msp-claude-plugins
Resolve a 3CX contact or extension by email, extension, or name
Search for specific threat patterns in Abnormal Security by sender, recipient, attack type, or keywords
Triage recent email threats detected by Abnormal Security by severity and attack type