/search-assets
Search for configuration items/assets by name, serial number, type, or 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.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/search-assets
Context preview
What this command does when you run it.
Search for configuration items/assets by name, serial number, type, or client
Command definition
search-assets.mddescription: Search for configuration items/assets by name, serial number, type, or client
argument-hint: "[query] [client_id] [asset_type] [status] [limit]"
arguments: [query, client_id, asset_type, status, limit]
Search HaloPSA Assets
Search for configuration items/assets by name, serial number, type, or client association.
Prerequisites
- Valid HaloPSA OAuth credentials configured
- User must have asset read permissions
Steps
1. **Authenticate with OAuth 2.0**
- Obtain access token using client credentials flow
- Token endpoint: `{base_url}/auth/token?tenant={tenant}`
# 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. **Validate parameters**
- Either query or client_id must be provided
- Validate asset_type against available types
3. **Get asset types (for validation)**
curl -s -X GET "{base_url}/api/AssetType" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"4. **Execute asset search**
# Search by query
curl -s -X GET "{base_url}/api/Asset?search={query}&page_size={limit}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"
# Or search by client
curl -s -X GET "{base_url}/api/Asset?client_id={client_id}&page_size={limit}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"5. **Apply additional filters**
- Filter by asset_type if specified
- Filter by status if specified
6. **Format and display results**
- Asset list with key details
- Quick action links
Parameters
| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | query | string | No* | - | Search term (name, serial, etc.) | | client_id | integer | No* | - | Filter by client ID | | asset_type | string | No | - | Workstation/Server/Network/etc. | | status | string | No | - | Active/Inactive/Retired | | limit | integer | No | 25 | Maximum results (max 100) |
*Either query or client_id is required
Examples
Search by Name
/search-assets "ACME-SRV-01"
Search by Serial Number
/search-assets "ABC123456"
Client's Assets
/search-assets --client_id 12345
Filter by Type
/search-assets --client_id 12345 --asset_type Server
Active Assets Only
/search-assets "Dell" --status Active
Workstations for Client
/search-assets --client_id 12345 --asset_type Workstation --status Active
Network Equipment
/search-assets "switch" --asset_type Network --limit 50
Output
Standard Results
Found 5 assets matching "ACME-SRV"
┌─────────┬─────────────────────┬──────────────┬─────────────┬───────────────┬──────────┐
│ ID │ Name │ Type │ Client │ Serial │ Status │
├─────────┼─────────────────────┼──────────────┼─────────────┼───────────────┼──────────┤
│ 1001 │ ACME-SRV-01 │ Server │ Acme Corp │ DEL123456 │ Active │
│ 1002 │ ACME-SRV-02 │ Server │ Acme Corp │ DEL123457 │ Active │
│ 1003 │ ACME-SRV-DC01 │ Server │ Acme Corp │ HPE789012 │ Active │
│ 1004 │ ACME-SRV-BACKUP │ Server │ Acme Corp │ DEL345678 │ Active │
│ 1005 │ ACME-SRV-OLD │ Server │ Acme Corp │ DEL000123 │ Retired │
└─────────┴─────────────────────┴──────────────┴─────────────┴───────────────┴──────────┘
Quick Actions:
- View asset: /search-assets --id <id>
- Asset tickets: /search-tickets --asset <id>
- Client assets: /search-assets --client_id <client_id>
Detailed Asset View
================================================================================
Asset Details: ACME-SRV-01 (ID: 1001)
================================================================================
BASIC INFORMATION
--------------------------------------------------------------------------------
Name: ACME-SRV-01
Asset Type: Server
Status: Active
Client: Acme Corporation (ID: 123)
Site: Main Office
HARDWARE DETAILS
--------------------------------------------------------------------------------
Manufacturer: Dell
Model: PowerEdge R740
Serial Number: DEL123456
Service Tag: ABCD123
CPU: Intel Xeon Gold 6248 (2x)
RAM: 256 GB
Storage: 4x 1.2TB SAS (RAID 10)
NETWORK
--------------------------------------------------------------------------------
Hostname: acme-srv-01.acme.local
IP Address: 192.168.1.10
MAC Address: 00:1A:2B:3C:4D:5E
Domain: acme.local
SOFTWARE
--------------------------------------------------------------------------------
OS: Windows Server 2022 Datacenter
OS Version: 21H2 (Build 20348)
Last Boot: 2024-02-10 03:45:00
WARRANTY & MAINTENANCE
--------------------------------------------------------------------------------
Warranty Status: Active
Warranty Expires: 2026-06-15 (829 days remaining)
Support Level: ProSupport Plus
Last Service: 2024-01-15
MONITORING
--------------------------------------------------------------------------------
Agent Status: Online
Last Seen: 2024-02-15 15:30:00 (5 min ago)
Alerts: 0 active
LINKED TICKETS
--------------------------------------------------------------------------------
Open Tickets: 1
- #12345: Exchange performance issues (In Progress)
Total Tickets: 24 (lifetime)
================================================================================
Quick Actions:
- Create ticket: /create-ticket 123 "Issue with ACME-SRV-01"
- Open tickets:
Read more
description: Search for configuration items/assets by name, serial number, type, or client argument-hint: "[query] [client_id] [asset_type] [status] [limit]" arguments: [query, client_id, asset_type, status, limit]
Search HaloPSA Assets
Search for configuration items/assets by name, serial number, type, or client association.
Prerequisites
- Valid HaloPSA OAuth credentials configured
- User must have asset read permissions
Steps
1. **Authenticate with OAuth 2.0**
- Obtain access token using client credentials flow
- Token endpoint: `{base_url}/auth/token?tenant={tenant}`
# 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. **Validate parameters**
- Either query or client_id must be provided
- Validate asset_type against available types
3. **Get asset types (for validation)**
curl -s -X GET "{base_url}/api/AssetType" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"4. **Execute asset search**
# Search by query
curl -s -X GET "{base_url}/api/Asset?search={query}&page_size={limit}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"
# Or search by client
curl -s -X GET "{base_url}/api/Asset?client_id={client_id}&page_size={limit}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"5. **Apply additional filters**
- Filter by asset_type if specified
- Filter by status if specified
6. **Format and display results**
- Asset list with key details
- Quick action links
Parameters
| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | query | string | No* | - | Search term (name, serial, etc.) | | client_id | integer | No* | - | Filter by client ID | | asset_type | string | No | - | Workstation/Server/Network/etc. | | status | string | No | - | Active/Inactive/Retired | | limit | integer | No | 25 | Maximum results (max 100) |
*Either query or client_id is required
Examples
Search by Name
/search-assets "ACME-SRV-01"
Search by Serial Number
/search-assets "ABC123456"
Client's Assets
/search-assets --client_id 12345
Filter by Type
/search-assets --client_id 12345 --asset_type Server
Active Assets Only
/search-assets "Dell" --status Active
Workstations for Client
/search-assets --client_id 12345 --asset_type Workstation --status Active
Network Equipment
/search-assets "switch" --asset_type Network --limit 50
Output
Standard Results
Found 5 assets matching "ACME-SRV" ┌─────────┬─────────────────────┬──────────────┬─────────────┬───────────────┬──────────┐ │ ID │ Name │ Type │ Client │ Serial │ Status │ ├─────────┼─────────────────────┼──────────────┼─────────────┼───────────────┼──────────┤ │ 1001 │ ACME-SRV-01 │ Server │ Acme Corp │ DEL123456 │ Active │ │ 1002 │ ACME-SRV-02 │ Server │ Acme Corp │ DEL123457 │ Active │ │ 1003 │ ACME-SRV-DC01 │ Server │ Acme Corp │ HPE789012 │ Active │ │ 1004 │ ACME-SRV-BACKUP │ Server │ Acme Corp │ DEL345678 │ Active │ │ 1005 │ ACME-SRV-OLD │ Server │ Acme Corp │ DEL000123 │ Retired │ └─────────┴─────────────────────┴──────────────┴─────────────┴───────────────┴──────────┘ Quick Actions: - View asset: /search-assets --id <id> - Asset tickets: /search-tickets --asset <id> - Client assets: /search-assets --client_id <client_id>
Detailed Asset View
================================================================================ Asset Details: ACME-SRV-01 (ID: 1001) ================================================================================ BASIC INFORMATION -------------------------------------------------------------------------------- Name: ACME-SRV-01 Asset Type: Server Status: Active Client: Acme Corporation (ID: 123) Site: Main Office HARDWARE DETAILS -------------------------------------------------------------------------------- Manufacturer: Dell Model: PowerEdge R740 Serial Number: DEL123456 Service Tag: ABCD123 CPU: Intel Xeon Gold 6248 (2x) RAM: 256 GB Storage: 4x 1.2TB SAS (RAID 10) NETWORK -------------------------------------------------------------------------------- Hostname: acme-srv-01.acme.local IP Address: 192.168.1.10 MAC Address: 00:1A:2B:3C:4D:5E Domain: acme.local SOFTWARE -------------------------------------------------------------------------------- OS: Windows Server 2022 Datacenter OS Version: 21H2 (Build 20348) Last Boot: 2024-02-10 03:45:00 WARRANTY & MAINTENANCE -------------------------------------------------------------------------------- Warranty Status: Active Warranty Expires: 2026-06-15 (829 days remaining) Support Level: ProSupport Plus Last Service: 2024-01-15 MONITORING -------------------------------------------------------------------------------- Agent Status: Online Last Seen: 2024-02-15 15:30:00 (5 min ago) Alerts: 0 active LINKED TICKETS -------------------------------------------------------------------------------- Open Tickets: 1 - #12345: Exchange performance issues (In Progress) Total Tickets: 24 (lifetime) ================================================================================ Quick Actions: - Create ticket: /create-ticket 123 "Issue with ACME-SRV-01" - Open tickets:
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
Other commands on msp-claude-plugins.
- /case-review
Review and triage abuse mailbox cases in Abnormal Security
Open command - /search-threats
Search for specific threat patterns in Abnormal Security by sender, recipient, attack type, or keywords
Open command - /threat-triage
Triage recent email threats detected by Abnormal Security by severity and attack type
Open command - /list-overdue-invoices
List open and overdue Alternative Payments invoices and optionally generate hosted payment links for them
Open command - /reconcile-payout
Reconcile an Alternative Payments payout by listing its transactions and matching them against invoices and customers
Open command - /eol-report
EOL/EOS risk report — devices, OS versions, and firmware approaching or past end-of-life/end-of-support, prioritized by criticality
Open command

