The model reads the tool name and description as documentation. search_code(query, glob) routes better than tool3.
Do not paste a 50-page runbook into the prompt 'just in case'. Expose lookup_runbook(topic) and let the agent pull one page.
Keep a frozen set of tasks with expected tool traces or answer rubrics. Run it on every prompt or model bump.
Strip API keys, cookies, and .env values before any message is sent. Providers retain prompts under their retention policy.
Inject today's date and the doc's last-updated stamp. Otherwise the model will recommend deprecated flags with confidence.
One good input/output pair outperforms a paragraph of adjectives. Models imitate the example's structure more reliably than they interpret 'be concise'.
Google's grounding / search retrieval is a retrieval step with a vendor index. Treat citations as you would any RAG hit: verify URLs before acting.
Design every mutating tool as idempotent. Agents retry, users double-click, and proxies replay POSTs.
Set a hard max on tool rounds per user request. A confused agent will otherwise call search forever.
Persist tool name, arguments, latency, and a redacted result. When the agent loops, the log is the only ground truth.
// showing 1-10 of 21 posts • page 1/3