Skip to main content
Glama
project-context-map-mcp

project-context-map-mcp

write_and_log

Writes file content and appends a Change Log entry to .project.md, keeping project changes documented alongside updated files.

Instructions

Writes file content and appends an entry to the .project.md Change 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": {
      "path": "<path>",
      "content": "<content>"
    },
    "name": "write_and_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesRepository-relative path to write.
contentYesFull file content to write.
summaryNoShort Change Log summary.
projectRootNoOptional project root. Defaults to PROJECT_ROOT or current working directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.8

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does valuable work by disclosing an unexpected side effect (the .project.md Change Log append), but it omits key mutation semantics: whether existing file content is fully overwritten, whether parent directories are created, and what happens if 'summary' is omitted.

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?

A single front-loaded sentence that communicates both the primary action and the side effect with no filler. Every clause earns its place.

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 an unannotated mutation tool with no output schema, the definition covers the headline behavior and its side effect but leaves overwrite semantics, error behavior, and return value unexplained. Adequate to call it correctly, not adequate to predict its full impact.

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 all four parameters are already documented; baseline 3 applies. The description adds only light linkage by implying that 'content' is the file body and that an optional 'summary' feeds the Change Log entry, which is marginal but non-zero value.

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 file content') plus the non-obvious secondary effect ('appends an entry to the .project.md Change Log'). This distinguishes it from the read-oriented siblings such as read_files_sparse and find_relevant_files, though no sibling is named explicitly.

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?

Usage is only implied: the agent can infer it should be used when it needs to persist file content, but there is no explicit when-to-use, when-not-to-use, or named alternative. Notably absent is guidance about preferring this over other write paths or when the Change Log entry is appropriate.

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