Skip to main content
Glama
harness

Harness MCP Server

Official
by harness

harness_update

DestructiveIdempotent

Update any Harness resource with a new definition. Pass YAML/JSON directly or extract identifiers from a Harness URL.

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?

The description adds behavioral details beyond annotations, such as the ability to pass a URL for auto-extraction and the response including an 'openInHarness' link. With annotations already indicating destructive/write operations (destructiveHint, readOnlyHint false), the additional context is valuable and consistent. It no contradiction with 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 and well-structured: a clear purpose statement followed by focused usage notes on body format, URL extraction, and response link. Every sentence contributes useful information without redundancy or fluff.

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 tool's complexity (9 parameters, 2 required, nested objects) and the presence of a detailed schema and output schema, the description effectively highlights the most critical usage patterns (body handling for pipelines/input sets, URL extraction). It is complete enough for an agent to select and invoke the tool correctly, with the schema and annotations covering the remaining details.

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?

While the schema already covers 100% of parameters with descriptions, the tool description adds meaningful nuance by including 'input sets' in the body guidance (schema mentions only 'pipelines') and recommending YAML string usage for complex definitions. This goes slightly beyond the schema, though most parameter semantics are already well-documented in the schema.

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 a specific verb and resource type, distinguishing it from sibling tools like harness_create and harness_delete. It also adds context about body handling and URL extraction, which further clarifies its purpose.

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 that this tool updates existing resources, implying it is not for creation. It offers specific guidance for pipelines/input sets on how to pass body (YAML string vs. yamlPipeline/pipeline) and mentions URL auto-extraction. However, it does not explicitly name alternatives or edge cases where another tool should be used.

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