Skip to main content
Glama
PuppyGraph MCP Server

PuppyGraph MCP Server

Official
by puppygraph

puppygraph_add_edge

Adds one edge type to the installed PuppyGraph schema, requiring both endpoint nodes to exist. Validate the join before adding and re-check edges after, since the change affects all users.

Instructions

Add one edge type to the installed schema; both endpoint nodes must exist. Only add an edge whose join you checked: with puppygraph_check_join where the server supports it (hit_rate near 1.0; below about 0.95 it's a soft reference, so tell the user), otherwise say it is unverified, and run puppygraph_check_edges after adding it. Changes the installed schema for everyone who queries this PuppyGraph; other elements stay as they are. The element is checked first (columns, types, keys) and nothing changes on a problem.

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": {
      "edge": "<edge>"
    },
    "name": "puppygraph_add_edge"
  }
}

Input Schema

NameRequiredDescriptionDefault
edgeYesOne edge as in the graph schema: label, fromNodeLabel, toNodeLabel, fromKey, toKey, attribute, dataSourceGroup.externalDataSource (see puppygraph_schema_template)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A4.3/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 mostly does: it discloses that the change is global to everyone querying this PuppyGraph, that other elements are untouched, and that validation (columns, types, keys) happens first so a problem leaves nothing changed. It stops short of describing what a successful call returns or how to roll back, which is why it is not a 5.

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?

Scope and preconditions are front-loaded and every sentence carries real information for a schema-mutating, multi-step tool. The third sentence is a long run-on of nested conditionals, which slightly hurts scannability but not substance.

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 one-parameter mutation tool with no annotations and no output schema, the definition covers side effects, scope of impact, validation behavior and the required verification workflow. The only gap is the outcome of a successful add, which an agent would otherwise have to discover by inspecting the schema.

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 coverage is 100% and the single nested `edge` object is documented in-schema (label, fromNodeLabel, toNodeLabel, fromKey, toKey, attribute, externalDataSource) with a pointer to puppygraph_schema_template, so the schema does the heavy lifting. The description only adds the precondition that both endpoint nodes exist, so the high-coverage 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?

"Add one edge type to the installed schema" is a specific verb+resource, and the clause "both endpoint nodes must exist" states the precondition that separates it from puppygraph_add_node, puppygraph_add_edge_attribute and puppygraph_update_edge. An agent can pick the right sibling without opening any schema.

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

Usage Guidelines5/5

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

It prescribes the ordering explicitly: verify the join with puppygraph_check_join where supported, interpret hit_rate near 1.0 versus below ~0.95 as a soft reference that must be surfaced to the user, otherwise label it unverified, then call puppygraph_check_edges after adding. That is when-to-use, when-not-to-trust, and follow-up in one place.

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