Skip to main content
Glama

clamp

Restrict a numeric value to stay within specified minimum and maximum bounds, preventing it from exceeding defined limits.

Instructions

Clamp a value between a minimum and maximum bound. Ensures the value stays within specified limits. (Domain: arithmetic, Category: comparison)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes
min_valYes
max_valYes

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/chrishayuk/chuk-mcp-math-server'

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