Skip to main content
Glama

glm5 chat completions

glm5_chat_completions
Read-only

OpenAI-compatible chat completions on Zhipu GLM-5.3, frontier reasoning with tool calling and a 1M-token context. Set your OpenAI SDK base URL to https://agentrxi.com/v1/glm5 and pay per token with x402 instead of an API key: $2.8 per million input and $8.8 per million output tokens, minimum $0.002 a call, at most $0.2342. The 402 quotes your request's maximum; "upto" payers are charged only the tokens used. Same request/response shape as OpenAI (tool calling, reasoning, streaming supported), up to 8192 output tokens. Costs $0.2342 USDC per call (x402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoIgnored; always glm-5.3
toolsNoOpenAI function tools
streamNo
messagesYes
max_tokensNo
temperatureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds substantial behavior beyond the annotations: x402 payment instead of an API key, per-token pricing, minimum/ceiling per call, the 402 quote mechanism, streaming/tool-calling/reasoning support, and the 8192 output-token cap. With readOnlyHint/openWorldHint already covering safety, this is genuinely informative; it only lacks return-format or error-handling notes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The key facts (model, endpoint, pricing) are front-loaded, but the cost figure $0.2342 is repeated twice and the pricing/402 explanation consumes several sentences, creating redundancy that dilutes an otherwise dense but useful description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a stateless chat endpoint with no output schema, the description covers the essentials an agent needs: model identity, wire compatibility, capability flags, token limits, and the non-standard x402 payment flow. Only the under-specified input parameters keep it from being fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33%, so the description must carry more weight, and it partly does — it clarifies that model is fixed (glm-5.3) and ties the 8192 limit to output size. But messages, tools, stream, and temperature semantics are undocumented in both places, leaving real gaps.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'OpenAI-compatible chat completions on Zhipu GLM-5.3' — and names the model, which is exactly the axis that separates it from the many sibling chat_completions tools (glm52, glm5_flash, glm_chat_completions, etc.). An agent can route to it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explains how to invoke it (set the OpenAI SDK base URL to https://agentrxi.com/v1/glm5) and the payment model, which is useful operational context. However, it never gives explicit when-to-use guidance versus the numerous sibling chat endpoints (e.g. glm52, glm5_flash, glm_chat_completions), so selection among alternatives is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources