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
| Field | Type | Required | What it is |
|---|---|---|---|
diff | string | Yes | — |
style | string | No | conventional/angular/simple |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
body | string | Always (present in every successful answer) |
type | string | Always (present in every successful answer) |
subject | string | Always (present in every successful answer) |
conventional | string | Always (present in every successful answer) |
full_message | string | Always (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
}' {
"tool": "strale_execute",
"arguments": {
"slug": "commit-message-generate",
"inputs": {
"diff": "- const x = 1;\n+ const x = 2;\n return x;"
},
"max_price_cents": 5
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "commit-message-generate",
inputs: {
"diff": "- const x = 1;\n+ const x = 2;\n return x;"
},
max_price_cents: 5,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="commit-message-generate",
inputs={
"diff": "- const x = 1;\n+ const x = 2;\n return x;",
},
max_price_cents=5,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/commit-message-generate?diff=-+const+x+%3D+1%3B%0A%2B+const+x+%3D+2%3B%0A++return+x%3B' 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
Related tools
- Agent Trace Analysis €0.20
- API Docs Generator €0.20
- API Mock Responses €0.05
- Changelog Generator €0.03
- Code Converter €0.05
- Context Window Optimiser €0.03