Skip to main content
Glama
ni-c

woodpecker-ci-mcp

by ni-c

Update an agent

update_agent
DestructiveIdempotent

Update a CI agent's name, labels, or organization, and drain it by enabling no_schedule to let it finish current work and accept no new jobs.

Instructions

Changes an agent. Admin only. no_schedule=true is the drain switch: the agent finishes its current work and takes nothing new.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoDisplay name of the agent.
org_idNoSet for an organization-scoped agent when the account is an organization admin rather than an instance admin — that route is the only one they may use.
agent_idYesNumeric agent id.
no_scheduleNoWhen true the agent finishes what it has and accepts no new work — how you drain an agent before taking its host down.
custom_labelsNoLabels this agent advertises, as a flat string map. A pipeline selects agents with a matching "labels" block.

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.1/5.0
Behavior4/5

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

Annotations already mark the tool as non-read-only, destructive, and idempotent. The description adds useful behavioral context beyond annotations by explaining that no_schedule=true drains the agent, allowing it to finish current work and accept nothing new. It also surfaces the admin-only requirement, which is not present in the annotations.

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?

The description is two short sentences, front-loaded with the primary action and immediately covering the most behaviorally important detail. Every sentence earns its place, and there is no filler or repetition of schema content.

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?

Given the full parameter schema coverage and the presence of an output schema, the description covers the critical non-obvious context: admin-only access and the meaning of no_schedule as a drain switch. It is sufficiently complete for an agent to select and safely invoke this tool correctly.

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 schema documents every parameter. The description adds a useful clarification for no_schedule with the drain-switch explanation, but it largely repeats the schema's own parameter description. It does not describe name, org_id, or custom_labels beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a clear verb and resource: 'Changes an agent.' It also includes the notable 'Admin only' restriction. It does not enumerate what can be changed, but the title and input schema cover that, and the resource clearly differentiates it from sibling update_* tools like update_user or update_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 gives a clear usage context: this is for changing an agent and is restricted to admins. It also explains a specific scenario for no_schedule=true, which is the drain switch. It does not explicitly mention when not to use it or discuss alternatives, but for an update operation on a specific resource this is adequate.

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