Test Error Handling
test_error_handlingThrows a chosen error type to verify the MCP server formats and returns errors correctly.
Instructions
Throws a specific type of error to verify the server formats and returns them correctly over MCP.
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": "test_error_handling"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Test error message | |
| error_type | No | ||
| use_test_db | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, INTERNAL_ERROR) | |
| error | No | Human-readable error message | |
| details | No | Additional error context | |
| category | No | Error category (validation, query, connection, internal) | |
| suggestion | No | Suggested fix for the error | |
| recoverable | No | Whether the error is recoverable | |
| aggregated_errors | No | Details of individual errors in a multi-step operation |