Skip to main content
Glama

security_jenkinsfile_check

Read-only

Jenkinsfile security audit — Offline static security audit of a Jenkins pipeline (text= Jenkinsfile, declarative or scripted, or url=). Finds credentials interpolated by Groovy into double-quoted sh/bat/powershell strings, build-parameter and PR-field (CHANGE_TITLE, BRANCH_NAME) command injection, hardcoded secrets and token formats (never echoed), curl|bash, privileged containers and Docker socket mounts, unpinned images and shared libraries (@Library without a tag or on master/main), builds on the controller (agent any, label master/built-in), Jenkins.instance / evaluate / GroovyShell, set -x and echo leaking secrets, docker login -p, StrictHostKeyChecking=no, curl -k, env dumps, secret-looking archiveArtifacts, http:// SCM, deploy stages without when { branch } or input submitter, pipeline-wide credentials, missing timeout and buildDiscarder. Returns PASS/REVIEW/FAIL, score, grade, stages, credential variable names and line-numbered findings with fixes. 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_jenkinsfile_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYespipeline { agent any stages { stage("Deploy") { steps { withCredentials([string(credentialsId: "api", variable: "TOKEN")]) { sh "curl -fsS -u deploy:${TOKEN} https://api.example.com/deploy" } } } } }

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description adds genuinely new behavior: the audit is static and never executes the pipeline, secrets are 'never echoed' in output, and the call costs $0.006 USDC via x402 on Base — a payment requirement an agent must know before calling. Minor tension: it calls itself 'offline' while accepting a url= source, which sits awkwardly beside openWorldHint=true, but this is a scope nuance rather than a contradiction.

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?

Purpose and input format are front-loaded, which is correct. But the middle is a 90-word comma-spliced enumeration of every individual check (curl|bash, StrictHostKeyChecking=no, curl -k, env dumps, docker login -p...), which is far denser than an agent needs to select the tool and would read better as a short coverage summary.

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 carries the return-value burden and does it well: PASS/REVIEW/FAIL, score, grade, stages, credential variable names, and line-numbered findings with fixes. Cost and the static-only execution model are also disclosed. The one gap is the unsupported url= input and no note on input size limits for large Jenkinsfiles.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single parameter is documented, so the baseline would be 3; however the description advertises a 'url=' input mode that does not exist in the schema (only 'text' is defined and required). That phantom parameter can send an agent down a failing call path, which is worse than adding nothing. The one real addition is clarifying that the pasted text may be declarative or scripted.

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 ('Offline static security audit of a Jenkins pipeline') and immediately pins the scope to Jenkinsfile, declarative or scripted. Against siblings like security_gha_check and security_gitlab_ci_check, the target artifact is unambiguous.

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?

The description establishes the input context (paste a Jenkinsfile as text) but never says when to prefer this tool over a sibling or when it is inappropriate — e.g. that it is Jenkinsfile-specific and will not analyze a GitHub Actions or GitLab CI YAML. Usage is implied by the artifact name rather than stated.

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