Anthropic · Schema

ImprovePromptRequest

LLMAnthropicArtificial IntelligenceClaudeFoundation ModelsMachine LearningMCPAgents

Properties

Name Type Description
messages array The prompt to improve, structured as a list of message objects. Each message must contain only text-only content blocks and not include tool calls, images, or prompt caching blocks. Only contiguous us
feedback stringnull Feedback for improving the prompt. Use this parameter to share specific guidance on what aspects of the prompt should be enhanced or modified. When not set, the API will improve the prompt using gener
system stringnull The existing system prompt to incorporate, if any. Note that while system prompts typically appear as separate parameters in standard API calls, in the improve_prompt response, the system content will
target_model stringnull The model this prompt will be used for. This optional parameter helps us understand which models our prompt tools are being used with, but it doesn't currently affect functionality.
View JSON Schema on GitHub

JSON Schema

anthropic-improve-prompt-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/anthropic/main/json-schema/anthropic-improve-prompt-request-schema.json",
  "title": "ImprovePromptRequest",
  "x-generated": "2026-09-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anthropic-prompt-improvement-api-openapi.yml#/components/schemas/ImprovePromptRequest",
  "type": "object",
  "required": [
    "messages"
  ],
  "properties": {
    "messages": {
      "type": "array",
      "description": "The prompt to improve, structured as a list of message objects.\nEach message must contain only text-only content blocks and\nnot include tool calls, images, or prompt caching blocks.\nOnly contiguous user messages with text content are allowed.\nAssistant prefill is permitted.\n",
      "items": {
        "$ref": "#/$defs/PromptMessage"
      }
    },
    "feedback": {
      "type": [
        "string",
        "null"
      ],
      "description": "Feedback for improving the prompt.\nUse this parameter to share specific guidance on what\naspects of the prompt should be enhanced or modified.\nWhen not set, the API will improve the prompt using general\nprompt engineering best practices.\n"
    },
    "system": {
      "type": [
        "string",
        "null"
      ],
      "description": "The existing system prompt to incorporate, if any.\nNote that while system prompts typically appear as separate\nparameters in standard API calls, in the improve_prompt\nresponse, the system content will be incorporated directly\ninto the returned user message.\n"
    },
    "target_model": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "The model this prompt will be used for. This optional\nparameter helps us understand which models our prompt tools\nare being used with, but it doesn't currently affect\nfunctionality.\n",
      "minLength": 1,
      "maxLength": 256
    }
  },
  "$defs": {
    "PromptMessage": {
      "type": "object",
      "required": [
        "role",
        "content"
      ],
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "user",
            "assistant"
          ],
          "description": "The role of the message sender"
        },
        "content": {
          "type": "array",
          "description": "The content of the message",
          "items": {
            "$ref": "#/$defs/TextContentBlock"
          }
        }
      }
    },
    "TextContentBlock": {
      "type": "object",
      "required": [
        "type",
        "text"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "text"
          ],
          "description": "The type of content block"
        },
        "text": {
          "type": "string",
          "description": "The text content"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/anthropic-improve-prompt-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.