Search agent memory with several queries at once
memory_search_batchAnswer several questions against one agent's memory in a single concurrent call and get a deduplicated merged result, avoiding separate searches and extra round trips.
Instructions
Answer SEVERAL questions against one agent's memory in a single call, run concurrently. Use it whenever you hold more than one open question; use memory_search when you have exactly one. Put EVERY open question into ONE call: queries run in parallel server-side and splitting them costs a model round trip each. A query may come back with a weak-match note naming nearby vocabulary: reformulate those once with the suggested terms; lasting synonyms belong in memory_alias. Returns merged, a deduplicated best-first block ready to read where a fact answering several queries appears once, plus per_query for the individual lists. Ranking per query is identical to calling memory_search alone; this changes how many turns you spend, not what comes back.
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": {
"agent_id": "<agent_id>",
"queries": "<queries>"
},
"name": "memory_search_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | Optional cap on facts returned per query. Omitted or non-positive uses the store default. | |
| queries | Yes | The natural-language queries to answer, one per open question. Word each as you would for a single search; they are ranked independently and merged. | |
| agent_id | Yes | Stable agent identifier, e.g. "graymatter-backend". Pass "__shared__" for project-wide memory. | |
| min_confidence | No | Optional minimum effective confidence, applied before ranking and top-k. Legacy empty labels are inferred; unknown historical labels are unverified. Any explicit filter suppresses graph hints without receipts. | |
| confidence_weight | No | Optional finite preference weight in [0,0.5], default zero during opt-in rollout. Final score = base RRF * (1 + weight*c), c=1 verified, 0 inferred, -1 unverified. Zero retains an explicit filter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| merged | Yes | ||
| agent_id | Yes | ||
| per_query | Yes | ||
| retrieval | No |