How should tools exposed to an agent be designed?
Tools should have narrow purposes, typed schemas, explicit side effects, predictable errors, and minimal outputs. Separate read and write operations, ...
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 1789–1800 of 3610 questions
Tools should have narrow purposes, typed schemas, explicit side effects, predictable errors, and minimal outputs. Separate read and write operations, ...
Bind approval to the exact action, arguments, target environment, and relevant diff hash, and expire it when those details change. Broad approvals suc...
Record task and actor identity, tool name, validated arguments or a redacted summary, policy decision, timestamps, outcome, and approval reference. Av...
Bind each task to an authenticated tenant and workspace on the server side, enforce authorization on every tool call, and isolate files and credential...
Unrestricted egress can leak source code or secrets and contact malicious endpoints. Use allowlists, proxies, and explicit review for uploads or packa...
Treat tool output as untrusted data, validate its structure and origin, and never let embedded instructions override trusted policy. For high-impact a...
Use stable operation identifiers, detect completed work, and verify state before retrying. This prevents duplicate issues, commits, resources, or depl...
Retry only transient failures with bounded exponential backoff and jitter. Before retrying non-idempotent operations, check whether the first attempt ...
Track repeated tool arguments, unchanged state, recurring errors, and lack of progress against acceptance criteria. Stop or escalate after bounded rep...
When authorization, approval, validation, or policy evaluation is unavailable or ambiguous, deny the high-impact action rather than guessing. Provide ...
Propagate cancellation to active tools, stop scheduling new work, and leave the workspace recoverable. Cancelling a model request may not terminate su...
Large outputs consume context and hide relevant signals. Cap output, summarize with deterministic tools where possible, and preserve a reference to th...