Skip to main content
Glama
grafeo-mcp

grafeo-mcp

Official
by GrafeoDB

search_text

Read-only

Search a text-indexed property by keywords or phrase using BM25 ranking, returning matching nodes with scores, labels, and properties best first.

Instructions

Keyword search (BM25) in a text-indexed property. Returns [{node_id, score, labels, properties}], best first.

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>",
      "property": "<property>",
      "query": "<query>"
    },
    "name": "search_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelYes
limitNoMost results to return.
queryYesKeywords or a phrase.
propertyYesA property with a text index (create_text_index).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.3.0
    • removedInput schema / properties / label / title
      Removed value: -"Label"
    • addedInput schema / properties / limit / description
      Added value: +"Most results to return."
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • addedInput schema / properties / property / description
      Added value: +"A property with a text index (create_text_index)."
    • removedInput schema / properties / property / title
      Removed value: -"Property"
    • addedInput schema / properties / query / description
      Added value: +"Keywords or a phrase."
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • removedInput schema / title
      Removed value: -"search_textArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "search_textOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.2.0

TDQS

A3.6/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 genuine value by disclosing the result object shape and relevance ordering, but says nothing about error behavior when the property lacks an index or about result capping.

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 sentences with no filler: the mechanism, scope and return contract are front-loaded, and the ordering guarantee is appended where it belongs. Every clause carries information.

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?

With four simple parameters, no nested objects and no output schema, the description covers what an agent needs to call and interpret the tool. The remaining gap is failure behavior (missing text index, empty results) for what is otherwise a straightforward read.

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 75% and the schema already documents label, property, query and limit. The description's only parameter-adjacent signal is the 'text-indexed property' constraint, which the schema also states, so it adds little meaning beyond structured fields. Baseline 3 applies.

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 names a specific verb and resource ('Keyword search (BM25)'), the scope constraint ('in a text-indexed property'), and the return shape with ordering ('best first'). It does not name or distinguish itself from retrieval siblings such as vector_search or mmr_search, so it falls short of full sibling differentiation.

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 must infer that this is the right tool for exact keyword matching against a text index, and that create_text_index is a prerequisite. There is no explicit statement of when to prefer this over vector_search or mmr_search, nor any exclusion.

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