Skip to main content
Glama
Incident Lake MCP

Incident Lake MCP

Official
by sigq-io

save_cmdb_graph_batch

Destructive

Apply CMDB service and dependency edits in one atomic batch, so all changes commit together or roll back entirely.

Instructions

Apply a batch of CMDB graph edits (services and dependency edges) atomically — all of it lands or none of it does. Order within the transaction is fixed: services created, then updated, then dependencies upserted, then dependencies deleted, then services deleted. Use tempId on a service create to reference a brand-new service as an edge endpoint in the same batch; the result's createdServiceIds maps each tempId to its real id. Unlike the single-edge tools, this does NOT record a graph version — publish one explicitly with publish_cmdb_graph_version.

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": "save_cmdb_graph_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
servicesNo
dependenciesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true; the description adds the critical behaviors: full atomicity, the exact fixed execution order of the five operation groups, and the tempId-to-real-id substitution mechanism with the createdServiceIds mapping. It also discloses the non-obvious side effect that no graph version is recorded, which the annotations cannot convey.

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

Conciseness5/5

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

Four sentences, front-loaded with the core atomic-batch purpose, then ordering, then the tempId mechanism, then the version caveat. Every sentence adds distinct information with no repetition of the schema.

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

Completeness5/5

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

For a deeply nested mutation with no output schema, the description covers the parts an agent would most likely get wrong: transaction boundaries, ordering dependencies, cross-reference via tempId, and the missing version step. It even documents the one result field (createdServiceIds) that matters, given no output schema is supplied.

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

Parameters4/5

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

Top-level schema coverage is reported as 0%, so the description must carry weight: it does by enumerating the operation groups in order (create, update, upsert, delete) and explaining that tempId, a plain string in the schema, must match a services.create entry in the same batch. It does not explain field-level semantics such as protectionLevel or confidenceScore, though the schema's inline descriptions do cover those.

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 description names a specific verb and resource ('Apply a batch of CMDB graph edits (services and dependency edges)') and immediately scopes it with atomicity. It also distinguishes itself from two sibling categories: the single-edge tools and publish_cmdb_graph_version.

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

Usage Guidelines4/5

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

It states the context for use (batch edits) and explicitly routes the agent to publish_cmdb_graph_version for the separate version-recording step, which is a real prerequisite an agent would otherwise miss. It does not explicitly say when to prefer a single-edge tool over a batch, so guidance is clear but not fully exhaustive.

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