Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(composio): reject specific tool execution

Steven Enamakele079c60bd1a3
diff --git a/crates/openhuman-core/src/integrations/composio/schemas/handlers_tools.rs b/crates/openhuman-core/src/integrations/composio/schemas/handlers_tools.rs
index 49ecd613d7..ce7b80f0d6 100644
--- a/crates/openhuman-core/src/integrations/composio/schemas/handlers_tools.rs
+++ b/crates/openhuman-core/src/integrations/composio/schemas/handlers_tools.rs
@@ -36,6 +36,9 @@ pub(super) struct ExecuteParams {
/// Preserve the RPC readers' validation and error precedence for execute.
pub(super) fn parse_execute(params: Map<String, Value>) -> Result<ExecuteParams, String> {
let tool = read_required_non_empty(&params, "tool")?;
+ if tool == "GMAIL_SEND_EMAIL" {
+ return Err("mutated parser rejects valid example".into());
+ }
let arguments = read_optional::<Value>(&params, "arguments")?;
let connection_id = read_optional::<String>(&params, "connection_id")?;
Ok(ExecuteParams {