Skip to main content
Glama

harness_diagnose

Read-only

Diagnose Harness resources: analyze failures, test connectivity, check health, or troubleshoot GitOps sync issues. Uses a Harness URL to auto-detect resource type.

Instructions

Diagnose a Harness resource — analyze failures, test connectivity, check health, or troubleshoot GitOps sync issues. Defaults to pipeline execution diagnosis. Accepts a Harness URL to auto-detect the resource type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
resource_typeNoResource type to diagnose. Auto-detected from url if provided. Defaults to pipeline.
resource_idNoPrimary identifier of the resource (connector ID, delegate name). Auto-detected from url if provided.
urlNoA Harness URL — resource type, org, project, and ID are extracted automatically
org_idNoOrganization identifier (overrides default)
project_idNoProject identifier (overrides default)
optionsNoResource-specific diagnostic options. Pipeline: execution_id, pipeline_id, summary, include_yaml, include_logs, log_snippet_lines, max_failed_steps, include_visual (boolean, include PNG image inline), visual_type ('timeline'|'flow'|'architecture', default 'timeline' — 'architecture' renders full pipeline YAML as multi-level diagram with stages, step groups, steps, rollback), visual_width (number, default 900). When a Harness URL contains ?step=<nodeExecutionId>, setting include_logs:true fetches that specific step's log regardless of pass/fail status and returns it as requested_step_log alongside any failed_step_logs. GitOps: agent_id. Call harness_describe for details.
Behavior4/5

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

Annotations indicate readOnlyHint=true, consistent with diagnostic purpose. Description adds auto-detection behavior and default resource type. No contradictions; additional transparency about options like visual parameters and step log fetching.

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?

Description is four sentences with dense, relevant information; front-loaded with core purpose. Every sentence adds value, though the options detail could be slightly more compact. Overall 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?

Given 6 parameters including a nested options object and no output schema, description covers default behavior, auto-detection, and detailed options. References harness_describe for further info. Missing output explanation but acceptable for a diagnostic tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but description adds substantial meaning beyond schema: explains auto-detection from url, defaults, and provides detailed documentation for the options object including all sub-keys (e.g., visual_width, visual_type, include_visual). This significantly enhances parameter understanding.

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?

Description clearly states it diagnoses Harness resources such as failures, connectivity, health, and GitOps sync issues. It explicitly defaults to pipeline execution diagnosis and distinguishes from sibling harness_describe by referencing it for details.

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?

Description outlines default behavior (pipeline execution) and auto-detection from URL. It also mentions calling harness_describe for details, providing an alternative. However, it does not explicitly state when not to use this tool.

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