Prompt LibraryAgents

LLM Function-Calling JSON Schema Writer Prompt

Turn a plain description into a strict function-calling JSON schema.

The prompt

Convert this tool description into a JSON schema for function calling:
{{description}}

Rules: every parameter has a type, a description with units/format, and required vs optional marked explicitly.
Add an enum wherever the value space is closed.
Add a "dry_run" boolean parameter if the underlying action mutates data.
Return only the JSON schema, then a two-line example call.

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

Share this prompt