Skip to main content
Glama

github_code_scanning_update_ai_scan_enablement

Enable or disable AI Scan for a GitHub repository by updating its code scanning configuration.

Instructions

Update AI Scan enablement for a repository

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

Input Schema

NameRequiredDescriptionDefault
bodyNoRequest body (JSON object)
repoYesrepo
ownerYesowner

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

C2.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so the write nature is known without the description. The description adds nothing beyond that: no statement of required permissions, whether the change is reversible, whether it is idempotent, or what 'enablement' states are valid. For a mutation tool this leaves the behavioral profile thin.

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?

A single short sentence with no filler, which is structurally clean and front-loaded. But its brevity comes from under-specification rather than discipline, so it earns no credit for economy.

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?

For a mutation tool with an opaque body parameter and no output schema, the description should explain the request payload and the effect of the call. It supplies neither, leaving an agent unable to invoke it correctly without outside documentation.

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%, so owner and repo are documented by the schema and the baseline is 3. However, the body parameter is an unconstrained free-form object ('Request body (JSON object)') with no defined properties, and the description gives zero indication of what fields belong in it — a gap the schema does not compensate for.

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

Purpose2/5

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

The description is essentially a restatement of the tool name: 'Update AI Scan enablement for a repository' adds only the word 'repository' beyond github_code_scanning_update_ai_scan_enablement. It never explains what 'AI Scan enablement' is, what state is being toggled, or what an update actually changes. The only real signal is the repo-level scope, which distinguishes it from the _for_org sibling.

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?

There is no when-to-use guidance, no prerequisites (e.g. admin permissions), and no mention of the get_ai_scan_enablement / update_ai_scan_enablement_for_org alternatives. The agent must infer entirely from the name whether this is the right tool.

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

Deploy Server

Other Tools