Skip to main content
Glama

query_graph

Search a knowledge graph using BFS or DFS to retrieve relevant nodes and edges as text context for natural language questions.

Instructions

Search the knowledge graph using BFS or DFS. Returns relevant nodes and edges as text context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNobfs=broad context, dfs=trace a specific pathbfs
depthNoTraversal depth (1-6)
questionYesNatural language question or keyword search
project_pathNoAbsolute path to a project directory containing graphify-out/graph.json. Optional — defaults to the graph this server was started with.
token_budgetNoMax output tokens
context_filterNoOptional explicit edge-context filter, e.g. ['call', 'field']
Behavior3/5

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

No annotations are provided, so the description must carry the burden. It mentions BFS/DFS traversal and returning 'text context', but does not disclose that it is read-only, lacks side effects, or what the output format entails. It is adequate but not detailed.

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 two sentences, front-loaded with the core action. It is concise, though it could include more usage context without becoming verbose.

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?

With 6 parameters and no output schema, the description omits important details like return format, how nodes/edges are structured, and how results relate to other tools. It is incomplete for the tool's complexity.

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 additional meaning beyond the schema's own parameter descriptions, which already explain mode, depth, etc.

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 'Search the knowledge graph using BFS or DFS', which is a specific verb-resource pair and distinguishes it from sibling tools like get_node, get_neighbors, or shortest_path.

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?

The description does not provide guidance on when to use this tool versus alternatives. The schema hints at BFS vs DFS usage, but the main description lacks when-not-to-use or sibling comparisons.

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/sughosh-pocketfm/kbask'

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