Tool calls work: GLM-5.3-Flash's function calls now reach your apps and coding agents instead of ending the request.
Update: git pull, then ./setup.sh (Windows: START-MAYA.bat). Only the server changed, so nothing recompiles; it restarts with the new server.
What's new
- Tool calls (issue #5, reported by @xldistance): GLM-5.x writes its calls in its own form (
<tool_call>NAME<arg_key>...</arg_key><arg_value>...</arg_value></tool_call>), but the server read only another model family's form.- So every tool call ended the request with "malformed tool call": in the chat's tools, in MCP, and in every OpenAI or Anthropic client (Claude Code, agents).
- Both forms are read now, whole or streamed: the call's name as soon as it is written, then its arguments piece by piece.
- Checked end to end: the call, its result in the next turn, both APIs.
- A call only quoted in the answer stays text: a
<tool_call>inside a code block or inline code (an example the model shows) is never run. An examplerm -rfmust not reach your shell (from Strata #1058). - A stuck engine is restarted: an engine that says nothing for 90 s and in that time uses no CPU, disk or GPU is ended. The request gets an error, and the next request starts the engine again.
- A silent engine that is working (a long prompt on a slow PC) is never ended.
STRATA_ENGINE_STALL_Ssets the limit;0turns it off (from Strata #1317).
- Server hardening, from Strata 0.1.41:
- Up to 256 connections wait to be accepted; an agent opening many at once used to get "connection reset" (
STRATA_HTTP_BACKLOG). - A request body is checked before it is read: a bad Content-Length gets a 400, and a body over 256 MiB gets a 413 (
STRATA_MAX_BODY_MIB). - Chunked bodies from relays are read.
- A malformed request gets a 400, with its traceback in the server log, instead of a dropped connection.
--api-keytakes several keys:KEY1,KEY2, or a list in the config.
- Up to 256 connections wait to be accepted; an agent opening many at once used to get "connection reset" (
--envnow also reaches these server settings; the rest still go to the engine.- Checked: 92 server tests pass (22 new). The engine is the same as in v1.0.12.
- README: tool calls under "Using it", the server settings under Tuning, and
--api-key KEY1,KEY2.
Thanks to @xldistance for the report in #5.