Skip to content

Bug: kimi model tool calls missing required parameters (~85% failure rate) #58817

Description

@kennyxk

Bug Description

When using kimi/kimi-code as the default model, tool calls frequently fail with "missing required parameter" errors. The model generates tool call requests without including the required parameters.

Error Message

Validation failed for tool "exec":
  - command: must have required property 'command'
  Received arguments: {}

Validation failed for tool "write":
  - content: must have required property 'content'
  Received arguments: {}

Reproduction

  1. Use kimi/kimi-code as default model
  2. Make 5-10 consecutive tool calls (exec or write)
  3. Observe first batch of calls fail with missing parameters

Impact

Tool Failure Rate
exec ~85%
write ~90%

Environment

OpenClaw: 2026.3.31
Node: v22.22.0
OS: macOS 26.4 (arm64)
Gateway: running
LCM: enabled=true, threshold=0.75

Comparison

Model Success Rate
kimi/kimi-code ~15% ❌
minimax-cn/MiniMax-M2.7 100% ✅

Tested Solutions

  1. LCM threshold adjustment - Failed (config key not found)

    openclaw config set lcm.threshold 0.85
    # Error: Config validation failed: <root>: Unrecognized key: "lcm"
    
  2. OpenClaw upgrade - Issue persists after 3.24 → 3.31

  3. Model switch - MiniMax-M2.7 shows 100% success rate

Root Cause (Suspected)

  • LCM (Long Context Memory) compression may be truncating tool call parameters
  • Or kimi model's output is being cut off during rapid consecutive calls

Workaround

Switch to MiniMax or other stable models as default.

Suggested Fixes

  1. Make LCM threshold configurable
  2. Add parameter validation + auto-retry before tool call
  3. Investigate kimi model's tool call parameter generation

Reported by: Kenny (via OpenClaw)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions