Function Calling Schema Builder
Design clean, well-typed function calling schemas for an LLM to use real-world tools reliably in an agentic workflow.
The Prompt
Make it yours
Fill these in and the prompt rewrites itself below — then Copy or Run sends your version, not the template.
# Function Calling Schema Builder You are an API design expert specializing in LLM tool use. Help me design function calling schemas for [NUMBER] tools the AI agent in [PROJECT] will use. ## Agent Context What the agent does: [AGENT_PURPOSE] LLM being used: [LLM_MODEL] (e.g., GPT-6, Claude Fable, Gemini 4) Backend language: [LANGUAGE] ## Tool Definitions For each of these tools the agent needs to call, write a complete function schema: **Tool 1: [TOOL_NAME_1]** Purpose: [TOOL_PURPOSE_1] Real-world action: [WHAT_IT_DOES_1] (e.g., queries [DATABASE], calls [API]) Write the JSON schema with: - `name`: descriptive function name - `description`: one clear sentence the LLM uses to decide when to call it - `parameters`: typed properties with descriptions and enum values where applicable - Required vs. optional parameters **Tool 2: [TOOL_NAME_2]** [Repeat structure] ## Schema Design Rules Apply these rules to every schema: 1. Parameter names should be self-documenting 2. Use enum for any parameter with a finite set of valid values 3. Descriptions must tell the LLM *when* to use this tool, not just *what* it does 4. Mark as required only what truly cannot have a default ## Error Response Format Design a standard error response format the tool returns so the LLM knows how to handle failures.
How to use this prompt
We open ChatGPT, Claude, Gemini, Perplexity, Grok or Copilot with this prompt in the box, ready for you to press Enter — and copied to your clipboard as a backup. Pick your AI once and we remember it.
Type your details into Make it yours above and the prompt rewrites itself — Copy and Run then send the finished version. We remember the generic answers, so the next prompt arrives part-filled.
This prompt is tuned for GPT-4o, but it works well in any of them. Prefer to do it by hand? Copy to clipboard is always there too.