{"uid":"cap_2F-0FabO3hdeEyAD6oXyn","slug":"agent402-tools-semantic-memory-recall-b42abaff","name":"agent402.tools Semantic Memory Recall","description":"Recall remembered text by similarity to a query (ranked by cosine similarity), not by exact key. Returns the top-k matches with scores. The retrieval half of the wallet-scoped semantic memory.","url":"https://agent402.tools/api/memory/recall","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"k":{"type":"number","description":"How many matches (1-50, default 5)"},"owner":{"type":"string","description":"Optional 0x namespace (requires a grant)"},"query":{"type":"string","description":"Natural-language query"}}},"responseSchema":{"type":"json","example":{"query":"why did the deployment break","results":[{"id":"abc123","text":"The deploy failed because…","score":0.62}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DsOTZhA8gtW-YftsRLBIR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves the top-k previously stored memory entries most semantically similar to a natural-language query, ranked by cosine similarity score, within a wallet-scoped memory store.","exampleAgentPrompt":"Search my semantic memory for the top 5 entries most similar to 'project deadlines and milestones' and return them with their similarity scores.","exampleUseCases":null,"resultDescription":"Returns the top-k memory entries ranked by cosine similarity to the query, each with a similarity score. Default k is 5, max is 50. Results represent the closest semantic matches to the query from the wallet-scoped memory store.","failureModes":["Query string missing — returns 400 bad request","k value out of range (must be 1–50) — returns validation error","Owner namespace provided without a valid grant — returns authorization error","No stored memories exist yet — returns empty result set","Payment not processed — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to retrieve previously stored information by meaning rather than exact key or identifier — ideal for AI agent memory retrieval, context injection, and fuzzy recall of past notes or facts. Prefer over exact-key lookups when the query is natural language and the stored content is unstructured text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:04.891Z","isFirstParty":false}