Skip to main content
Glama

Metis ยท Memory Curator โ€” Surface Relevant Context

surface_relevant_context

Retrieve past memory entries relevant to a topic, ranked by relevance, and return a structured context brief for agent context injection.

Instructions

Retrieve past memory entries relevant to a topic and return a structured context brief.

Searches memory_entries by topic keyword and optional tag list, ranks by
relevance, and formats the top N entries for injection into the current
agent's working context.

Args:
    topic: The topic or task description to search for.
    tags: Optional comma-separated topic tags to include (e.g. 'methods,phd').
    top_n: Maximum number of entries to return (default 5).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNo
top_nNo
topicYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries full burden. It describes search, ranking, and formatting behavior, but does not disclose permissions, side effects, or data safety. It implies a read-only operation but doesn't confirm.

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 concise (three sentences plus arg definitions), front-loaded with purpose, and every sentence adds value. No fluff or repetition.

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 retrieval tool with an output schema, the description adequately covers purpose, parameters, and usage. It could mention behavior when no entries are found, but overall complete.

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?

The description adds meaning beyond the input schema: it explains 'topic' as 'topic or task description', 'tags' as 'optional comma-separated topic tags' with an example, and 'top_n' as 'maximum number of entries to return (default 5)'. Schema coverage is 0%, so description compensates well.

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 clearly states it retrieves past memory entries by topic and returns a structured context brief. It specifies the verb 'Retrieve' and the resource 'memory entries', but does not explicitly differentiate from sibling tools like search_memory or search_notes.

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?

The description explains when to use (when needing memory entries for context injection) and how the tool works (topic keyword, optional tags, ranking, top N). However, it lacks guidance on when not to use or mention of alternatives among the many sibling search tools.

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

Install Server

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/SVerITG/Metis'

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