Prompt LibraryAgents

Agent Tool-Use Scaffold Prompt for New Capabilities

Bootstrap the full tool-calling loop skeleton for one capability.

The prompt

Capability to add: {{capability}}

Produce, in order:
1. The tool's function-calling schema (name, description, params, return shape).
2. The system prompt clause that tells the model when to call it and when not to.
3. Three test requests: one that should call it, one that should not, one ambiguous case and how to resolve it.
4. The error the tool should return on invalid input, and the recovery instruction for the model.

Replace the {{fields}} with your own context and tighten the rules to match your domain.

Share this prompt