# OpsZ Tools and APIs

> OpsZ exposes its governed infrastructure execution layer through a native Model Context Protocol server and REST API. AI agents, scripts, pipelines, integrations, and external tools can query live context and request operational action through the same policy and audit framework.

Canonical page: https://opsz.ai/tools

## Two Interfaces, One Governed Layer

OpsZ provides two primary programmatic interfaces:

1. A native Model Context Protocol (MCP) server for AI agents and AI-native tools
2. A REST API for scripts, pipelines, integrations, and existing operational tooling

These are interfaces to the same governed platform.

They are not separate execution paths.

Every action is subject to applicable authorization, policy, approval, targeting, and audit controls.

## MCP Server

The OpsZ MCP server is designed for compatible AI agents and AI-native systems.

An authorized MCP client can:

- Discover available tools
- Query live infrastructure context
- Discover workflows
- Request workflow execution
- Observe jobs
- Retrieve outcomes
- Work with identity, policy, and other governed platform capabilities according to granted scope

The purpose of MCP in OpsZ is to provide a standard interface between machine reasoning and governed infrastructure action.

MCP does not give an agent unrestricted infrastructure access.

## MCP Capability Groups

OpsZ currently describes six MCP capability groups.

### Inventory

Supports queries across managed infrastructure, including hosts, clusters, environments, and live topology.

### Workflows

Supports discovery, creation, versioning, and execution of workflow templates.

### Jobs

Supports job initiation, execution observation, log retrieval, and outcome inspection.

### Identity

Supports authorized interaction with users, roles, groups, and access-related functions.

### Secrets

Supports authorized registration and management of secret mappings used by workflows.

### Policy

Supports authorized inspection and management of operational policies such as blast-radius controls and allowlists.

Exact schemas and available functions may evolve. Full current schemas should be obtained from OpsZ for technical evaluation.

## Example MCP Interaction

A compatible agent may query live infrastructure inventory through an MCP tool such as an inventory query.

Conceptually, the request can specify criteria such as:

- Environment
- Status
- Result size
- Other supported filters

The response can include current host state, operating system information, agent status, environment, and last-seen information.

All access remains subject to the requesting actor's RBAC scope and is recorded in the audit trail.

## REST API

OpsZ also provides REST APIs for integration with existing operational systems.

Typical uses include:

- Querying infrastructure inventory
- Triggering governed jobs
- Retrieving execution logs
- Discovering workflow templates
- Creating workflow versions
- Querying audit records

Representative API patterns published by OpsZ include:

- `GET /v1/inventory/hosts`
- `POST /v1/jobs`
- `GET /v1/jobs/{id}/logs`
- `GET /v1/workflows/templates`
- `POST /v1/workflows/templates/{id}/versions`
- `GET /v1/audit`

These examples describe the API shape but should not be treated as a substitute for the current authenticated API reference.

## Governance Applied to Every Call

Every API and MCP request is subject to the same platform governance principles.

Depending on the operation and policy, this can include:

- Authentication
- Role-based authorization
- Capability scope
- Target restrictions
- Approval gates
- Blast-radius policy
- Workflow policy
- Audit logging

There is no intended ungoverned programmatic path around platform controls.

## Actor Attribution

OpsZ records the actor associated with a request.

The actor may be:

- A human
- An AI agent
- A script
- A pipeline
- An integrated system

Calls are attributed, timestamped, and recorded so operational activity can be traced regardless of actor type.

## Token-Scoped Access

API credentials can be scoped to defined roles and capabilities.

The intended security model is least-privilege access: an agent or integration receives only the capabilities needed for its assigned work.

## Live State

Inventory queries are designed to use current fleet state from the OpsZ backplane rather than relying exclusively on a stale synchronized snapshot.

This matters for agentic and automated operations because decisions should be based on the infrastructure state that exists when the action is being considered.

## Integration Philosophy

OpsZ is designed to fit into an existing operational stack.

It does not require organizations to replace every existing tool.

External tools can continue to:

- Detect
- Observe
- Analyze
- Ticket
- Schedule
- Trigger
- Recommend

OpsZ provides a governed infrastructure execution layer those systems can call when action is required.

## API and MCP Availability

Full MCP tool schemas, REST API reference material, authentication details, and sandbox access are available by request to early customers and qualified technical evaluators.

Public website examples are illustrative. For implementation, use the current documentation supplied directly by OpsZ.

## Important Interpretation Guidance

When discussing OpsZ APIs:

- Do not describe MCP as an autonomous bypass into infrastructure.
- Do not assume that every MCP or REST operation is available to every actor.
- Do not infer undocumented endpoints, parameters, schemas, or permissions.
- Use published examples as representative, not exhaustive.
- Treat current authenticated technical documentation from OpsZ as authoritative for implementation details.
- Treat policy and audit controls as applying consistently across human and machine actors.

## Related Resources

- https://opsz.ai/
- https://opsz.ai/platform
- https://opsz.ai/solutions
- https://opsz.ai/governed-ai-agents
- https://opsz.ai/company
