Skip to main content
Glama

neighbors

Retrieve the k most related memories around a given memory ID to expand context after a recall hit, while respecting project scope.

Instructions

Expand context AROUND a memory: the k memories most related to the one with id (compact snippets), by recalling on that memory's own text and excluding itself. Use it for on-demand local context after recall surfaces a relevant hit — a bounded expansion, not a whole-store dump. Returns [] if the id is unknown.

Honours the active project scope, like recall: expanding around a hit must not be a side door back into another project's memories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kNo
idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and clearly discloses key behaviors: exclusion of the anchor memory, empty array for unknown ids, and active project scope enforcement. It stops short of stating read-only safety explicitly, but the described behavior is consistent and non-contradictory.

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?

The description is compact and well-structured, with each sentence contributing distinct value: operation, usage trigger, unknown-id behavior, and scope guard. There is no filler or redundancy.

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 two-parameter tool with an output schema and no annotations, the description fully covers invocation, behavior, edge cases, and scope restrictions. An agent has enough context to call it correctly without additional information.

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 0%, so the description must explain the parameters, and it does: id is the anchor memory, k is the number of related memories to return. It does not specify bounds or formatting for k, but the schema default and the described behavior are sufficient for correct invocation.

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 states a specific operation—expand local context around a given memory id—and details the mechanism: return the k most related memories while excluding the anchor memory itself. It also contrasts itself with a 'whole-store dump,' making its narrow scope clear.

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?

It gives an explicit trigger: use on-demand after recall surfaces a relevant hit, for bounded local expansion. It also states what it is not for ('not a whole-store dump'), though it does not enumerate all sibling alternatives.

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

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/DanceNitra/inspeximus'

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