Skip to main content
Glama

glm52 chat completions

glm52_chat_completions
Read-only

OpenAI-compatible chat completions on Zhipu GLM-5.2, frontier reasoning with tool calling and a 262K-token context. Set your OpenAI SDK base URL to https://agentrxi.com/v1/glm52 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.2
toolsNoOpenAI function tools
streamNo
messagesYes
max_tokensNo
temperatureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: x402 per-token payment, min $0.002 / max $0.2342, the 'upto' payer semantics, the 8192 output cap, and streaming/tool-calling support. Minor internal tension between 'at most $0.2342' and 'Costs $0.2342 USDC per call' blurs the actual cost. Annotations (readOnlyHint, openWorldHint) already signal a safe external read, so 4 reflects real added value with a small clarity defect.

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 purpose is front-loaded, but the body is a dense run-on of overlapping pricing statements that read repetitively and somewhat inconsistently. Several cost clauses could be consolidated into one sentence without losing information.

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?

With no output schema, the description carries the return-shape burden and does so by noting it matches OpenAI's request/response shape, plus streaming and token limits. Payment and cost details are thorough, leaving only the sibling-selection context missing.

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 coverage is 33%, so the description must compensate. It partially does: 'tool calling, reasoning, streaming supported' covers tools/stream and 'up to 8192 output tokens' maps to max_tokens. However temperature and messages structure go unexplained, so the low-coverage gap is only partly closed.

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

Purpose4/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.2') plus the distinguishing traits (262K context, frontier reasoning). It names the model so it is distinguishable from the crowded sibling family (glm5, glm5_flash, glm_chat_completions), but it does not explain the tradeoff that would make an agent pick glm52 over those near-identical siblings.

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

Usage Guidelines2/5

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

The description never says when to use this tool versus the many alternative chat_completions tools, nor does it state exclusions or prerequisites beyond the payment model. An agent must infer selection entirely from the model name.

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