Skip to main content
Glama

security_gitlab_ci_check

Read-only

.gitlab-ci.yml security audit — Audit a GitLab CI/CD pipeline file offline. text= the .gitlab-ci.yml contents. Finds hardcoded secrets and token-format strings (never echoed), CI_DEBUG_TRACE, GIT_SSL_NO_VERIFY, curl|bash, TLS verification disabled, StrictHostKeyChecking=no, attacker-controlled variables ($CI_COMMIT_BRANCH, $CI_MERGE_REQUEST_TITLE...) unquoted or in eval, secrets echoed or env dumped to logs, docker login -p, Docker-in-Docker without TLS, remote/unpinned includes, :latest images, artifacts publishing .env/keys/kubeconfig/tfstate, security scan jobs with allow_failure, deploy jobs on merge request pipelines or without rules/environment, missing SAST/Secret-Detection templates. Returns PASS/REVIEW/FAIL, a 0-100 score, findings with line, job and fix. 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_gitlab_ci_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesbuild: image: node:latest script: - curl -sSL https://get.example.com/i.sh | bash - echo $DEPLOY_TOKEN

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive), and the description adds real context beyond them: matched secrets are 'never echoed', the audit is offline, results are graded PASS/REVIEW/FAIL, and there is a per-call price ($0.006 USDC via x402). Pricing and the no-echo guarantee are exactly the kind of operational detail annotations cannot express.

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?

The purpose and input contract are front-loaded correctly, but the tool then spends most of its length on a single run-on enumeration of roughly twenty checks. That list does convey coverage, yet it is dense and could be compressed into categories without losing decision value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description must describe returns — and it does, specifying the PASS/REVIEW/FAIL verdict, a 0-100 score, and findings containing line, job and fix. Combined with the input definition and offline/pricing context, an agent has everything needed to call and interpret this tool.

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

Parameters4/5

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

With one parameter at 100% schema coverage the baseline would be 3, but the schema 'description' is only a YAML example rather than a statement of what to pass. The description closes that gap by defining text as the .gitlab-ci.yml contents, so the agent knows it supplies file content, not a path.

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 plus resource — 'Audit a GitLab CI/CD pipeline file offline' — and immediately names the file format (.gitlab-ci.yml), which cleanly separates it from siblings like security_gha_check or security_dockerfile_check. An agent can identify the target artifact without opening the schema.

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?

Makes the input contract explicit ('text = the .gitlab-ci.yml contents') and stresses that the audit is offline, so the agent knows no repo access or network fetch is required. It does not add explicit when-not-to-use guidance or name a sibling alternative, which keeps it below a 5.

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