Skip to main content
Glama

Reconcile Disk State

reconcile_disk_state

Checks the provenance DB against on-disk artifacts, marker files, and quarantine state, returning a structured diff of missing, stale, or conflicting entries without overwriting conflicts.

Instructions

Reconcile the provenance DB against on-disk truth.

Checks marker files, artifact existence, and optional project constants quarantine state. Returns structured diff: {missing_in_db, stale_in_db, conflicts, warnings}. NEVER silently overwrites conflicting DB state.

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

Input Schema

NameRequiredDescriptionDefault
domain_keyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it names the checks performed, enumerates the return keys, and gives a strong safety guarantee ("NEVER silently overwrites conflicting DB state"). The gap is mutation semantics — "never silently" implies it may write under some conditions, yet the description never says whether the tool only reports or also repairs, nor what permissions are needed.

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 short lines, front-loaded with the purpose, followed by scope, then return shape, then the safety constraint. Every sentence carries information and nothing is repeated from structured fields.

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

Completeness3/5

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

An output schema exists, so enumerating the diff keys was optional and the return-value burden is light. However, for a tool whose name suggests potential DB mutation with zero annotations and an undocumented parameter, the definition leaves the agent unsure whether invoking it is safe and what domain_key does.

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

Parameters2/5

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

There is one parameter (domain_key, optional, default null) with 0% schema description coverage, and the description never mentions it. The agent cannot tell whether domain_key scopes the reconciliation to a provenance domain or is a filtering key, which matters for correct invocation; with low coverage the description was obligated to compensate and does not.

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?

States a specific verb and resource ("Reconcile the provenance DB against on-disk truth") and immediately names what is compared: marker files, artifact existence, and project constants quarantine state. That distinguishes it cleanly from read-only siblings like check_status, list_artifacts, and query_outputs, which inspect state rather than diffing DB against disk.

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

Usage Guidelines3/5

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

The purpose implies usage (run when DB and disk may have drifted), but there is no explicit when-to-use trigger, no when-not guidance, and no alternative named. With siblings such as check_status available, an explicit routing statement would have been cheap and valuable; the agent must infer the decision rule.

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