Skip to main content
Glama

gitea_runner_register

Register a Gitea Actions runner on a host using a repo bootstrap script; fetches a fresh token at runtime, never in the plan, then verifies the runner is active with the correct node label.

Instructions

Register the Gitea Actions runner on a node with a runner bootstrap script from your own repo checkout (MIA_REPOS; default ops:deploy/bootstrap-node-runner.sh ): a fresh registration token comes from the Gitea API at run time and reaches the script through an environment variable, never the plan or journal. Verified afterwards: act_runner active and the label is exactly node-:host (copied configs announced other nodes' labels before).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYesinventory host
nameNoname for the script (default: the inventory name, e.g. pl3 → label node-pl3:host)
repoNoops
applyNofalse (default) = dry run: show what will happen on which hosts and a planHash. true = run it; needs planHash
scriptNodeploy/bootstrap-node-runner.sh
planHashNoplanHash from the dry run of the very same call, good for one apply; refused if targets or their state changed since

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that a fresh registration token is fetched from the Gitea API at run time and passed via environment variable, never through the plan or journal (a meaningful security/secrets disclosure), and that post-conditions are verified (act_runner active, label exactly node-<name>:host). It stops short of stating required Gitea API credentials/permissions or reversibility.

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 purpose is front-loaded and every clause (token handling, verification, label correctness) adds operational value. It is dense with parentheticals and reads as one long sentence, which slightly hurts scannability, but there is 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 6-parameter mutation tool with no annotations and no output schema, the description covers the mechanism, the secrets handling, and the success verification. It does not describe the dry-run/planHash return content, though the schema partially covers the apply workflow, leaving a small gap.

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?

With schema coverage at 67%, the description adds real meaning beyond the schema: it documents the default script path and its positional arguments (<name> <token>), and explains the name-to-label mapping (label rendered as node-<name>:host). It leaves repo/apply semantics largely to the schema, so it complements rather than duplicates.

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?

States a specific verb (register) and resource (Gitea Actions runner on a node), plus the exact mechanism used (runner bootstrap script from the MIA_REPOS checkout, default ops:deploy/bootstrap-node-runner.sh). It clearly distinguishes itself from sibling gitea_runner_remove (the inverse operation) and gitea_runners (read-only listing).

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 conveys the operational context (registering a runner via a repo script, dry-run/apply implied by the schema) but never explicitly states when to choose this over alternatives or when not to use it. It assumes the agent already knows it wants to register a runner; sibling gitea_runner_remove is not referenced for contrast.

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