Skip to main content
Glama
harness

Harness MCP Server

Official
by harness

harness_update

DestructiveIdempotent

Update any Harness resource by specifying its type and updated definition, with URL-based auto-extraction of identifiers.

Instructions

Update an existing Harness resource. For pipelines/input sets: pass body as a YAML string directly (recommended for complex definitions), or use body.yamlPipeline/body.pipeline. You can pass a Harness URL to auto-extract identifiers. Response includes openInHarness link to the updated resource when applicable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoA Harness UI URL — org, project, resource type, ID, and supported resource_scope are extracted automatically
bodyYesThe updated resource definition body. For pipelines: pass a YAML string directly, or an object with yamlPipeline (YAML string) or pipeline (JSON object)
org_idNoOrganization identifier (overrides default)
paramsNoAdditional identifiers (e.g. pipeline_id for triggers/input sets, version_label for templates).
confirmNoSet to true to confirm the operation. Only required when the operation risk is medium_write or above AND the client cannot surface a confirmation prompt — e.g. managed MCP that does not advertise elicitation, or an elicitation that fails at runtime. Has no effect for low-risk updates. Does NOT override an explicit decline from a client that completed an elicitation prompt — a user's decline is authoritative.
project_idNoProject identifier (overrides default)
resource_idNoThe identifier of the resource to update. Optional when url contains the resource ID.
resource_typeYesThe type of resource to update
resource_scopeNoScope for the operation. account: omit org/project (e.g. /v1/templates). org: org only. project: org+project. Auto-detected from url when present.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false. The description adds value by explaining that passing a URL auto-extracts identifiers, the response includes an openInHarness link, and the confirm parameter semantics (only needed for medium_write risk when client cannot prompt). This provides behavioral context beyond 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 concise (three sentences) and front-loaded with the core purpose. Every sentence earns its place: purpose, specific usage instructions for complex cases, and response behavior. No wasted words.

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?

Given the tool's complexity (9 parameters, nested objects, enums, output schema exists), the description covers key aspects: resource type, body format, URL usage, confirm risk, and response link. It does not explicitly mention the output schema or error handling, but the presence of an output schema reduces the burden. Slightly more details on scope and idempotency could be added, but overall sufficient.

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

Parameters5/5

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

Schema coverage is 100%, but the description significantly enhances understanding: it explains preferred body formats for pipelines/input sets (YAML string vs. yamlPipeline/pipeline), the url parameter's auto-extraction behavior, and the conditional necessity of confirm. This adds crucial meaning beyond the schema 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 clearly states 'Update an existing Harness resource' with specific verb 'Update' and resource 'Harness resource'. It distinguishes from siblings like harness_create (create new), harness_delete (delete), harness_get (read). The additional details about pipelines/input sets further specify the resource types.

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 provides clear context for when to use this tool (updating existing resources) and includes specific instructions for passing body (YAML string or object) and using URL for auto-extraction. However, it does not explicitly contrast with siblings like harness_create or harness_describe to guide the agent when to choose this over alternatives.

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

Install Server

Other Tools

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/harness/mcp-server'

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