Skip to main content
Glama
PuppyGraph MCP Server

PuppyGraph MCP Server

Official
by puppygraph

puppygraph_add_edge_attribute

Add a source column as an attribute to an existing edge type in the PuppyGraph schema, with validation that prevents changes if the column or type is invalid.

Instructions

Add one attribute (a source column) to an edge type of the installed schema. 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_label": "<edge_label>",
      "name": "<name>",
      "type": "<type>"
    },
    "name": "puppygraph_add_edge_attribute"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesAttribute name (not already on the element)
typeYesThe column's schemaType from puppygraph_describe_table, as is (e.g. String, Long, DECIMAL(12,2), DateTime)
edge_labelYesExisting edge label
source_field_nameNoSource column; defaults to the attribute name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.8/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 burden and does substantial work: it warns that the change affects the installed schema 'for everyone who queries this PuppyGraph', that unrelated elements are untouched, and that validation (columns, types, keys) gates the operation so 'nothing changes on a problem'. What is missing is whether the change requires a reinstall/reload to take effect and whether permissions or an unlocked/owned catalog are required.

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?

Three short sentences, front-loaded with what the tool does, followed by blast radius and then failure semantics in decreasing order of importance. No filler or restated boilerplate; each sentence contributes a distinct fact.

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 mutation with no annotations and no output schema, the description covers impact scope, non-destructiveness of other elements, and atomic validation failure. It stops short of describing what a successful response contains or whether the schema must be reinstalled, which are the remaining gaps for this complexity level.

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%, so all four parameters are already documented in the schema, including the default-behavior note for source_field_name and the schemaType example for type. The description only echoes 'a source column' for the attribute, adding essentially no parameter meaning beyond the schema, so the baseline of 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?

"Add one attribute (a source column) to an edge type of the installed schema" gives a specific verb (add), a scoped resource (one attribute on an edge type), and clarifies that the target is an already-installed schema rather than a catalog definition. This clearly separates it from an add-edge or add-node operation, though it never names the sibling tools that handle those cases.

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?

Usage is implied rather than stated: the edge label must be 'Existing' and the attribute 'not already on the element', which tells the agent the preconditions for a successful call. There is no explicit guidance on when to pick this over puppygraph_add_node_attribute, puppygraph_update_edge, or a schema re-upload, and no mention of install/validate follow-up steps.

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