Skip to main content
Glama
jiseong-choi

Commit Conventional Message Court (CCMCP)

by jiseong-choi

Require Better Subject

court.require_better_subject

Analyze commit subjects against code changes to enforce clarity and suggest improvements using conventional commit standards.

Instructions

Force a better commit subject and provide rewrite suggestions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
subjectYesCommit subject line to put on trial.
bodyNoOptional commit body.
diffYesUnified diff or patch text.
pr_bodyNoOptional PR description.
styleNoCourtroom voice preset.
languageNoRendered verdict language.

Implementation Reference

  • The logic for the require_better_subject tool, which uses `evaluateCourtCase` to determine if a commit subject needs improvement and ensures the required actions include a subject-specific recommendation.
    export function requireBetterSubject(input: CourtInput): CourtVerdict {
      const verdict = evaluateCourtCase({ ...input, style: input.style ?? "judge" });
      return {
        ...verdict,
        required_actions: verdict.required_actions.includes("Replace the subject with a concrete action and scope.")
          ? verdict.required_actions
          : ["Replace the subject with a concrete action and scope.", ...verdict.required_actions],
        rewritten_subject: verdict.rewritten_subject ?? evaluateCourtCase({ ...input, style: "judge" }).rewritten_subject
      };
    }
  • src/server.ts:40-50 (registration)
    The registration of the `court.require_better_subject` tool in the MCP server.
    server.registerTool(
      "court.require_better_subject",
      {
        title: "Require Better Subject",
        description: "Force a better commit subject and provide rewrite suggestions.",
        inputSchema: toolInputShape,
        outputSchema: z.record(z.unknown())
      },
      async (args) => {
        const verdict = requireBetterSubject(courtInputSchema.parse(args));
        return asToolResult(verdict, verdict.verdict !== "approved");
Behavior2/5

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

No annotations provided, but description fails to disclose the courtroom metaphor/personality evident in the 'style' parameter (judge/prosecutor/defense), does not clarify what 'Force' means behaviorally, and omits return format details.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence is front-loaded but extremely terse. Given 6 parameters, no annotations, and no output schema, the brevity undermines completeness rather than demonstrating efficient communication.

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

Completeness2/5

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

With no output schema and no annotations, description should explain return values (suggestions format) and theatrical courtroom behavior. Six parameters with thematic complexity require more contextual framing than provided.

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%, establishing baseline 3. Description mentions 'commit subject' aligning with the subject parameter but adds no semantic depth beyond well-documented schema.

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

Purpose4/5

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

Clear verb 'provide' and resource 'commit subject' with specific focus on rewrite suggestions. However, does not explicitly differentiate from sibling tools like 'prosecute_commit' or explain the 'court' theme.

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

Usage Guidelines2/5

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

No guidance on when to use this versus 'court.prosecute_commit' or other siblings. No mention of prerequisites (e.g., when diff is required vs optional).

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/jiseong-choi/CCMCP'

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