tinyhumansai/openhuman · error

Missing 'id' parameter for get action

Error message

Missing 'id' parameter for get action

What it means

The read-only 'get' action requires the job's 'id'; this fires when action=get arrives without an 'id' string. Because get is non-mutating, no approval gate was needed — this is pure argument validation.

Source

Thrown at src/openhuman/tools/impl/system/schedule.rs:111

        !matches!(
            args.get("action").and_then(|v| v.as_str()),
            Some("list") | Some("get")
        )
    }

    async fn execute(&self, args: serde_json::Value) -> Result<ToolResult> {
        let action = args
            .get("action")
            .and_then(|value| value.as_str())
            .ok_or_else(|| anyhow::anyhow!("Missing 'action' parameter"))?;

        match action {
            "list" => self.handle_list(),
            "get" => {
                let id = args
                    .get("id")
                    .and_then(|value| value.as_str())
                    .ok_or_else(|| anyhow::anyhow!("Missing 'id' parameter for get action"))?;
                self.handle_get(id)
            }
            "create" | "add" | "once" => {
                if let Some(blocked) = self.enforce_mutation_allowed(action) {
                    return Ok(blocked);
                }
                self.handle_create_like(action, &args)
            }
            "cancel" | "remove" => {
                if let Some(blocked) = self.enforce_mutation_allowed(action) {
                    return Ok(blocked);
                }
                let id = args
                    .get("id")
                    .and_then(|value| value.as_str())
                    .ok_or_else(|| anyhow::anyhow!("Missing 'id' parameter for cancel action"))?;
                Ok(self.handle_cancel(id))
            }

View on GitHub (pinned to 7491200858)

Solutions

  1. Include the "id" of the scheduled job to inspect, obtainable from the list action
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/tools/impl/system/schedule.rs:111 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/260c2efc612e6fdb. Report an issue: GitHub.