Skip to main content
Glama

Semantic search

semantic_search
Read-onlyIdempotent

Search a graph's classes and objects — meaning AND keywords.

Two rankers run and their results are fused: a vector leg that matches by
meaning (finds the paraphrase) and a keyword leg that matches the literal
words (finds the rare token a vector smooths away — an error code, a
surname, a part number). Each hit carries `via` saying which legs found
it; a hit both agreed on is a stronger answer than one matched on
keywords alone. Ties break toward the NEWER row.

Because the keyword leg needs no index, search still answers on a graph
that was never embedded — with a `note` saying the semantic half was
unavailable. `memory` is the graph's slug from list_my_memories. `kind` =
'class' | 'object' | omit. Every object hit is approved, the team's
record.

`expand=1` inlines each top object hit's FIRST RING — properties plus
relationship groups with counts and member previews — so you learn what a
hit is and what it touches without a get_object per hit. Prefer expand=1
whenever you intend to follow relationships; for reach beyond one ring,
use get_paths instead of hopping get_object calls.

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": {
      "memory": "<memory>",
      "query": "<query>"
    },
    "name": "semantic_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo
queryYes
top_kNo
expandNo
memoryYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: explains the two fused rankers, that each hit carries `via`, that both-agreed hits are stronger, that ties break toward newer rows, and that unembedded graphs still answer with a `note` about the missing semantic half. It also states that every object hit is approved team record, which is real trust/context information an agent cannot infer.

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?

Front-loads the core definition and then structures behavior, degradation, parameters, and expansion in a sensible order; every section is useful, though the parenthetical illustration of rare tokens is slightly ornamental and the piece runs longer than strictly necessary.

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

Completeness5/5

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

For a 5-parameter hybrid search tool with an output schema, this covers ranking behavior, tie-breaking, degraded-mode signaling, parameter meaning, and follow-up paths — everything an agent needs to invoke it correctly and interpret hits.

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?

With 0% schema description coverage the description must carry the load, and it defines `memory` (slug from list_my_memories), `kind` ('class' | 'object' | omit), and the effect of `expand=1` in detail. It never explains `top_k` or adds anything about `query` formatting, leaving one parameter undocumented in both schema and description.

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?

Names a specific verb and resource ('Search a graph's classes and objects') and immediately scopes it as hybrid meaning+keyword retrieval, which cleanly separates it from list_classes, list_objects, and get_object.

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?

Gives concrete routing guidance: 'Prefer expand=1 whenever you intend to follow relationships' and 'for reach beyond one ring, use get_paths instead of hopping get_object calls,' and points at list_my_memories as the source of the memory slug. It stops short of stating when to choose this over login-free listing or recall-style tools, so exclusions are not fully enumerated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources