THE DEV BENCH
🧾 JSONmedium

5. Define a prompt with arguments

Define an MCP prompt named "summarize" that takes one required argument: • name: "summarize" • arguments: an array with one entry — name "text", a description, and required: true

How to approach this

A prompt is a USER-controlled, parameterized template (think slash command). It declares its parameters in an `arguments` ARRAY, where each entry is `{ name, description, required }`. When the user invokes it, the client collects those values and calls `prompts/get`, which returns the rendered messages. Here `summarize` needs the `text` to summarize, marked required.

config.json