api_debug
Execute API requests for debugging with automatic content-type detection and support for JSON, form data, XML, and plain text bodies.
Instructions
API debugging tool for directly executing API requests with automatic content-type detection and flexible body format support. Examples: GET /api/users with query params, POST /api/login with JSON body {"username":"admin","password":"123456"}, PUT /api/users/123 with form data "name=John&email=john@example.com"
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"description": "Simple GET request",
"url": "/api/users",
"method": "GET",
"query": {
"page": 1,
"limit": 10
}
},
"name": "api_debug"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | API URL to execute (required) | |
| method | No | HTTP method (optional, defaults to GET) | |
| headers | No | Additional headers for the request (optional) | |
| query | No | Query parameters (optional) | |
| body | No | Request body (optional) - Supports multiple formats: JSON object, form data, or plain text | |
| contentType | No | Content-Type for request body (optional, will auto-detect if not specified) |