Skip to main content
Glama
grafeo-mcp

grafeo-mcp

Official
by GrafeoDB

search_nodes_by_label

Read-only

List nodes that share a single label with their properties, paginated by limit and offset. Use execute_gql to filter results when you need targeted graph data.

Instructions

List the nodes that have one label, with their properties, a page at a time. Filter with execute_gql.

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": {
      "label": "<label>"
    },
    "name": "search_nodes_by_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelYes
limitNoPage size.
offsetNoNodes to skip, for the next page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.3.0
    • removedInput schema / properties / label / title
      Removed value: -"Label"
    • addedInput schema / properties / limit / description
      Added value: +"Page size."
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • addedInput schema / properties / offset / description
      Added value: +"Nodes to skip, for the next page."
    • removedInput schema / properties / offset / title
      Removed value: -"Offset"
    • removedInput schema / title
      Removed value: -"search_nodes_by_labelArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "search_nodes_by_labelOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds that results come back 'a page at a time' with properties included, which is useful, but it doesn't state ordering guarantees for offset paging or behavior when the label matches nothing. This is helpful context, but not rich behavioral disclosure.

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 short sentences with zero filler. The capability is front-loaded and the sibling routing comes second, which is the right order.

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 simple three-parameter read tool with an output shape already implied by 'with their properties' and no output schema, the definition covers what is needed to call it. The only gaps are ordering stability and the empty-label-case behavior, which are minor for this 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 coverage is 67%: limit and offset are already documented with defaults, while label has no description. The phrase 'one label' adds a meaningful constraint that the schema doesn't state, but 'a page at a time' merely restates the limit/offset fields. Baseline 3 fits, given the schema does most of the work.

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: 'List the nodes that have one label, with their properties.' It also signals the scope limiting (single label via exact match) and that results are paged. It's clear enough to distinguish from get_node, but it doesn't explicitly contrast with the other node-retrieval siblings.

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?

'Filter with execute_gql' gives an explicit routing rule: use this tool for a plain label scan, and go to execute_gql when you need filtering. It doesn't spell out the reciprocal 'use this when' condition or exclusions, but the alternative is named with its trigger.

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