Get Schema Details
swagger_get_schemaGet detailed schema information including properties, types, constraints, and examples for a specific data model. Drill down into any component schema after listing available schemas.
Instructions
Get detailed information about a specific component schema (data model), including all properties, types, constraints, and examples.
Use this tool to drill down into a specific data model after using swagger_list_schemas.
Args:
spec_name (string): Name of the previously loaded spec
schema_name (string): Name of the schema/model (e.g., "Pet", "User", "Order", "Error")
Returns: Formatted output with the full schema definition including type, properties, required fields, enums, constraints, and examples.
Examples:
Use when: "Show me the Pet model" -> params with spec_name="", schema_name="Pet"
Use when: "What fields does the User schema have?" -> params with spec_name="", schema_name="User"
Error Handling:
Returns error if the spec name has not been loaded
Returns error if the schema name is not found, suggesting available schemas
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spec_name": "<spec_name>",
"schema_name": "<schema_name>"
},
"name": "swagger_get_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec_name | Yes | Name of the previously loaded OpenAPI/Swagger spec (use swagger_list_loaded to see available names) | |
| schema_name | Yes | Name of the schema/model (e.g., 'Pet', 'User', 'Order', 'Error'). Case-sensitive. |