Skip to main content
Glama

Add GitHub workflows

add_workflows

Generate GitHub Actions CI and release workflows to automate lint, build, test, and publishing via OIDC trusted publishing for npm, PyPI, or crates.io projects.

Instructions

Write .github/workflows/ci.yml (install, lint, build, test on push and PR) and optionally release.yml (on v* tags: test, build, publish with trusted publishing via OIDC — skipped if the version exists — then a GitHub release from the CHANGELOG). Existing files are kept unless overwrite is true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirYesProject folder (absolute path, or relative to the server's working directory).
releaseNoregistry: publish + GitHub release; github-only: just a GitHub release.registry
registryNoOmit for a repo-only project.
overwriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare destructiveHint=false; the description adds substantive behavior beyond that: existing files are preserved unless overwrite is true, the release job is skipped if the version already exists, and publishing uses trusted publishing via OIDC. These are real operational details an agent needs. It stops short of stating whether changes are committed or what the response contains, so not a 5.

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 that leads with the primary artifact and conditions, then appends the optional artifact and the overwrite caveat. Despite its length, every clause conveys distinct, non-redundant information with no filler.

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?

For a file-generating tool with no output schema, the description covers what is written, the trigger conditions, and the preservation semantics, which is most of what an agent needs. The remaining gap is whether it also stages/commits the new files (a sibling git_commit exists) or what the result looks like on partial failure.

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 75%, so the schema already documents dir, release, and registry. The description adds genuine meaning for overwrite (existing files kept unless true) and clarifies the release.yml trigger condition, but says nothing about dir or the registry enum values beyond what the schema provides. Baseline 3 is appropriate when the schema carries most of the parameter burden.

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 names the exact artifacts it writes (.github/workflows/ci.yml and optional release.yml) and enumerates their contents (install, lint, build, test; tag-triggered release with OIDC publishing). This is a specific verb+resource statement that an agent can distinguish from siblings like create_github_repo, publish_package, or setup_trusted_publishing without opening the schema.

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?

Usage is implied rather than stated: the agent can infer this is for scaffolding CI/release workflows in a project, and the description clarifies when release.yml is or isn't produced (release option, existing version). However, it never names an alternative tool or states when not to use this one (e.g., versus scaffold_project or preflight), leaving routing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.