Skip to main content
Glama
oemoem12

lmstudio-agent-mcp

by oemoem12

agent_memory_search

Read-onlyIdempotent

Search memory entries by substring or regex across keys, values, and tags. Filter by category and limit to get relevant matches.

Instructions

Search memory entries by substring or regex across key, value, and tags.

Args: query: Substring or regex to look for. use_regex: Treat the query as a regular expression. category: Restrict the search to a single category. limit: Maximum number of matches to return.

Returns: str: JSON with keys 'success', 'count', and 'matches'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of matches to return.
queryYesSubstring or regex to look for in keys, values, and tags.
categoryNoRestrict the search to a single category.
use_regexNoTreat the query as a regular expression.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint. The description adds value by specifying the return format (JSON with 'success', 'count', 'matches') and the search scope across key, value, and tags.

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?

The description is well-structured with a leading sentence, Args, and Returns sections. The Args section is somewhat redundant with the schema, but the format is clean and front-loaded.

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?

The description covers all essential aspects for a search tool: query semantics, parameter behavior, and return format. With an output schema present, return values need not be explained, yet they are, making the description complete.

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 the schema already documents all parameters. The Args block in the description repeats the same information without adding extra meaning.

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 verb and resource: 'Search memory entries by substring or regex across key, value, and tags.' It clearly distinguishes from sibling tools like agent_memory_list and agent_memory_load.

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?

The description provides clear context for when to use this tool (searching memory entries) without explicitly naming alternatives or exclusions. It is obvious that this is the search variant among the memory 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/oemoem12/lmstudio-agent-mcp'

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