Skip to main content
Glama

ai_commit_message

Read-only

AI commit message writer — Turn a git diff or change description into a Conventional Commits message: type, scope, imperative subject under 60 characters, and a short body. Price: $0.004 USDC (Base, via x402).

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": {
      "diff": "<diff>"
    },
    "name": "ai_commit_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
diffYesgit diff or a description of the change

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnly, non-destructive, open-world behavior, so the description only needs to add what they don't cover, and it does: the price ($0.004 USDC on Base via x402) signals a paid, metered call requiring a payment path, which is real operational context. It also discloses the output shape, compensating for the missing output schema; a latency or retry note would push this higher.

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 with the capability first, output spec second, and pricing last. Nothing is wasted and no clause is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, no-output-schema tool this is complete: the input is defined, the produced message's contents are specified in detail (type, scope, subject length limit, body), and the cost/payment mechanism is disclosed. An agent has everything needed to call it correctly and knows it will be charged.

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?

One parameter at 100% schema coverage means the schema already carries the definition, and the description mostly restates it ('git diff or change description'). No added constraints such as diff size limits, truncation behavior, or whether already-staged vs working-tree diffs matter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource (turn a git diff into a Conventional Commits message) and pins down the exact output form: type, scope, imperative subject under 60 characters, short body. That specificity separates it from generic siblings like ai_rewrite and ai_code_review without needing to name them.

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?

The input contract ('git diff or change description') implies when the tool applies, but there is no explicit when-to-use or when-not guidance, and no routing away from adjacent siblings such as ai_code_review or ai_rewrite. Adequate context, no exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources