Skip to main content
Glama

recall_with_graph

Read-onlyIdempotent

Search memory with Knowledge Graph expansion to retrieve broader context: related decisions, incidents, and learnings ranked by relevance and graph distance.

Instructions

Search memory with Knowledge Graph expansion. Seeds from hybrid recall, then BFS-traverses memory_edges up to hops depth. Returns memories ranked by composite score with hop_distance and provenance fields. Use when you want broader context — related decisions, connected incidents, derived learnings.

Input Schema

NameRequiredDescriptionDefault
qYesSearch query (keywords or natural language).
hopsNoGraph traversal depth (default 2, max 5).
task_idNoOptional task ID — used as cache key discriminator for session-scoped traversal.
project_idNoFilter to a specific project.
weight_thresholdNoMinimum edge weight to follow (default 0.3).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower; the description nonetheless discloses the execution model (hybrid recall seeding, BFS over memory_edges bounded by hops) and the result shape (composite score ranking with hop_distance and provenance). It omits any note that deeper traversal is more expensive or how task_id caching affects results.

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?

Four tight sentences, front-loaded with the mechanism and followed by return shape and usage trigger. No filler or restated title.

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?

No output schema exists, and the description covers return values, traversal behavior, and the selection context, while annotations carry the safety profile. Enough for an agent to invoke it correctly.

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 100%, so every parameter is already documented; baseline is 3. The description echoes `hops` as traversal depth and frames `q` as the seed for hybrid recall, but does not clarify `weight_threshold`, `task_id` cache semantics, or how `project_id` narrows traversal, so it adds little beyond the schema.

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?

States a specific verb + resource (search memory) plus a differentiating mechanism: Knowledge Graph expansion seeded from hybrid recall with BFS over memory_edges. An agent can distinguish it from the sibling `recall` purely from this text.

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?

"Use when you want broader context — related decisions, connected incidents, derived learnings" gives a clear positive context for selection. It does not explicitly name the plain `recall` sibling or state when the cheaper non-graph path is preferred, so routing is implied rather than complete.

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