Skip to main content
Glama
PuppyGraph MCP Server

PuppyGraph MCP Server

Official
by puppygraph

puppygraph_check_edges

Checks each edge type for rows that fail to reach an existing source or target node and reports node row counts, exposing wrong join keys, swapped directions, or type mismatches after uploads.

Instructions

Check the installed graph against its data: for each edge type, how many edge rows exist and how many of them reach an existing source node and an existing target node, plus a row count per node type. A wrong join key, a swapped direction or a key of the wrong type shows up as rows that reach no node. Plain count queries can't show this: they count edge rows without looking up the nodes. Run it after every upload. It works on every PuppyGraph 1.x, and needs no data-probing permission.

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

Input Schema

NameRequiredDescriptionDefault
labelsNoEdge labels to check; all edges (up to 30) when omitted

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does useful work: it discloses a prerequisite ("needs no data-probing permission") and version compatibility (PuppyGraph 1.x), and explains the diagnostic semantics of orphan rows. However, it never states that the operation is read-only/non-mutating, nor whether it scans the whole graph (a potentially expensive operation on large datasets), leaving cost and safety profile to inference.

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?

Front-loaded with the concrete result the tool returns, followed by why it matters, then the operational trigger and constraints. Every sentence adds information — output shape, failure signal, differentiation, timing, permissions — with no filler or repetition.

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?

No output schema exists, and the description compensates well by enumerating the returned metrics per edge type and node type. For a one-parameter diagnostic tool the remaining gaps are modest: no indication of runtime cost on large graphs or behavior when a label does not exist.

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% for the single optional labels parameter, and the schema already documents the "all edges (up to 30) when omitted" default. The description adds no meaning about what a label filter accepts or how filtering affects the reported counts, so baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource ("check the installed graph against its data") and spells out the exact output shape: edge-row counts per edge type, how many reach existing source/target nodes, plus per-node-type row counts. It implicitly separates itself from plain count queries but never names or contrasts the near-identically-named sibling puppygraph_check_join, leaving a real ambiguity for an agent choosing between the two.

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?

Gives an explicit trigger: "Run it after every upload." It also implies when-not usage by saying plain count queries cannot reveal orphan rows, which steers the agent away from counting via the query tool. No named alternative (e.g. check_join) or exclusion condition is stated, so 4 rather than 5.

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