Skip to main content
Glama

search_nodes

Read-only

Search a knowledge graph for nodes whose names, types, or metadata match every query word, returning matching nodes and their direct neighbors.

Instructions

Search for nodes in the knowledge graph. Returns the nodes that contain every word of the query in their name, type or metadata, plus their direct neighbours

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>"
    },
    "name": "search_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesOne or more words to match (case-insensitive) against node names, types, and metadata content

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedInput schema / properties / query / description
      Previous value: -"The search query to match against node names, types, and metadata content"New value: +"One or more words to match (case-insensitive) against node names, types, and metadata content"
  2. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: conjunctive ('every word') matching and the fact that results include direct neighbours. It says nothing about result limits, ordering, or whether the neighbour edges themselves are returned.

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?

Two tight sentences, front-loaded with the action and followed by match rules and return shape. Every clause carries information; nothing is repeated filler.

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?

For a one-parameter read tool with no output schema, the description does the important work of describing what comes back (matching nodes plus direct neighbours). It falls short only on practical call details such as result caps or ordering, which matter for a graph search.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents the single query parameter, its case-insensitivity, and the matched fields. The description still adds real meaning by specifying AND semantics ('contain every word'), which the schema leaves ambiguous as 'one or more words to match'.

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 ('Search for nodes in the knowledge graph') and adds the matching semantics (every word of the query against name, type or metadata) plus the return scope (direct neighbours). That implicitly separates it from read_graph and open_nodes, 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 Guidelines3/5

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

Usage is only implied: an agent can infer to use this when it has keywords rather than an id. There is no explicit when-to-use, when-not, or pointer to open_nodes for id lookup or read_graph for a full dump, so guidance is left to inference.

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