Skip to main content
Glama

format_format_truncate

Truncate text to a specified maximum length and append a custom suffix to indicate truncation.

Instructions

[format] Truncate text to max_length, appending suffix (default '…').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
max_lengthNo
suffixNo
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0-co/agent-friend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server