Skip to main content
Glama

Append to a task's log

log_entry

Append task entries—decisions, dead ends, questions, notes, or handoffs—so agents preserve context and close open questions by referencing their entry ID.

Instructions

Append one entry: 'decision', 'dead_end', 'question', 'note' or 'handoff'. First line is the headline the briefing shows; keep the body to a screen. Settling an earlier question? Pass its id as answers_entry_id -- nothing else closes one.

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": {
      "task_id": "<task_id>",
      "kind": "<kind>",
      "body": "<body>"
    },
    "name": "log_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesOne thing, for a stranger: the first line is the headline the briefing shows, the body a screen at most. Measurements and listings go in the task body or a note, not here.
kindYesdecision: why it is this way. dead_end: what was tried and failed, and why. handoff: the state you are leaving, enough to continue without asking. question: a choice you hand back to the developer, or one they will ask somebody about -- close it later with answers_entry_id. note: anything else worth keeping.
modelNoYour model id, e.g. 'claude-opus-5'.
authorNo
task_idYes
answers_entry_idNoId of the `question` entry on this task that this entry settles. The only way a question closes; both stay readable through get_task.
from_observation_idNoId of the get_context observation this record writes up. Marks it handled so it leaves the briefing; write the body yourself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.1.8
    • addedInput schema / properties / answers_entry_id / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "pattern": "^\\d{1,15}$",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / answers_entry_id / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / answers_entry_id / minimum
      Removed value: --9007199254740991
    • removedInput schema / properties / answers_entry_id / type
      Removed value: -"integer"
    • changedInput schema / properties / kind / description
      Previous value: -"decision: why it is this way. dead_end: what was tried and failed, and why. handoff: the state you are leaving, enough to continue without asking. question: something only the developer can settle, left open on purpose. note: anything else worth keeping."New value: +"decision: why it is this way. dead_end: what was tried and failed, and why. handoff: the state you are leaving, enough to continue without asking. question: a choice you hand back to the developer, or one they will ask somebody about -- close it later with answers_entry_id. note: anything else worth keeping."
    • addedInput schema / properties / task_id / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "pattern": "^\\d{1,15}$",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / task_id / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / task_id / minimum
      Removed value: --9007199254740991
    • removedInput schema / properties / task_id / type
      Removed value: -"integer"
  2. First observedv0.1.4

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real behavioral traits: entries are append-only, the first line becomes the headline surfaced in the briefing, bodies should stay under a screen, and `answers_entry_id` is the only mechanism that closes a question. It omits any statement of what is returned (no output schema exists) and whether the tool is idempotent or rate-limited.

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?

Three short sentences, front-loaded with the entry kinds, then the formatting constraint, then the one non-obvious rule. Nothing is wasted or repeated.

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 7-param, no-annotation, no-output-schema mutation tool, the description covers the essential behavioral facts an agent needs: which kind to pick, how the body is rendered downstream, and how questions are closed. The notable remaining gap is the return value, which matters because callers likely need the new entry's id.

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 description coverage is 71%, so the baseline is 3. The description restates the enum kinds and the answers_entry_id rule that the schema already documents, adding only the 'nothing else closes one' emphasis; the body sizing note is also already in the schema. task_id, author, and model get no additional meaning from the description.

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?

The title and first sentence state a specific verb and resource: append one log entry to a task's log, with the five valid kinds enumerated. It does not explicitly contrast with siblings like delete_entry or update_task, but an agent cannot mistake this for a read or a delete.

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, with one explicit conditional rule: use this to settle an earlier question by passing its id. There is no guidance on when to prefer a log entry over a task-body edit, add_context, or a note, nor any prerequisites (e.g., whether task_id must already exist).

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