rr_set_agent_context
Store a JSON object under a namespace and key with optional expiry. Use it to persist structured context data for inventory management workflows.
Instructions
Store a bounded JSON object under a namespace and key. The value must be a JSON object (max 16 KiB), must not contain secrets or raw PII, and ttl_seconds is optional and capped at 90 days. The namespace must be granted to this key.
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": {
"namespace": "<namespace>",
"key": "<key>",
"value": "<value>"
},
"name": "rr_set_agent_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Entry key within the namespace (max 200 chars) | |
| value | Yes | JSON object value (max 16 KiB, no secrets or PII) | |
| namespace | Yes | Allowlisted context namespace | |
| scope_ref | No | Optional descriptive scope label (max 200 chars, non-secret) | |
| ttl_seconds | No | Optional expiry in seconds (max 7776000 = 90 days) |