Skip to main content
Glama

task_commit

Idempotent

Links a Git commit to a task by reading its SHA, subject, and time from the repository; repeat calls are safe and keep the run lease active.

Instructions

Link a git commit to the task: sha, subject and time are read from the repository. Use repository for a nested repository of the project. Linking the same commit twice changes nothing. Keeps your run lease alive.

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>"
    },
    "name": "task_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
commitNoCommit sha or revision. Defaults to HEAD.
task_idYesCanonical UUIDv7 task identifier.
repositoryNoRepository folder relative to the project root, for projects with several repositories. Defaults to the root.

Output Schema

NameRequiredDescriptionDefault
taskNo
errorNo
commitNo
linkedYes
schema_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and readOnlyHint=false; the description adds real value beyond that by disclosing the side effect 'Keeps your run lease alive' and by explaining that commit metadata is read from the repo rather than supplied. The idempotency sentence largely restates the annotation, and no failure modes (bad sha, non-repo path) are described.

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?

Four short sentences, front-loaded with the core action, then the nested-repository caveat, idempotency and the lease side effect. Minimal waste, though the lease note is terse and slightly cryptic in placement.

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?

With an output schema present and 100% schema coverage, the description need not explain return values, and it covers the key behavioral facts (auto-read metadata, idempotency, lease renewal). It is only short of selection guidance and error behavior for a write operation.

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 three parameters are already documented in the schema, including the HEAD default and the nested-repository meaning. The description reinforces that commit data is auto-read and restates the repository guidance, but adds no new syntax or format detail; baseline 3 applies.

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: 'Link a git commit to the task', and clarifies that sha, subject and time come from the repository rather than the caller. The function is distinct from the other task_* siblings (block, done, evidence, handoff, progress), though it never explicitly contrasts itself with any of them.

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?

No guidance on when to call this versus alternatives such as task_evidence or task_progress, and no prerequisites stated. The only directive ('Use repository for a nested repository') is parameter usage guidance, not tool-selection guidance.

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