# Text Truncate — REST API endpoint `text-truncate`

Truncate text to a max length, optionally at the last word boundary, with a suffix.

- Category: text
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/text-truncate/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/api/text-truncate/
- Same tool on the other surface: https://findutils.com/mcp/text-truncate/

## Call the endpoint (verified example)

```bash
curl -X POST https://api.findutils.com/api/tools/text-truncate/execute \
  -H "Content-Type: application/json" \
  -d '{
    "text": "hello world",
    "max_length": 5
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/text-truncate
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `text` | string | yes | Text to truncate. |
| `length` | integer | no | Max characters in output. Defaults to 100. Default: `100`. |
| `suffix` | string | no | Appended when truncation occurs. Defaults to "...". Default: `"..."`. |
| `word_boundary` | boolean | no | Cut at last space before limit. Defaults to true. Default: `true`. |

Example arguments (verified):

```json
{
  "text": "hello world",
  "max_length": 5
}
```

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/
```

Then ask the client to call `findutils:text_truncate`. Full MCP reference: https://findutils.com/mcp/text-truncate/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
