Skip to main content
Glama
x402-preflight-mcp

x402-preflight-mcp

by animus3d

github_actions_supplychain_pin

Audit GitHub Actions workflows to detect unpinned action tags, pull_request_target pwn-request risks, expression script injection, and overbroad permissions.

Instructions

[x402 $0.03 USDC on Base/Solana] Audits GitHub Actions workflows for unpinned mutable action tags (@v4), pull_request_target pwn-request vectors, expression script injection, and overbroad permissions.

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": {
      "workflowYaml": "<workflowYaml>"
    },
    "name": "github_actions_supplychain_pin"
  }
}

Input Schema

NameRequiredDescriptionDefault
workflowYamlYesGitHub Actions workflow YAML content
_paymentSignatureNoOptional base64-encoded x402 v2 payment-signature header (overrides X402_PAYMENT_SIGNATURE env var).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden; it does disclose a notable behavioral trait — that invocation is paid ($0.03 USDC via x402 on Base/Solana) — which is genuinely valuable and not in any structured field. However, it is silent on whether the analysis is read-only/static, what happens on malformed YAML, and what the audit produces, leaving real behavioral gaps for a no-annotation tool.

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?

A single dense sentence front-loads the billing caveat and then lists findings categories efficiently with no filler. The bracketed price prefix is slightly awkward as an opener, but every clause carries information.

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-input static scanner with full schema coverage, the description covers purpose, checks performed, and cost. Since there is no output schema, a brief hint about the shape of the audit report (findings list, severity) would close the remaining gap.

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 both parameters (workflowYaml, _paymentSignature) are already documented in the schema; baseline 3 applies. The description adds only implicit confirmation that the input is a workflow definition and that payment is required, revealing nothing new about parameter format or constraints.

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 (audits) and resource (GitHub Actions workflows) and enumerates the exact vulnerability classes checked: unpinned mutable action tags, pull_request_target pwn-request vectors, expression script injection, and overbroad permissions. This is far more specific than a generic 'scan' tool and clearly separates it from siblings like dependency_typosquat_audit or json_config_preflight.

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

Usage Guidelines3/5

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

Usage is implied — supply workflow YAML, get a security audit — but there is no explicit when-to-use or when-not-to-use statement, no mention of prerequisites, and no pointer to complementary siblings such as dependency_typosquat_audit for dependency-level issues. The agent must infer the trigger condition from the description's scope.

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