Skip to main content
Glama

check_ai_policy

Idempotent

Classify a repository's AI-assisted contribution policy as banned, disclosure-required, allowed, or unknown, with quoted sources, and stop PR preparation when contributions are banned.

Instructions

Classify the repo's stance on AI-assisted contributions: banned | disclosure_required | allowed | unknown, with quotes and their source files (CONTRIBUTING, AI_POLICY*, .github/*, README, CODE_OF_CONDUCT). Conservative: ambiguous banning language counts as banned. If banned, do NOT prepare a PR: tell the user and stop. finding_id is optional and checks that the finding exists; Lite does not record the result.

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": {
      "repo": "<repo>"
    },
    "name": "check_ai_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYes
finding_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare the safety profile (readOnlyHint=false, idempotentHint=true, openWorldHint=true, destructiveHint=false); the description adds the substantive behavior: which files are read, that the classification is deliberately conservative (ambiguous banning language counts as banned), and that Lite does not persist the result. That last point usefully explains why the tool is not read-only without contradicting destructiveHint=false.

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

Conciseness4/5

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

Front-loaded with the outcome enum, then the evidence sources, the conservative rule, and the behavioral gate — no filler sentences. The telegraphic fragment style and the undefined product reference ('Lite') cost it a point on immediate readability, but the content is dense with signal rather than padded.

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?

With no output schema, the description correctly explains what is returned (classification plus quotes with source files) and what to do depending on the result, which is enough for an agent to act. Remaining gaps are modest — the meaning of 'unknown' and whether the recorded finding affects later reads are not spelled out.

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 0%, so the description must carry the parameter burden. It does explain finding_id meaningfully (optional, verifies the finding exists, result not recorded in Lite), but says nothing about repo beyond the implicit context, leaving one of two parameters undocumented in both schema and description.

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?

States a specific verb+resource ('Classify the repo's stance on AI-assisted contributions') and enumerates the exact output categories (banned | disclosure_required | allowed | unknown). It also names the source files scanned, so an agent can distinguish it from generic repo-analysis siblings like analyze_repo or get_contribution_playbook.

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?

Gives an explicit conditional gate: if the result is banned, do not prepare a PR, tell the user and stop. It also explains the optional finding_id is for verifying a finding exists. It does not name any sibling tool as an alternative or say when this check should precede check_pr_readiness, so it falls short of full when/when-not/alternatives coverage.

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