tinyhumansai/openhuman · error · anyhow::Error
Missing 'query' parameter
Error message
Missing 'query' parameter
What it means
Required-parameter guard in the memory recall tool's execute: the `query` argument is absent or not a string (namespace already validated and non-empty). The schema requires both; fires before any memory search, so nothing was queried.
Source
Thrown at src/openhuman/memory/tools/recall.rs:71
}
},
"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);
// Search with the user query only. Prefixing `namespace` into the query
// string would add a redundant token matching almost every row. Instead,
// namespace scoping belongs in RecallOpts so the backend restricts the
// search to the correct namespace column.
let recall_opts = crate::openhuman::memory::api::recall::OwnedRecallOpts {
namespace: Some(namespace.to_string()),
..Default::default()View on GitHub (pinned to 7491200858)
Solutions
- Include the "query" string to search for
- Check the tool call did not drop trailing fields
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/openhuman/memory/tools/recall.rs:71 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/26ba56e4f7d9b5a8.
Report an issue: GitHub.