fetch_api
Make REST API requests with specified methods, headers, and body using the Web-curl MCP Server. Supports GET, POST, PUT, DELETE, and more for seamless API interactions.
Instructions
Make a REST API request with various methods, headers, and body.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
body | No | Request body (JSON object, string, etc.). | |
headers | No | Request headers (e.g., for authorization). | |
method | Yes | HTTP method for the request. | |
timeout | No | Request timeout in milliseconds (default: 60000). | |
url | Yes | The URL for the API endpoint. |
Input Schema (JSON Schema)
{
"properties": {
"body": {
"description": "Request body (JSON object, string, etc.).",
"type": [
"object",
"string",
"null"
]
},
"headers": {
"description": "Request headers (e.g., for authorization).",
"type": "object"
},
"method": {
"description": "HTTP method for the request.",
"enum": [
"GET",
"POST",
"PUT",
"DELETE",
"PATCH",
"HEAD",
"OPTIONS"
],
"type": "string"
},
"timeout": {
"description": "Request timeout in milliseconds (default: 60000).",
"type": "number"
},
"url": {
"description": "The URL for the API endpoint.",
"type": "string"
}
},
"required": [
"url",
"method"
],
"type": "object"
}