Skip to main content
Glama
harness

Harness MCP Server

Official
by harness

harness_delete

DestructiveIdempotent

Delete any supported Harness resource by specifying its type and identifier. Optionally pass a Harness URL to auto-extract identifiers. This operation is permanent.

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
Behavior3/5

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

Annotations already provide destructiveHint and idempotentHint. The description adds 'this is destructive and cannot be undone' which reinforces destructiveHint but does not detail side effects or error handling. The URL extraction behavior is noted, but overall transparency is adequate but not enhanced beyond 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 three short sentences, front-loaded with the action, and no unnecessary words. Every sentence provides critical information (operation, unique feature, warning). Highly efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (8 parameters, nested objects), the description covers the core action and key feature but does not summarize how parameters like params, resource_scope, or confirm interact. The output schema exists, so return values are covered, but the description could provide a high-level usage flow for completeness.

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?

Schema coverage is 100%, so the schema already documents all 8 parameters. The description adds contextual value by explaining the URL parameter's ability to auto-extract identifiers and the destructive nature that impacts the confirm parameter. This extra context justifies above baseline 3.

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 'Delete a Harness resource', using a specific verb and resource. It distinguishes from sibling tools like harness_create or harness_update by specifying destruction. The unique feature of URL auto-extraction 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not explicitly compare with alternatives like harness_update for modifications. The destructive warning ('cannot be undone') implies caution but lacks explicit when-to-use or when-not-to-use guidance. The openWorldHint annotation provides some context, but the description itself could be more directive.

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