Install
openclaw skills install tool-callingDeep workflow for LLM tool/function calling—schema design, validation, permissions, errors, idempotency, testing, and safe orchestration with agents. Use when wiring models to APIs, databases, or internal tools.
openclaw skills install tool-callingTool calling is contract design between a probabilistic planner (the model) and deterministic systems. Failures are usually schema, permissions, or ambiguity—not the LLM “being dumb.”
Trigger conditions:
Initial offer:
Use six stages: (1) define tool surface, (2) schema & validation, (3) authz & safety, (4) execution semantics, (5) errors & observability, (6) evaluation & regression. Confirm side-effect class (read-only vs write).
Goal: Minimize tools; maximize clarity per tool.
search_orders not do_stuffExit condition: Tool list with purpose, inputs, outputs, side effects table.
Goal: Arguments are typed, constrained, and machine-validated before execution.
Exit condition: Validator rejects invalid args with actionable errors back to model or orchestrator.
Goal: Every tool call runs as some principal with least privilege.
Exit condition: Threat brief: “What if model is tricked into calling tool X?” answered.
Goal: Clear transactionality, retries, and idempotency.
Exit condition: Semantics documented for retry behavior (at-least-once delivery common).
Goal: Model (or orchestrator) can recover from failures without leaking internals.
ORDER_NOT_FOUND, PERMISSION_DENIEDExit condition: Dashboards/alerts on tool error rate, latency, denials.
Goal: Tool changes are tested like APIs.
Exit condition: CI or manual eval suite before deploying new tools/schemas.