Skip to main content
Glama
PuppyGraph MCP Server

PuppyGraph MCP Server

Official
by puppygraph

puppygraph_query

Executes Gremlin or Cypher graph queries against PuppyGraph and returns results for analysis; use LIMIT unless all rows are needed.

Instructions

Execute a graph query (Gremlin or Cypher) against PuppyGraph. Use LIMIT (e.g. 20) unless all rows are needed. Node ids are not properties: id(n) or elementId(n) returns 'Label[value]' (e.g. 'Account[1]', 'OrderLine[1,2]' for a two-column id); n. is null. On an error or warning about an unknown label or property, look the name up with puppygraph_search_schema / puppygraph_get_schema_element and retry

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": {
      "query": "<query>",
      "language": "<language>"
    },
    "name": "puppygraph_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesThe query to execute (Gremlin or Cypher)
languageYesThe query language to use
parametersNoOptional parameters for the query
timeout_secondsNoCypher only: give up after this many seconds (at most 300)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the non-obvious id semantics ('id(n)/elementId(n) returns Label[value]', 'n.<id column> is null') and a recovery path on errors, which an agent would otherwise discover only by failing. However, it never states whether mutations (addV/drop/Cypher CREATE) are permitted, whether the call is read-only, or what happens on timeout — a material gap for a query executor with zero annotation coverage.

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?

Front-loaded with the core action, then the two operational caveats (LIMIT, id semantics), then the error-recovery loop. Every sentence carries information an agent needs; it is dense but not padded.

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?

There is no output schema, so the description should say something about result shape — rows, columns, serialization, or truncation behavior — and it says nothing. Combined with the undisclosed read-only/mutation status, the definition leaves meaningful gaps for a tool this central, though the id quirk and LIMIT guidance cover the biggest practical pitfalls.

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% (query, language enum, optional parameters object, timeout_seconds with min/max and 'Cypher only'), so the baseline is 3. The description reinforces language choice and the LIMIT/parameter-binding context but adds no per-parameter meaning beyond the schema, so it does not rise above baseline.

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?

Names a specific verb and resource ('Execute a graph query ... against PuppyGraph') plus the two supported languages and where they live in the schema. It does not explicitly contrast itself with the schema/catalog siblings, but the scope is unambiguous from the first sentence.

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 concrete operating guidance: apply LIMIT (e.g. 20) unless all rows are needed, and on an unknown label/property error, look the name up via puppygraph_search_schema / puppygraph_get_schema_element and retry. That is a real when-to-call-which-sibling rule. It stops short of stating exclusions, e.g. that schema introspection should precede a first query on an unfamiliar graph.

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