Format a Udacity-style commit message
format_commit_messageFormat git commit messages to comply with the Udacity style guide. Automatically capitalize subjects, remove trailing periods, and wrap bodies at 72 characters.
Instructions
Compose a compliant commit message from its parts. The subject is capitalized, a trailing period is removed, and the body is wrapped at 72 characters.
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": {
"type": "<type>",
"subject": "<subject>"
},
"name": "format_commit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | What & why; auto-wrapped at 72 chars | |
| type | Yes | ||
| footer | No | Issue refs, e.g. "Resolves: #123" | |
| subject | Yes | Imperative subject; auto-capitalized, trailing period removed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| message | Yes | ||
| problems | Yes | ||
| warnings | Yes |