---
title: "Request MCP functions"
description: "MCP functions for managing request."
section: "MCP"
group: "Functions"
order: 702
---

## Functions

### `request`

Generic HTTP fetch. Any absolute URL, any method. Use for external APIs, MCP servers, documentation sites — everything that isn't the Aeontel SDK (which has its own `aeontel` function). Returns `{ ok, status, contentType, text, truncated? }`. Timeout 10s default (max 30s), 1 MiB body cap default (max 5 MiB).

```ts
request(input: { url: string; method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD"; headers?: Record<string, unknown>; body?: unknown; timeoutMs?: number; maxBytes?: number }): Promise<unknown>
```
