Ask questions about your organization¶
Pacto joins your contracts, the clusters they run in and the traffic it
observes into one operational graph. An AI agent asks
that graph questions through the read-only tools of pacto mcp --fleet, a
person through pacto fleet or the dashboard. All three answer from the same
queries, so an agent and a person asking the same question get the same answer.
| Question | MCP tool | CLI command | Dashboard view |
|---|---|---|---|
| Which services does my team own? | pacto_fleet_entities with kind=owner for the owner keys, then pacto_fleet_search with owner or pacto_fleet_entities with owner_key |
pacto fleet entities --kind owner, pacto fleet search --owner |
Owners |
| Which services depend on payments? | pacto_fleet_graph with direction=dependents; each node carries provenance |
pacto fleet graph payments-service --direction dependents |
Operational graph |
| What is unhealthy right now? | pacto_fleet_attention with severity=error |
pacto fleet attention --severity error |
Needs attention |
| Which services have undocumented dependencies? | pacto_fleet_attention with category=undeclared |
pacto fleet attention --category undeclared |
The Overview tile "Undeclared runtime dependencies observed" |
| What changed in this service, and when? | pacto_fleet_entity with kind=service (its changes; reached: true on a stdio server adds when each change reached a Stage), pacto_delivery_history with at for what each Stage ran at a past time |
pacto fleet entity service <key> --reached, pacto delivery history --all --at 24h |
The service page's Changes section, Delivery history's As of |
| Which infrastructure capabilities are available? | pacto_fleet_entities with kind=offering, pacto_fleet_entity with kind=offering |
pacto fleet entities --kind offering |
Offerings |
| Which services does this deployment affect? | pacto_impact with event=regressed, service and revision (an artifact digest cites delivery's recorded failures), or old and new refs for a contract change |
pacto impact --regressed <service>@<digest>, pacto impact <old> <new> |
Change analysis |
| What breaks if payments goes down? | pacto_impact with event=unavailable and service |
pacto impact --unavailable payments-service |
Change analysis, What if this service… |
| What uses this resource before I remove it? | pacto_impact with event=removed and service |
pacto impact --removed postgresql |
Change analysis, What if this service… |
| Which services does this policy change reach? | pacto_impact with the policy provider's old and new refs |
pacto impact <old> <new> |
Change analysis |
| How healthy is the organization and how much do we know? | pacto_fleet_overview |
pacto fleet overview |
Overview |
| Which services are failing versus unknown? | pacto_fleet_attention with category=health for failing health checks, category=unknown for what Pacto cannot tell |
pacto fleet attention --category health, pacto fleet attention --category unknown |
The Overview's Operational health band |
| Where do our contracts leave knowledge out? | pacto_fleet_attention with category=knowledge, pacto_fleet_entities with gap |
pacto fleet attention --category knowledge, pacto fleet entities --gap no-summary |
The Overview's Knowledge band |
| Which teams own services nobody can read? | pacto_fleet_entities with gap=unknown (each row names its owner), and ownership=unknown for those with no owner claim |
pacto fleet entities --gap unknown, pacto fleet entities --ownership unknown |
Services, filtered by Owner unknown |
| Where are the biggest operational risks? | pacto_fleet_attention (most severe first), pacto_fleet_entities with sort=health |
pacto fleet attention, pacto fleet entities --sort health |
Needs attention |
| What waits on me? | pacto_delivery_inbox (with --delivery) |
pacto delivery inbox |
Delivery, Inbox |
| Which environments run which version? | pacto_delivery_environments (with --delivery) |
pacto delivery environments |
Delivery, Stages |
| Which publishers may ship this service? | pacto_delivery_trust with service (with --delivery) |
pacto delivery trust <service> |
Delivery, Published |
| Who am I to delivery? | pacto_delivery_caller (with --delivery) |
pacto delivery caller |
GET /api/delivery/caller |
| What can this server do? | pacto_capabilities |
Not needed: the CLI runs every command as you | GET /api/capabilities |
Read the answer¶
Every fleet answer carries meta. asOf is the time it describes and
snapshotId proves two answers came from the same view. sources says what
each source contributed and limitations what Pacto could not see. pacto_impact
carries the same fields at the top level. Cite them when you repeat an answer.
When completeness is partial, a missing result means unknown. An event
answer grades each consumer's effect (breaks, may-degrade or unknown),
and evidence older than 24 hours before asOf lowers a consumer's confidence
to unknown.
Each fact says how Pacto knows it:
- Declared: a contract says so.
- Observed: Pacto saw it at runtime, in a trace or through the Kubernetes operator.
- Inferred: Pacto derived it. The word has three uses: a transitive
consumer in
pacto_impact, a target linked to a revision by tag or version match and an external use read from a workload's configuration or pod spec or named by the inferred record of a service's newest revision, which never clears a gate.
An edge carries provenance (declared, observed, declared+observed or
inferred),
and a graph node says how the edge that first reached it was known. A runtime
call no contract declares is listed under the undeclared attention category
as DEPENDENCY_UNDECLARED, and a caller with no contract as
UNCONTRACTED_CALLER.
Changes and their time¶
A service's changes list each declared change between the revisions Pacto
holds, in version order. A change carries a time only when a signed delivery
record shows when its revision reached a Stage; otherwise it reads "time not
recorded", or "time hidden" when you may not read delivery. A delivery history
line carries the pacto.impact verdict its record signed at the time. To see
who that change reaches today, run pacto_impact on the same two revisions:
that answer is against today's graph.
For runtime health and incidents, Investigate a problem with Mira pairs these answers with Mira's signals.
Open the dashboard from an answer¶
Start the server with the URL of a running Pacto dashboard:
Search, graph, status, entities, entity and attention answers then carry an
href to each entity's page on that dashboard, so
an agent can hand you a link to the service, owner or attention list it is
talking about. Without the flag, answers carry no links.