Commit Message Generator

Write a conventional commit message from a diff or a description of the change: type, scope, subject and body.

Pay by wallet (x402) AI-generated commit-message-generate

Example

Example answer
{
  "body": null,
  "type": "test",
  "scope": null,
  "subject": "test: add or update test cases",
  "conventional": "test: test: add or update test cases",
  "full_message": "test: test: add or update test cases",
  "files_summary": "Test files modified or added",
  "breaking_change": false
}

Inputs

FieldTypeRequiredWhat it is
diffstringYes—
stylestringNoconventional/angular/simple

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
bodystringAlways (present in every successful answer)
typestringAlways (present in every successful answer)
subjectstringAlways (present in every successful answer)
conventionalstringAlways (present in every successful answer)
full_messagestringAlways (present in every successful answer)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "commit-message-generate",
    "inputs": {
      "diff": "- const x = 1;\n+ const x = 2;\n  return x;"
    },
    "max_price_cents": 5
  }'

Limitations

  • Diffs alone may not explain the reason for a change

    AI-generated messages based on diff content — may not capture the 'why' behind changes without additional context

    What to do instead: Include a brief description of the intent in the input alongside the diff for more meaningful commit messages