Skip to main content
Glama
tigergraph

tigergraph-mcp

Official
by tigergraph

tigergraph__show_query

Read-onlyIdempotent

Retrieve the GSQL text of an installed query to review its logic, debug behavior, or document existing code. Provide the query name to get the full source.

Instructions

Show the GSQL text of an installed query.

Use When: • Reviewing what an installed query does • Debugging query behavior • Understanding existing queries • Documenting installed queries

Quick Start:

{
  "query_name": "getPersonFriends"
}

Tips: • Returns the full GSQL query text • Query must be installed first • Use 'is_query_installed' to check existence

Related Tools: install_query, get_query_metadata, is_query_installed

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
profileNoConnection profile name. Omit to use the active default profile. Use 'list_connections' to see available profiles.
graph_nameNoName of the graph. If not provided, uses default connection.
query_nameYesName of the query to show.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds useful behavioral context: it returns the full GSQL query text, requires the query to be installed first, and suggests checking existence. This goes beyond annotations without contradicting them.

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?

The description is well-structured with clear headers: purpose, Use When, Quick Start, Tips, and Related Tools. The main purpose is front-loaded, and each section adds distinct value without redundancy. It's appropriately sized and easy to scan.

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?

Given the simplicity of the tool (show query text) and the presence of safety annotations, the description covers the essential aspects: purpose, usage scenarios, prerequisites (installed query), and return value (full GSQL text). It lacks details on error handling or exact output formatting, but these are minor for a read-only operation. No output schema exists, so the description adequately explains the return.

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% – all three parameters have descriptions in the schema, so the baseline is 3. The description provides a quick start example for query_name but doesn't enrich understanding of profile or graph_name beyond what the schema already states. It adds marginal value over the schema.

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?

The description clearly states the tool's function: 'Show the GSQL text of an installed query.' This is a specific verb and resource, and it distinguishes from siblings like run_query (executing) and install_query (installing). The 'Use When' section reinforces the purpose with concrete scenarios.

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 'Use When' section provides explicit scenarios for using this tool, and the tip 'Use is_query_installed to check existence' gives actionable guidance. It lists related tools (install_query, get_query_metadata, is_query_installed) but doesn't explicitly contrast when to use them instead. This is clear but slightly lacks exclusionary guidance.

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

Deploy Server

Other Tools