Skip to main content
Glama

Ingest Container Inventory into Knowledge Graph

cm_ingest_inventory
Read-onlyIdempotent

Ingest live container-manager inventory—including containers, images, volumes, networks, Swarm services/nodes, and Kubernetes resources—into the knowledge graph as typed nodes and links.

Instructions

Natively ingest the container inventory into epistemic-graph as typed nodes.

Lists resources via the real container-manager client and pushes them into the knowledge graph as :Container / :ContainerImage / :ContainerVolume / :ContainerNetwork / :SwarmService / :SwarmNode nodes (+ :usesImage / :runsOn links) through the authoritative native-ingest transaction. CONCEPT:AU-KG.ingest.enterprise-source-extractor.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cm_ingest_inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNoRemote host alias to target that machine's Docker over SSH (resolved from the tunnel-manager inventory). Omit for the LOCAL Docker socket. Swarm modalities (services/nodes) must target a swarm MANAGER node.
modalityNoWhich resource inventory to ingest. 'all' sweeps containers/images/volumes/networks and (on a swarm manager) services/nodes, and (on a kubernetes manager) pods/deployments/namespaces/k8s_services.all
manager_typeNoContainer manager: docker, podman (default: auto-detect)
all_containersNoInclude stopped containers when ingesting containers.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered; the description adds real value by disclosing the side effect those hints obscure -- that listings are pushed into the knowledge graph as typed nodes and links via the 'authoritative native-ingest transaction'. It does not spell out failure/partial-ingest behavior or backend prerequisites, and the write-to-graph action sitting under readOnlyHint is a nuance worth stating outright, but it is disclosed rather than contradicted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action is front-loaded in the first sentence and the second sentence supplies the concrete node labels and execution path without padding. It is slightly redundant with the title ('Ingest Container Inventory into Knowledge Graph') and the trailing 'CONCEPT:AU-KG.ingest...' token is internal bookkeeping that consumes space without informing an agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema, full schema coverage and rich annotations, the description covers what an agent needs: what is read, what is written, and which graph labels result. It is slightly thin on the graph-side preconditions and on how re-ingestion merges with existing nodes, though the idempotentHint partially covers the latter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter (host, modality, manager_type, all_containers) is already fully documented with defaults, enums and SSH/manager-type caveats. The description adds no parameter-level meaning beyond what the schema provides, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The definition states a specific verb and resource ('Natively ingest the container inventory into epistemic-graph as typed nodes') and enumerates the exact node and relationship labels produced (:Container, :ContainerImage, :usesImage, :runsOn). This makes it clearly distinct from sibling diagnostics like cm_doctor_check_inventory, which merely report on an environment rather than writing it into the graph.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description never says when to choose this tool over cm_doctor_check_inventory or the many cm_k8s_* / docker_* / podman_* siblings, nor does it state any preconditions such as needing a reachable graph backend. The only routing guidance ('swarm modalities must target a swarm MANAGER node', modality semantics) lives entirely in the schema, not the description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools