Skip to main content
Glama

gha_add_matrix

Add a matrix strategy to a GitHub Actions workflow to run tests across multiple versions or configurations. Define dimensions and values to expand test coverage.

Instructions

Add matrix strategy to a GitHub Actions workflow for multi-version testing

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valuesYesMatrix values to test against
api_keyNoAPI key for authentication
dimensionYesMatrix dimension name (e.g. node-version, os)
fail_fastNoStop on first failure (default false)
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. 'Add matrix strategy' implies mutating a workflow file, but the description does not disclose whether it creates or edits a workflow, whether the api_key is required for GitHub API access, what happens to existing workflow content, or whether the operation is reversible. For a mutation tool, this is a significant gap.

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?

A single, front-loaded sentence with zero redundancy. It states the action and the purpose efficiently, earning every word.

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

Completeness2/5

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

For a mutation tool with no annotations and no output schema, the description is too thin. It does not clarify which workflow file gets modified, whether a workflow target must exist, how authentication is handled despite the api_key parameter, or what the result of the operation looks like. An agent calling this tool would lack essential operational context.

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 coverage is 100%, so the schema already documents all four parameters. The description adds the 'multi-version testing' context, which loosely connects to the 'dimension' and 'values' parameters, but it does not add meaningful parameter-level semantics beyond what the schema provides. Baseline 3 is appropriate.

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 states a specific verb ('Add'), resource ('matrix strategy to a GitHub Actions workflow'), and intent ('for multi-version testing'). It is clear enough to distinguish from sibling tools like gha_add_caching and gha_optimize, though it does not explicitly name alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance is given on when to use this tool versus alternatives such as gha_generate_workflow or gha_add_caching. There is no stated context, prerequisite, or exclusion, so the agent must infer when this tool is the right choice.

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/barnburner121/claude-plugin-marketplace'

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