structuredContent
Generate structured content validated against JSON schemas to ensure data consistency and reliability in MCP server applications.
Instructions
Returns structured content that conforms to a well-defined JSON schema. Demonstrates MCP's structured output / schema-validated tool responses.
Args: includeOptionalFields: Whether to include optional fields in the response (default: False)
Returns: A structured dict with schema-validated fields
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "structuredContent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeOptionalFields | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||