Skip to main content
Glama

kimi_verify

Verify code, diffs, or plans with an independent AI reviewer to catch bugs, edge cases, and security issues before committing.

Instructions

Get an INDEPENDENT second opinion from Kimi Code (default k3 / K3, 256K context) acting as an external third-party verifier. Calls the Kimi Code API directly — no CLI install required, just an API key (env KIMICODE_API_KEY or ~/.kimi/config.toml).

USE THIS to cross-check your own work: confirm a fix is correct, hunt for bugs / edge cases / security issues in a diff, sanity-check a claim or plan, or get a dissenting view before you commit. Different model, independent judgment.

CRITICAL — pass full context: Kimi sees ONLY the 'context' string. It has NO access to this session, the repository, prior messages, or any tools. Paste the ACTUAL code/diff/claim AND the surrounding context it needs (the goal, constraints, assumptions, relevant signatures). Vague or partial context produces vague, useless verification.

Detection: every response ends with a [kimi-model …] footer (requested/observed/k3=yes|no).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roleNoOverride the reviewer persona (system instruction). Default: a meticulous, independent senior engineer with no stake in the code.
modelNoModel id/alias. Default: k3 (K3). Examples: k3, kimi-code/k3, kimi-for-coding. Env override: KIMICODE_MODEL or KIMI_MODEL.
contextYesSelf-contained material for Kimi to examine: the actual code / diff / claim / plan PLUS the context needed to judge it (intent, constraints, assumptions, relevant signatures). Kimi sees nothing but this.
questionNoWhat to verify or focus on, e.g. "is this SQL-injection safe?" or "does this handle empty input and concurrency?". Default: a general independent correctness review.
include_thinkingNoInclude Kimi internal reasoning in the output. Default: false.
max_output_tokensNoMax answer tokens (~4 chars/token). Default: 15000.
Behavior5/5

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

With no annotations, the description fully discloses behavior: it calls the Kimi Code API directly, requires an API key, and critically states 'Kimi sees ONLY the 'context' string. It has NO access to this session, the repository, prior messages, or any tools.' This properly sets expectations for the stateless, isolated verification.

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

Conciseness5/5

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

The description is well-structured: starts with core purpose, then usage guidelines, then critical behavioral warnings. Every sentence adds value without redundancy. It is appropriately sized for the complexity and difficulty.

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?

Given no output schema, the description mentions the response footer detection but doesn't detail the return structure. However, it covers input requirements, behavioral constraints, and detection markers. For a text-returning tool with 6 parameters (100% schema coverage), it is largely complete, though a brief note on expected response format would strengthen it.

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

Parameters4/5

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

Schema coverage is 100% (6 params described in input schema). The description adds value beyond schema by explaining the purpose of each parameter (e.g., 'context' must be self-contained, 'question' defaults to general correctness review, 'role' and 'model' are overrides). It provides practical guidance, but the schema already covers the basics.

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 clearly states the tool's purpose: 'Get an INDEPENDENT second opinion from Kimi Code ... acting as an external third-party verifier.' It uses specific verbs and resources, and distinguishes it from sibling tools (like kimi_analyze, kimi_query) by emphasizing its verification role.

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

Usage Guidelines4/5

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

Provides explicit when-to-use scenarios: 'cross-check your own work', 'confirm a fix', 'find bugs / edge cases / security issues', 'sanity-check a claim or plan', 'get a dissenting view before you commit'. It also emphasizes the importance of passing full context. While it doesn't explicitly state when not to use or name alternatives among siblings, the usage context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/howardpen9/kimi-code-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server