Skip to main content
Glama
FullContextInput MCP

FullContextInput MCP

by lukehemmin

write_file_complete

Writes short code files completely by creating the file when absent or overwriting it when present, so the full intended content is saved in one operation.

Instructions

짧은 코드(5000-6000토큰 미만)를 파일에 완전히 작성합니다. 파일이 없으면 생성하고, 있으면 덮어씁니다.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file_path": "<file_path>",
      "content": "<content>"
    },
    "name": "write_file_complete"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYes파일에 작성할 전체 코드 내용
encodingNo파일 인코딩 (기본값: utf8)utf8
file_pathYes작성할 파일의 경로

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the critical mutation semantics (create-if-absent, overwrite-if-present) and a rough size ceiling, which is genuinely useful; however, it doesn't say what happens when the limit is exceeded (error or truncation?), whether a safety backup is taken, or what the call returns.

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?

Two sentences, zero filler, with the core action front-loaded and the create/overwrite behavior following immediately. Nothing could be removed 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?

For a three-parameter mutation tool with no annotations and no output schema, the description covers the essentials: scope, size limit, and overwrite behavior. The remaining gaps (limit-exceeded behavior, backup interaction, return value) are modest but real.

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 100%, so file_path and encoding are already fully documented; the description adds only the content-size constraint tying into the 'content' parameter. Baseline 3 applies since the schema does the heavy lifting and no syntax or encoding guidance is added.

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 ('writes short code completely to a file') and adds the distinguishing behavior that it creates missing files and overwrites existing ones. That overwrite/whole-file framing implicitly separates it from write_file_diff, but no sibling is named, so differentiation stops short of a 5.

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?

The '5000-6000 tokens or less' qualifier implies a usage boundary, hinting that larger files need a different tool, but the agent must infer that write_file_diff is the alternative. There is no explicit when-to-use / when-not-to-use statement.

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