Skip to main content
Glama
harness

Harness MCP Server

Official
by harness

harness_delete

DestructiveIdempotent

Delete a Harness resource by type and ID, or provide a URL to auto-extract identifiers. This destructive action 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 declare destructiveHint=true, so the description's warning 'destructive and cannot be undone' reinforces but adds the 'cannot be undone' consequence. It also adds the URL auto-extraction behavior. However, it does not disclose the confirmation requirement (the confirm parameter) or mention idempotency aspects, which are relevant to users but covered in the schema.

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: the first states the core action, the second adds a key capability and a warning. Every sentence earns its place, with no fluff. It is front-loaded and efficient.

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?

The tool has 8 parameters, a rich schema, and a detailed output schema. The description covers the essential high-level purpose, destructive nature, and URL convenience. It doesn't mention the confirmation flow, but the schema's confirm parameter is thoroughly documented. Given the richness of structured metadata, the description is sufficiently complete, though it could add a one-line note about the confirm requirement.

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% with all parameters described, so baseline is 3. The description adds value by explaining the url parameter's role in auto-extracting identifiers, which clarifies how url relates to resource_id, org_id, project_id, and resource_scope. This cross-parameter insight goes beyond the schema's per-field descriptions.

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 clearly states the tool's function with a specific verb ('Delete') and a resource ('a Harness resource'). It distinguishes from sibling tools like harness_create and harness_update since 'delete' is unique. However, it does not enumerate the supported resource types, leaving that to the schema, so it is not maximally specific.

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 implies usage for deleting resources and warns about destructiveness, but it does not explicitly state when to use this tool versus alternatives (e.g., harness_update for modifications, harness_get for inspection). The URL auto-extraction hint provides some usage context, but no exclusions or alternative-recommendations are given.

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