tinyhumansai/openhuman · error · anyhow::Error
Missing 'namespace' parameter
Error message
Missing 'namespace' parameter
What it means
The memory recall tool was invoked without a `namespace` string argument. `namespace` is first in the schema's `required` list (along with `query`) and is read before any search runs, so this is a missing-argument guard: the args object had no `namespace` key or a non-string value, and the store lookup cannot proceed without knowing which namespace to search.
Source
Thrown at src/openhuman/memory/tools/recall.rs:63
},
"namespace": {
"type": "string",
"description": "Namespace to search (e.g. 'global', 'background', 'autocomplete', or 'skill-{id}')"
},
"limit": {
"type": "integer",
"description": "Max results to return (default: 5)"
}
},
"required": ["namespace", "query"]
})
}
async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {
let namespace = args
.get("namespace")
.and_then(|v| v.as_str())
.ok_or_else(|| anyhow::anyhow!("Missing 'namespace' parameter"))?
.trim();
if namespace.is_empty() {
return Err(anyhow::anyhow!("namespace cannot be empty"));
}
let query = args
.get("query")
.and_then(|v| v.as_str())
.ok_or_else(|| anyhow::anyhow!("Missing 'query' parameter"))?
.trim();
if query.is_empty() {
return Err(anyhow::anyhow!("query cannot be empty"));
}
#[allow(clippy::cast_possible_truncation)]
let limit = args
.get("limit")
.and_then(serde_json::Value::as_u64)
.map_or(5, |v| v as usize);View on GitHub (pinned to 7491200858)
Solutions
- Include `namespace` in the tool call, e.g. 'global', 'background', 'autocomplete', or 'skill-{id}'
- Ensure the value is a JSON string, not null or another type
- Verify required args against the tool schema before invoking
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/openhuman/memory/tools/recall.rs:63 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/fc36f26be2c6986d.
Report an issue: GitHub.