Skip to main content
Glama

gencommit

Read-onlyIdempotent

Generates Conventional Commits specification, steps, template, and examples from code changes, enabling AI to craft a formatted commit message.

Instructions

当用户需要生成 Git commit 消息时使用。返回 Conventional Commits 规范说明、步骤、输出模板和示例,供 AI 根据变更内容生成最终 commit message。它不直接代写最终消息,也不应被判定为空结果

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoCommit 类型:fixed(修复)、feat(新功能)、docs(文档)、style(样式)、chore(杂项)、refactor(重构)、test(测试)。可选,会自动识别
changesNo代码变更内容。可以是 git diff 输出、变更描述或自然语言。如果不提供,工具会提示执行 git diff
Behavior4/5

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

Annotations already indicate readOnly and idempotent. The description adds that the tool returns spec and prompts for git diff if changes are not provided, providing additional behavioral context.

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?

The description is two sentences, front-loaded with purpose, and includes necessary clarifications without superfluous details.

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?

Given no output schema, the description explains what is returned (spec, steps, template, examples) and the behavior when changes are missing. It is complete for this helper-style tool.

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 description coverage is 100%, with clear descriptions for both parameters. The description adds minimal extra context (e.g., prompting behavior for missing changes), but does not significantly enhance parameter understanding beyond the schema.

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?

The description clearly states the tool is for generating Git commit messages and specifies that it returns Conventional Commits specification, steps, templates, and examples. It distinguishes itself from sibling tools by focusing on commit message generation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use (when needing a commit message) and what it does not do (does not write the final message, should not be considered empty). However, it does not explicitly mention alternative tools or when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mybolide/mcp-probe-kit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server