/runzero:api-patternsfrom runzero
Covers runZero API fundamentals including MCP tools, Bearer-token auth, Export API, pagination, rate limits, error codes, and query language.
Ships in runzero. 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.
The RunZero MCP server provides AI tool integration with the RunZero asset discovery and network security platform. It exposes tools covering asset inventory, network scanning, site management, service discovery, wireless detection, and vulnerability reporting. The API uses Bearer token authentication with an Account API Token.
runzero_assets_export in
runzero-assets and runzero_services_export in runzero-services.runzero-tasks and runzero-sites.RunZero authenticates using an Account API Token passed as a Bearer token:
| Header | Description |
|---|---|
Authorization | Bearer <your-account-api-token> |
Generate credentials at: RunZero Console > Account > API Keys
Environment Variables:
export RUNZERO_API_TOKEN="your-account-api-token"
IMPORTANT: Never hardcode credentials. Always use environment variables.
RunZero supports multiple token scopes:
| Token Type | Scope | Use Case |
|---|---|---|
| Account API Token | Full account access | General API usage |
| Organization API Token | Single org access | Scoped integrations |
| Export API Token | Read-only exports | Bulk data retrieval |
For MCP usage, use an Account API Token for broadest access.
| Tool | Description |
|---|---|
runzero_assets_list | List assets with filters (site, OS, type) |
runzero_assets_get | Get detailed asset information |
runzero_assets_search | Search assets by query string |
runzero_assets_export | Export assets in bulk via Export API |
| Tool | Description |
|---|---|
runzero_tasks_list | List scan tasks |
runzero_tasks_get | Get scan task details and results |
runzero_tasks_create | Create and start a new scan task |
runzero_tasks_stop | Stop a running scan task |
| Tool | Description |
|---|---|
runzero_sites_list | List organization sites |
runzero_sites_get | Get site details |
runzero_sites_create | Create a new site |
runzero_sites_update | Update site configuration |
| Tool | Description |
|---|---|
runzero_services_list | List discovered services |
runzero_services_get | Get service details |
runzero_services_export | Export services in bulk |
| Tool | Description |
|---|---|
runzero_wireless_list | List discovered wireless networks |
runzero_wireless_get | Get wireless network details |
| Tool | Description |
|---|---|
runzero_explorers_list | List deployed explorers (scan agents) |
runzero_explorers_get | Get explorer details and status |
RunZero provides a dedicated Export API for bulk data retrieval. This is the preferred method for large datasets.
| Resource | Description |
|---|---|
| Assets | Export all assets with full attribute data |
| Services | Export all discovered services |
| Wireless | Export all wireless networks |
| Software | Export discovered software inventory |
Exports support RunZero's query language for filtering:
os:Windows AND site_id:<uuid>
protocol:rdp AND alive:true
type:server AND last_seen:<30d
The RunZero API uses offset-based pagination:
offset and count parameters to navigatecount are returnedExample workflow:
runzero_assets_list with count=100 and offset=0offset=100count results are returnedRunZero enforces API rate limits per token:
X-RateLimit-Remaining response headers| Code | Meaning | Resolution |
|---|---|---|
| 401 | Unauthorized | Check API token |
| 403 | Forbidden | Token lacks required scope |
| 404 | Not Found | Resource doesn't exist or wrong ID |
| 429 | Rate Limited | Wait and retry after delay |
| 500 | Server Error | Retry; contact support if persistent |
{
"error": "Unauthorized",
"message": "Invalid or expired API token"
}
RunZero uses a powerful query language for filtering assets and services:
field:value AND field:value OR field:value
| Field | Description | Example |
|---|---|---|
os | Operating system | os:Windows |
type | Asset type | type:server |
hostname | Hostname | hostname:DC01 |
address | IP address | address:192.168.1.0/24 |
protocol | Service protocol | protocol:ssh |
port | Service port | port:443 |
alive | Asset is alive | alive:true |
last_seen | Last seen time | last_seen:<7d |
site_id | Site UUID | site_id:<uuid> |
| Operator | Description |
|---|---|
: | Equals / contains |
:< | Less than |
:> | Greater than |
AND | Logical AND |
OR | Logical OR |
NOT | Logical NOT |
What SKILL.md sets; muted values are Claude Code's defaults
When authenticating to, paginating, exporting from, or troubleshooting errors in the runZero API or MCP tools. Use when: runzero api, runzero authentication, runzero pagination, runzero rate limit, runzero mcp, runzero tools, runzero request, runzero error, runzero connection, or runzero export.
Three short reads, in order
runzero, api-patterns, mcp-tools, authentication, export-api, query-language
6 skills in this plugin
/assetsrunZero AssetsThe runZero asset inventory: searching and browsing assets, asset attributes, OS fingerprinting, hardware details, and network interfaces.
/servicesrunZero ServicesrunZero discovered services: listing services, filtering by port or protocol, identifying vulnerabilities, and auditing exposed services across sites.
/sitesrunZero SitesrunZero sites: creating and managing organization sites, defining scan scope and exclusions, deploying explorers, and organizing assets by location or client.
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin runzeroOther plugins' skills for the same job