Skip to main content
Glama

harness_execute

Execute actions on Harness resources: run or retry pipelines, toggle feature flags, test connectors, sync GitOps apps, and run chaos experiments. Auto-extracts identifiers from URLs.

Instructions

Execute an action on a Harness resource: run/retry/interrupt pipelines, kill/restore FME feature flags, test connectors, sync GitOps apps, run chaos experiments. You can pass a Harness URL to auto-extract identifiers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
resource_typeNoResource type with executable actions. Auto-detected from url.
urlNoHarness UI URL — auto-extracts org, project, type, and ID
actionYesAction to execute (e.g. run, retry, interrupt, toggle, test_connection, sync)
resource_idNoPrimary resource identifier
org_idNoOrganization identifier (overrides default)
project_idNoProject identifier (overrides default)
inputsNoPipeline runtime inputs: key-value pairs like {branch: 'main'} (auto-resolved), or full YAML string. Check runtime_input_template first via harness_get.
input_set_idsNoInput set IDs for complex pipelines. List available: harness_list(resource_type='input_set', filters={pipeline_id: '...'}).
bodyNoAdditional body payload for the action
paramsNoAction-specific parameters. Call harness_describe for available fields per resource_type.
Behavior2/5

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

Annotations claim destructiveHint=false, but the description lists potentially destructive actions like 'kill/restore FME feature flags' and 'interrupt pipelines', creating inconsistency. The description does add value by noting URL auto-extraction and parameter behavior, but the contradiction undermines trust.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise (two sentences) and front-loaded with purpose, but the list of examples could be more structured (e.g., bullet points). Overall efficient and to the point.

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 10 parameters and no output schema, the description covers all essential aspects: resource types, actions, URL usage, inputs, input sets, body, params, and references to other tools for supplementary info. It is complete for a complex exec tool.

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 schema coverage is 100%, the description adds significant meaning beyond the schema: e.g., URLs auto-identify resources, inputs accept key-value pairs or YAML, and it suggests using harness_describe for action-specific parameters. This extra context helps the agent parameterize correctly.

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 'Execute an action on a Harness resource' and lists specific actions like run, retry, interrupt, etc., distinguishing it from siblings like harness_create, harness_delete, which handle CRUD operations.

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 gives explicit context for using the tool (e.g., to trigger actions, pass a URL for auto-extraction). It references harness_get and harness_list for complementary setup, but does not explicitly state when not to use it.

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

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