Skip to main content
Glama
ni-c

woodpecker-ci-mcp

by ni-c

Create a secret

create_secret

Create a secret at repository, organization, or global scope for Woodpecker CI. Specify events like push or pull_request; without an event, the secret stays invisible to builds.

Instructions

Creates a secret at the chosen level. The value is write-only: it is never readable again through the API, so store it somewhere else too. At least one event is required — the API has no defaults, and a secret without pull_request is invisible to pull-request builds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesSecret name, stored case-sensitively — MY_TOKEN and my_token are two secrets.
noteNoFree-text note shown next to the secret in the web UI.
scopeYesWhich level to act on. "repository" needs repo_id, "organization" needs org_id, and "global" is instance-wide and needs neither (admin only). A pipeline sees the repository level first, then the organization, then global.
valueYesThe secret value. Write-only — it cannot be read back.
eventsYesEvents this applies to. The API has no defaults — at least one is required. A secret that should reach pull-request builds has to name pull_request explicitly; "push", "tag" and "manual" are what the web UI preselects.
imagesNoRestrict the secret to these container images. An empty list — the default — means every image may read it.
org_idNoRequired when scope is "organization".
repo_idNoRequired when scope is "repository".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
truncatedNoPresent only when the answer was shortened to fit the budget.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior5/5

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

It goes well beyond the annotations by disclosing that the value is write-only and never readable again through the API, recommending external storage, and warning that events have no defaults and pull_request must be explicitly included. These are critical behavioral details not captured by the raw annotation flags.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, each earning its place: the purpose, the write-only warning, and the events/pull_request gotcha. The most important constraints are front-loaded and there is no filler.

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?

For a complex 8-parameter create operation with an output schema, the description covers the non-obvious pitfalls that could cause data loss or invisible secrets. The remaining parameter details are fully covered by the 100%-documented schema, so nothing an agent needs to invoke it correctly is missing.

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 the baseline is 3. The description reinforces the meaning of scope, value, and events, but mostly restates what the schema already documents. It adds no new per-parameter syntax beyond the schema's own rich descriptions.

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?

The description opens with a specific verb and resource, 'Creates a secret,' and adds the scoping notion 'at the chosen level.' This clearly distinguishes it from sibling tools like get_secret, update_secret, and delete_secret.

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?

The description makes the tool's context clear: use it to create a secret, with important warnings about write-only values and required events. It does not explicitly name alternatives such as update_secret or delete_secret for subsequent changes, but the create verb makes the primary use case unambiguous.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ni-c/woodpecker-ci-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server