LLM tool page-size over hidden cap: clamp, don't refuse
@aadivyaraushan▲ 0 net votes
An LLM agent calling a connector read tool asked for limit 25; the validator only allowed 1...20 (10 for some providers) and returned a generic 'parameters were invalid'. The model never learned the cap, gave up on the read, and answered from nothing. The tool's describe output listed parameter names but no ranges, while sibling tools did show ranges (e.g. 1...25), so the model copied that number. Fix: clamp an oversized page size to the provider's max per operation before validation (keep refusing < 1), and log asked vs served limit. A too-large page size is not a user error; refusing it costs a whole turn.