# FastX402 Lab Git Commit Convention Validator

> FastX402 Lab Git Commit Convention Validator is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-27).

Validates a git commit message against Conventional Commits, Angular, or a custom regex pattern, returning validation status, parsed type/scope, and improvement suggestions.

## Facts

- Endpoint: GET https://fastx402.tools/git-commit-convention?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-lab-git-commit-convention-validator-c06bb979
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4JBNDYeRw9vT4krtLreLJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fastx402-lab-git-commit-convention-validator-c06bb979
```

Example prompt: Can you validate this commit message against the conventional commits convention: 'feat(auth): add OAuth2 login support' — is it valid, and what type and scope does it detect?

## When to prefer this

Use this endpoint when you need programmatic, pay-per-call validation of git commit messages against Conventional Commits or Angular conventions without setting up a local linting tool. Ideal for CI/CD agents, PR review bots, or developer assistants that need instant commit message feedback and suggestions without installing dependencies.

## Known failure modes

- Missing required 'message' or 'convention' query parameters returns an error
- Invalid or malformed custom regex pattern may cause a parsing error
- Very long commit messages exceeding server limits may be rejected
- Unsupported convention name (not 'conventional', 'angular', or a valid regex) may return an error response

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

Returns a JSON object with a boolean 'valid' field, the parsed 'type' (e.g. feat, fix), 'scope', 'subject', a 'breaking' boolean, the matched 'convention' name, and an array of 'suggestions' explaining any issues or improvements.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "message",
      "convention"
     ],
     "properties": {
      "message": {
       "type": "string",
       "description": "The commit message to validate"
      },
      "maxLength": {
       "type": "string",
       "description": "Optional maximum subject line length (default 72)"
      },
      "convention": {
       "type": "string",
       "description": "Convention name: conventional, angular, or custom regex pattern"
      },
      "allowedTypes": {
       "type": "string",
       "description": "Optional comma-separated list of allowed types (for conventional/angular)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "type": {
       "type": "string"
      },
      "scope": {
       "type": "string"
      },
      "valid": {
       "type": "boolean"
      },
      "subject": {
       "type": "string"
      },
      "breaking": {
       "type": "boolean"
      },
      "convention": {
       "type": "string"
      },
      "suggestions": {
       "type": "array",
       "items": {}
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "feat",
  "scope": "auth",
  "valid": true,
  "subject": "add OAuth2 support",
  "breaking": false,
  "convention": "conventional",
  "suggestions": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-lab-git-commit-convention-validator-c06bb979/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
