Skip to main content
Glama

graph_query

Query a code graph using Cypher or natural language to retrieve structured information about code structure, dependencies, and architectural insights.

Instructions

Execute Cypher or natural language query against the code graph

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesCypher or natural language query
languageNoQuery languagenatural
modeNoQuery mode for natural languagelocal
limitNoResult limit
projectIdNoProject namespace for graph isolation
profileNoResponse profilecompact
asOfNoOptional ISO timestamp or epoch ms for temporal query mode
Behavior2/5

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

No annotations exist, so the description must disclose behavioral traits. It does not mention side effects, mutability, auth requirements, or performance. While a query is likely read-only, the description omits this explicit assurance.

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?

The description is a single concise sentence that clearly communicates the core purpose. It is front-loaded and efficient, though a second sentence with usage nuance could improve without harming conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (7 parameters, 3 enums, no output schema), the description is too sparse. It does not explain key choices like mode, limit, or projectId, nor does it describe the return format. An agent would need more context to use it effectively.

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 baseline is 3. The description adds no extra meaning beyond 'Cypher or natural language', which is already implied by the parameters. No additional context about parameter interaction or interpretation is provided.

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?

The description clearly states the tool executes Cypher or natural language queries against the code graph, which is a specific action on a distinct resource. It mentions two query types, distinguishing it from other graph-related tools. However, it could be more explicit about differentiation from siblings like 'ref_query'.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. With many sibling tools (e.g., sematic_search, ref_query), the lack of usage recommendations or exclusions leaves the agent without decision support.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lexCoder2/lxDIG-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server