Skip to main content
Glama

ac_write_text

Replace the full contents of an Assetto Corsa text or script file, creating it if missing, with automatic backup and logging.

Instructions

Replace the whole content of a text/script file (creates it if missing). Backup + log.

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": "<file>",
      "content": "<content>"
    },
    "name": "ac_write_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes
contentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the important traits — full overwrite (destructive), auto-creation when missing, and a 'Backup + log' safety net that hints at recoverability — which is meaningful. It stops short of stating permissions, encoding, path resolution, or what the response returns.

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

Conciseness4/5

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

Two tight sentences, purpose front-loaded with the destructive scope before the create-if-missing qualifier. 'Backup + log' is telegraphic shorthand rather than a full sentence, which costs a little clarity but wastes no space.

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

Completeness3/5

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

For a two-parameter destructive write tool with no annotations and no output schema, the definition covers the essentials of what happens to existing content. It is still missing path semantics, encoding, and any note on how the backup is surfaced (presumably via ac_list_backups/ac_undo), leaving gaps an agent would hit on first use.

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 0%, so the schema names both parameters but explains neither. The description compensates partially by clarifying that 'content' is the entire file body (not a patch) and that 'file' is a text/script file, but it adds nothing about path format (absolute vs relative), encoding, or size constraints.

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?

Specific verb+resource: 'Replace the whole content of a text/script file' names the operation and the artifact class, and the parenthetical '(creates it if missing)' adds the create-on-write case. The word 'whole' implicitly contrasts with a partial-replace sibling such as ac_replace_text, but it never names that alternative explicitly, so differentiation is inferred rather than stated.

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 when-to-use or when-not-to-use guidance, and the closest sibling (ac_replace_text) is never mentioned. An agent must guess whether whole-file overwrite or targeted replacement is appropriate, and no prerequisites (permissions, path form) are given.

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