Skip to main content
Glama
sqlite-graph-mcp

sqlite-graph-mcp

by developjik

Diff two revisions

graph_diff

Compare two git revisions or directories to identify removed or unexported symbols still referenced elsewhere, files that lost inbound edges, and node/edge counts.

Instructions

Index two workspace states and answer "what breaks if we ship head?": symbols that are removed or no longer exported while other files still referenced them (with importer citations), files that lost their last inbound edge, and node/edge counts. Each side is a git revision (branch, tag, SHA — verified, no shell) or a directory path.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "base": "<base>",
      "head": "<head>"
    },
    "name": "graph_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYesBase side: git rev (e.g. "main") or a directory path.
headYesHead side: git rev (e.g. "HEAD" or a PR SHA) or a directory path.
limitNoCap per list (default 50; counts stay exact).
engineNoExtraction engine. Default: ast.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does substantial work: it specifies that each side is a verified git revision (branch, tag, SHA) with no shell execution, or a directory path, and it enumerates the returned categories including importer citations. Gaps remain around cost/performance of indexing two workspace states and permission requirements, which matters for a tool that reads repo history.

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 description is two dense sentences that lead with the operational question and then enumerate the outputs, so nothing is buried. It is packed tightly but each clause—importer citations, lost inbound edges, verification—adds information rather than padding.

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?

For a four-parameter tool with no annotations and no output schema, the description covers what the tool produces and what its inputs accept, which is most of what an agent needs. The remaining omissions—cost of indexing two states, and how ast versus heuristic affects results—are modest but real for a tool whose runtime could be significant.

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?

Schema coverage is 100%, so base, head, limit, and engine are already documented, but the description adds real meaning: it clarifies that the side arguments accept branches, tags, SHAs, or directory paths and that revisions are verified without shell invocation. It does not explain the ast-versus-heuristic tradeoff encoded in the engine enum, which is the one parameter where extra meaning would help most.

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 uses a specific verb and resource ('Index two workspace states') and defines the output precisely: removed or no-longer-exported symbols that are still referenced (with importer citations), files that lost their last inbound edge, and node/edge counts. This level of detail lets an agent distinguish it from graph_orphans or graph_index without opening another schema.

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 frames the motivating question ('what breaks if we ship head?'), which gives a clear condition for reaching for this tool. It stops short of naming alternatives or stating when not to use it, so usage is strongly implied rather than fully enumerated.

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