Skip to main content
Glama

log_step

Record an agent action for the active task, including source/target repo, path, and line ranges to track code reuse.

Instructions

Record one agent action for the active task. For code reuse, include the source repo/path/line range and target path/line range so the Reuse flow can show exactly what moved where.

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>",
      "action": "<action>",
      "detail": "<detail>"
    },
    "name": "log_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoSource path inside repo
actionYesShort action label, e.g. reuse_module, adapt_ui, skip_no_match
detailYesWhat was taken/adapted and how it helps the task
task_idYes
target_pathNoDestination path in the active project
repo_full_nameNo
source_end_lineNo
target_end_lineNo
source_start_lineNo
target_start_lineNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses two useful behavioral facts: writes are one-action-per-call, and reuse entries feed a downstream 'Reuse flow' that renders exactly what moved where. It says nothing about permissions, whether the write is append-only or idempotent, failure behavior if the task is not active, or whether task_id must correspond to a started task.

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 waste: the core write behavior comes first and the reuse-specific field guidance second. No restatement of the name, no filler, and the conditional clause is scoped with 'For code reuse.'

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?

This is a 10-parameter mutation tool with no annotations, no output schema, and only 40% schema description coverage, so the description should do more. It adequately explains the reuse parameter cluster but leaves task_id, repo_full_name, and the mutation's success/failure semantics unexplained.

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 only 40%, so the description must compensate, and it does the most valuable thing possible: it groups the six otherwise-undocumented parameters (repo_full_name, path, source_start_line, source_end_line, target_path, target_start_line, target_end_line) into a coherent source-to-target pair with a stated purpose. Only task_id and the reason detail matters are left unaddressed, which keeps it short of a 5.

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 description opens with a specific verb and resource: 'Record one agent action for the active task,' which tells an agent exactly what is written and at what granularity. It is clear enough to distinguish from the read-only siblings (get_task_journal, search_repos), though it never names a sibling or explicitly contrasts itself with the journal-reading tool.

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?

Use is implied by 'Record one agent action' — call it once per action performed — and it adds a conditional instruction to include repo/path/line data for code-reuse actions. There is no explicit when-not guidance, no mention of how this relates to get_task_journal (the natural read-side alternative), and no statement of prerequisites such as an active task being required.

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