Skip to main content
Glama
harness

Harness MCP Server

Official
by harness

harness_delete

DestructiveIdempotent

Delete a Harness resource permanently by providing its URL or identifiers. Confirmation required to prevent accidental removal.

Instructions

Delete a Harness resource. You can pass a Harness URL to auto-extract identifiers. This is destructive and cannot be undone.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoA Harness UI URL — org, project, resource type, ID, and supported resource_scope are extracted automatically
org_idNoOrganization identifier (overrides default)
paramsNoAdditional identifiers for nested resources (e.g. pipeline_id for triggers/input sets, environment_id for infrastructure).
confirmNoSet to true to confirm the destructive operation. Required when the client cannot surface a confirmation prompt — e.g. managed MCP that does not advertise elicitation, or an elicitation that fails at runtime. 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 delete. Optional when url contains the resource ID.
resource_typeYesThe type of resource to delete
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
deletedYesWhether the resource was successfully deleted
detailsNoOptional API response payload (e.g. template-service delete body)
resource_idYesThe ID of the deleted resource
resource_typeYesThe type of resource that was deleted
version_labelNoDeleted template version label, when applicable
Behavior4/5

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

Annotations already provide destructiveHint=true and readOnlyHint=false. The description adds valuable behavioral context beyond those flags: the operation 'cannot be undone,' and it discloses the URL auto-extraction behavior. This meaningfully complements the structured annotations without contradicting them.

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 sentences with no filler. It front-loads the core action, then the convenience feature, then the critical warning. Every sentence earns its place.

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 rich input schema, annotations, and presence of an output schema, the description covers what an agent needs to orient: what the tool does, how to simplify input via URL, and that the operation is permanent. The confirm parameter nuance is left to the schema, which is acceptable since the schema documents it thoroughly.

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 parameter schema already documents all fields thoroughly. The description's mention of passing a URL to auto-extract identifiers largely restates what the url parameter description already says. Thus the description adds little parameter-level meaning beyond 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 opens with a specific verb and resource: 'Delete a Harness resource.' This clearly distinguishes it from siblings like harness_create, harness_update, and harness_search. It also adds a useful capability (URL-based identifier extraction), making the tool's purpose unambiguous.

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 tool's purpose—deleting a Harness resource—is stated explicitly enough that an agent knows when to select it. The warning 'This is destructive and cannot be undone' provides clear contextual guidance to exercise care. It does not reference alternatives, but no exclusions or alternative routing are needed for a delete operation.

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