Skip to main content
Glama

log_append

Append a dated entry with commit details to a repository's log, auto-creating the note if missing. Run once per repo at session end to record work.

Instructions

WRITE — appends one dated line to the repo log, with the commits it produced. Run once at the end of a session per repo. Creates the log note when it is missing. repo is the main checkout's name, also from a worktree; branch is the branch the commits were made on. area is the stem of the system note (or [[stem]]); it defaults to the repo name.

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": {
      "repo": "<repo>",
      "line": "<line>"
    },
    "name": "log_append"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNo
lineYes
repoYes
branchNo
commitsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.1
    • addedInput schema / properties / branch
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Branch"
      +}
  2. First observedv0.2.1

TDQS

A3.8/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 behavior burden. It does disclose the write nature ('WRITE'), the create-if-missing behavior, and the one-line-per-call granularity, but says nothing about failure modes (duplicate lines, missing repo), permissions, or whether the line text is dated by the caller or the tool.

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?

Front-loaded with the 'WRITE' marker, then purpose, then usage, then parameter notes in a logical order. Dense but every clause carries information; only the area/stem phrasing is slightly cryptic.

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?

An output schema exists, so return values need not be explained. For a five-parameter write tool with zero schema documentation, the description covers most of what an agent needs, with the notable gap being whether 'line' includes the date or the tool adds 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 0%, so the description must compensate, and it largely does: repo (main checkout name, valid from a worktree), branch (branch the commits were made on), and area (system note stem or [[stem]], defaulting to repo name) are all given real meaning. 'line' and 'commits' are only implied by the prose rather than defined.

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: 'appends one dated line to the repo log, with the commits it produced.' The scope ('one dated line', 'per repo') makes it clearly distinct from the generic append_file/write_file siblings, although 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 Guidelines4/5

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

'Run once at the end of a session per repo' gives a concrete trigger and a frequency constraint, which is stronger than most tool descriptions. It stops short of naming an alternative (e.g. append_file for arbitrary file writes) or stating when not to use it.

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