messages_create
Generate a completion from an Anthropic messages-shaped request using the host agent's own model via MCP sampling, so no API key or external model access is required.
Instructions
Generate a completion from an Anthropic messages-shaped request. The completion is produced by the host agent's own model via MCP sampling. No API key is used or needed: the connected agent is the model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model alias; agent-default means the host's own model. | agent-default |
| system | No | System prompt as text or text blocks. | |
| messages | Yes | User/assistant messages in order. | |
| max_tokens | No | Maximum tokens to generate. | |
| temperature | No | Sampling temperature, if the host honors it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |