Skip to main content
Glama

kimi code chat completions

kimi_code_chat_completions
Read-only

OpenAI-compatible chat completions on Moonshot Kimi K2.7 Code, a coding and software-agent model with tool calling (262K context). Set your OpenAI SDK base URL to https://agentrxi.com/v1/kimi-code and pay per token with x402 instead of an API key: $1.9 per million input and $8 per million output tokens, minimum $0.002 a call, at most $0.1762. 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.1762 USDC per call (x402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoIgnored; always kimi-k2.7-code
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?

Annotations cover only readOnlyHint and openWorldHint; the description adds substantial beyond-schema behavior: tool calling, reasoning, streaming, 8192 max output tokens, 262K context, and the x402 pay-per-token model. It omits some details (timeouts, error behavior) but is notably richer than the annotations.

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 defining info (model, base URL, compatibility) is front-loaded, but the description is bloated with duplicated and repetitive pricing text ('$1.9 per million input', 'minimum $0.002', 'at most $0.1762', 'Costs $0.1762 USDC per call'), which reads as SEO padding rather than earning its place.

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 6-param, 1-required completion tool with no output schema, the description covers the essentials an agent needs: endpoint, payment mechanism, model constraints, and capability set. Only minor gaps remain (parameter-level semantics, error/rate-limit behavior).

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 33%, so the description should compensate. It explains model is ignored (always kimi-k2.7-code), implies OpenAI-compatible messages/tools shape, and states 8192 max output tokens. However temperature, stream, and max_tokens details are left to the sparse schema, leaving 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?

The description states a specific verb+resource (OpenAI-compatible chat completions) and names the exact backing model (Moonshot Kimi K2.7 Code). Among a large family of sibling chat_completions tools, it clearly identifies itself via the model and the distinct x402 payment/base URL, so 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?

It implicitly conveys when to use it (coding/software-agent tasks on Kimi K2.7 Code, OpenAI-SDK clients via the given base URL), but there is no explicit when-to-use-vs-alternative guidance despite many sibling chat/completion tools (coder_chat_completions, kimi_chat_completions, deepseek_*, etc.). Usage context is implied rather than stated.

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