Skip to main content
Glama

Code write

code_write
Read-only

The code you describe written, or your code reviewed. OpenAI-compatible LLM chat completions API by Moonbeam (base URL https://inference.Moonbeam.dev/v1): 59 models (qwen, deepseek, glm, inkling, kimi, gemma, gpt, ling), streaming, tools and JSON mode. One call is 0.001 USDC, paid with x402 on Base.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "code_write"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description does add genuinely useful behavior beyond that: the backend is an OpenAI-compatible chat completions endpoint, it supports streaming, tools, and JSON mode, and each call costs 0.001 USDC settled via x402 on Base. However it never says what the response looks like or how a model is chosen, so a caller still has surprises.

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

Conciseness2/5

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

The tool's actual function is buried in a garbled first clause, then the paragraph pivots to marketing for the inference platform (model name-dropping, base URL, feature list). The genuinely decision-relevant item — price — arrives last. Sentences do not earn their place relative to the tool's purpose.

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

Completeness2/5

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

With no parameters, no output schema, and no annotations explaining return shape, the description carries the full burden and leaves the two most important questions unanswered: how does the agent supply the code or description, and what comes back? Calling conventions, model selection, and output format are all absent.

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?

The schema has zero parameters (coverage 100% trivially), which normally earns the baseline 4. But for a zero-param tool the description must explain how the code/description is actually conveyed, and it does not — 'the code you describe written' implies input with no channel defined. The cost/payment note is the only semantic addition, so this lands below baseline.

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

Purpose2/5

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

The opening clause 'The code you describe written, or your code reviewed' is grammatically broken and reads closer to a restatement of the name than a defined verb+resource pair. The bulk of the text describes the underlying inference API (model families, streaming, JSON mode), not what this specific tool does. Nothing distinguishes it from siblings like inference_chat, text_generate, or inference_metered.

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?

There is no statement of when to pick code_write over the many adjacent inference/text-generation siblings. The only selection-adjacent information is pricing ('One call is 0.001 USDC'), which tells an agent a cost exists but not when to spend it. No prerequisites, no exclusions, no alternative routing.

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