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://agents.citiviewgroup.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

NameRequiredDescriptionDefault
modelNoIgnored; always kimi-k2.7-code
toolsNoOpenAI function tools
streamNo
messagesYes
max_tokensNo
temperatureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds substantial non-structured context: the payment model (x402, pay-per-token), the base URL, per-token pricing, a per-call minimum and maximum, the 'upto' charge semantics, and the 8192 output-token ceiling. It does not contradict the read-only hint. It stops short of covering latency, errors, or auth failure modes, but for a hosted completion endpoint this is strong disclosure.

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 and integration instructions are front-loaded, which is good. But the pricing block is verbose and internally redundant: it states 'at most $0.1762', then restates 'Costs $0.1762 USDC per call (x402)' at the end. The per-million-token rates plus minimum plus maximum plus 'upto' clause take more space than the invocation-relevant content warrants.

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?

There is no output schema, so the description usefully carries the return-shape contract ('same request/response shape as OpenAI') plus streaming, tool calling, and the output-token limit. Combined with the payment and endpoint details, an agent has enough to call it correctly; the main residual gap is disambiguation from the many sibling completion tools.

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 should compensate more than it does. It touches on several parameters indirectly ('tool calling' -> tools, 'streaming supported' -> stream, 'up to 8192 output tokens' -> max_tokens), and 'same request/response shape as OpenAI' frames the rest, but temperature and the messages structure are left entirely to the OpenAI convention. Adequate, not complete.

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 precise verb+resource combination ('OpenAI-compatible chat completions on Moonshot Kimi K2.7 Code') and characterizes the model as a coding/software-agent model. The purpose is unmistakable, but it never differentiates itself from the many near-identical siblings such as kimi_chat_completions, coder_chat_completions, or chat_completions, so the agent cannot tell from the text alone why this variant exists.

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 gives concrete integration guidance (set the OpenAI SDK base URL, pay via x402 instead of an API key), which implies the intended usage context. However, it offers no explicit 'use this instead of X when Y' guidance against the crowded list of chat-completion siblings, leaving model selection to inference from the 'coding' descriptor.

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