Back to guide/General Productivity

MCP Tool Definition Writer

Providing the parameter list and return format upfront lets the model produce a complete, valid schema instead of a generic skeleton.

mcp-setup-guidetool_nametool_descriptionparameters_list
Edit View
Prompt
Write an MCP tool definition for a function called "{{tool_name}}" that {{tool_description}}.\n\nParameters:\n{{parameters_list}}\n\nReturn format: {{return_format}}\n\nGenerate the complete tool schema in JSON following the MCP specification, including:\n1. name and description\n2. inputSchema with JSON Schema types and required fields\n3. Example invocation with sample parameters\n4. Example successful response

Variables to customize

{{tool_name}}{{tool_description}}{{parameters_list}}{{return_format}}

Why this prompt works

Providing the parameter list and return format upfront lets the model produce a complete, valid schema instead of a generic skeleton.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.