Skip to content

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

fix(dispatch): handle missing tool name in dispatch request

Steven Enamakel9e021c48e013
diff --git a/src/openhuman/mcp/server/tools/dispatch.rs b/src/openhuman/mcp/server/tools/dispatch.rs
index 3450b639da..64ac084a23 100644
--- a/src/openhuman/mcp/server/tools/dispatch.rs
+++ b/src/openhuman/mcp/server/tools/dispatch.rs
@@ -237,9 +237,10 @@ async fn list_core_tools() -> Result<Value, ToolCallError> {
async fn core_tool_instructions() -> Result<Value, ToolCallError> {
let agent = build_orchestrator_agent().await?;
- Ok(tool_text_success(build_tool_instructions_text(
- agent.tool_specs(),
- )))
+ let schemas: Vec<_> = agent.tool_specs().iter().map(spec_to_schema).collect();
+ Ok(tool_text_success(
+ tinyagents::harness::tool::prompt_tool_instructions(&schemas),
+ ))
}
async fn list_subagents() -> Result<Value, ToolCallError> {