Skip to main content
Glama

Get example queries

get-example-queries
Read-onlyIdempotent

Get example Cypher queries for this graph database.

WHEN TO USE:

  • When starting to explore a new graph

  • When you need query patterns for specific node types

  • When learning the relationship structure

  • After getting errors to see correct syntax

RETURNS: List of example queries with explanations, tailored to the actual schema present in this graph.

NOTES:

  • The examples are real working queries for this specific graph, so they carry its actual property names and relationships

  • Copy and modify them rather than writing a traversal from scratch

⚠️ QUERY PATTERN NOTE: When joining multiple relationships from the same node, use comma-separated patterns in a SINGLE MATCH clause (not multiple MATCH clauses):

  • ✅ GOOD: MATCH (f:Fact)-[:R1]->(a), (f)-[:R2]->(b)

  • ❌ BAD: MATCH (f:Fact)-[:R1]->(a) MATCH (f)-[:R2]->(b) (may timeout)

📅 PERIOD.period_type VALUES: Period nodes classify time context into three types:

  • instant - Point-in-time (balance sheet dates)

  • duration - A date range (income statement periods) — use duration_type for subtype

  • forever - Unbounded period (rare)

📅 PERIOD.duration_type VALUES (only when period_type = 'duration'):

  • quarterly - ~3 months duration

  • semi_annual - ~6 months duration

  • nine_months - ~9 months duration

  • annual - ~12 months duration

  • other - Non-standard durations Note: Element.period_type indicates the expected period type for that metric - different from Period.period_type!

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": "get-example-queries"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryNoOptional category filter (e.g., 'entity', 'financial', 'relationships', 'aggregations')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuinely useful context beyond that: the returned examples are real, working queries carrying this graph's actual property names, and should be copied and modified rather than written from scratch.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose, WHEN TO USE and RETURNS are well front-loaded and skimmable. However, the trailing QUERY PATTERN NOTE and the two PERIOD.period_type value blocks are extensive schema/domain reference material that is largely tangential to selecting or invoking this tool, inflating the definition considerably.

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?

With no output schema, the description carries the burden of describing returns and does so ('List of example queries with explanations, tailored to the actual schema'). For a single optional-parameter read-only tool this is essentially complete, with only the category filter left unelaborated.

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 the single optional 'category' parameter is already documented in the schema. The description never mentions filtering by category or what values exist beyond the examples in the schema itself, so it adds no meaning over structured data — baseline 3.

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: 'Get example Cypher queries for this graph database,' and clarifies that examples are tailored to the actual schema present. This distinguishes it in practice from schema-inspection siblings like get-graph-schema, though it never names an alternative explicitly.

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?

The WHEN TO USE block gives four concrete situations (exploring a new graph, needing patterns for specific node types, learning relationship structure, recovering from errors), which is stronger than most definitions. It lacks any when-not guidance or named sibling alternative, so it falls short of the top mark.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.