Valuein
Discovery

Set Agent Memory

set_agent_memory
Benchmark and above

Store or update ONE durable memory entry (key → value) for this user so context survives across sessions — preferences, prior conclusions, working context. Replace semantics per key (reusing a key overwrites it). Do NOT store a number you would later cite as a fact: financial ...

Example Call

example_call.pypython
# Using the Valuein MCP server from Python (via MCP SDK)# Or call directly from Claude / Cursor after setup result = await client.call_tool(    "set_agent_memory",    arguments={    "key": "EXAMPLE",    "value": "EXAMPLE"})print(result)

Direct tool call:set_agent_memory(...)

Inputs

ParameterTypeRequiredDescription
keystring
required
Memory key (1–128 chars). Reusing an existing key overwrites its value.
valuestring
required
The note to remember (≤8000 chars). Never store a figure you would cite as a fact — those come from data tools.

Output Fields

memorycreatedprior_value

Example Response

Illustrative
response.jsonjson
{  "memory": null,  "created": null,  "prior_value": 394328000000}

Shape only — field names match the live schema; values are placeholders, not real filings. See MCP server for the structured response shape.

Notes

Available from the Benchmark plan and above.

Try this tool

Get tokenAll tools
CategoryDiscovery
PIT-safeNo
Min planBenchmark
Inputs2 (2 required)

Plan Access

Sample (guest)
Not included
Benchmark (token)
Available
Pro
Available
Institutional
Available

Index names are trademarks of their owners; Valuein is not affiliated with or endorsed by any index provider.