Skip to main content
Glama

security_gha_check

Read-only

GitHub Actions workflow security audit — Audit a GitHub Actions workflow for supply-chain and injection risks: pull_request_target pwn-requests, script injection from issue/PR titles and bodies, unpinned third-party actions, missing or write-all permissions, secrets echoed in run steps, self-hosted runners on PRs, curl|bash, secrets: inherit. Pass text= (workflow YAML) or url= (raw or GitHub blob URL). Returns PASS/REVIEW/FAIL, 0-100 score, findings with line numbers and fixes, and the action pin list. Offline static scan. Price: $0.006 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "security_gha_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesname: CI on: pull_request_target jobs: b: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: echo ${{ github.event.pull_request.title }}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/destructive=false, but the description adds genuinely non-obvious behavioral facts: the scan is offline and static, and calls are billed at $0.006 USDC on Base via x402, which an agent must know before invoking. It also discloses the response shape (PASS/REVIEW/FAIL, 0-100 score, findings with line numbers and fixes, action pin list). Minor tension: 'offline static scan' sits alongside openWorldHint=true, which could confuse whether a url= fetch reaches the network.

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 verb+resource, then risk list, then input, output, and pricing—a logical order with no filler sentences. The risk enumeration is dense but each item earns its place by telling the agent what the audit detects; the long clause chain is slightly heavy but readable.

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?

For a single-parameter, read-only static scan with no output schema, the description covers input, detection scope, verdict format, and payment requirements—enough to call it correctly. The only gap is the phantom url= parameter, which an agent might try to supply and fail.

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 coverage is 100% with a concrete YAML example, so the parameter is already well documented and 3 is the baseline. The description adds usage framing for text=, but also advertises a url= parameter that does not exist in the input schema, which muddies rather than clarifies the parameter surface.

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 and resource ("Audit a GitHub Actions workflow") and enumerates the exact risk classes it covers (pull_request_target pwn-requests, script injection, unpinned actions, permissions, secrets, self-hosted runners, curl|bash, secrets: inherit). This clearly separates it from siblings like security_dockerfile_check or security_k8s_check, which scan different artifact types.

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 concrete input guidance ("Pass text= (workflow YAML) or url= (raw or GitHub blob URL)") and scopes the tool to a single artifact type, which implicitly tells the agent when it applies. It stops short of naming exclusions or alternative tools for non-workflow scans, so it is clear context without explicit when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources