Skip to main content
Glama

merjax_set_repo_secret

Create or replace one workflow secret on a repository, used in workflows as ${{ secrets.NAME }}. The name is saved upper-cased (cron_secret → CRON_SECRET); trailing spaces/newlines are removed from the value. The value is WRITE-ONLY: it is encrypted at rest and never returned, logged or audited — the result names the secret only. Pass expected_updated_at (the updated_at you last read) to update only if nobody changed it since: a newer value is never overwritten (error 'conflict'), a deleted secret is not re-created (error 'missing'). Setting the value it already has writes nothing (result 'unchanged'), so a retry is safe. Needs admin access to the repository and 'repo' scope. Audit-logged (name only). Returns {repository, name, created, result: 'created'|'updated'|'unchanged', updated_at}.

Input Schema

NameRequiredDescriptionDefault
nameYesSecret name: letters, digits, underscores; not starting with a digit
repoYesRepo name
ownerYesRepo owner — username or organisation slug
valueYesThe secret value (never echoed back)
expected_updated_atNoOptional ISO time: only update if the secret's updated_at is still this (from merjax_list_repo_secrets)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations, which only say readOnlyHint=false and destructiveHint=false. It discloses that the value is encrypted at rest and never returned, logged or audited (audit log records name only), that the name is upper-cased and the value trimmed, the admin/'repo' scope requirement, and the exact conflict/missing/unchanged failure modes — precisely the behavioral context an agent needs for a mutation.

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?

Front-loaded with the action, then value semantics, then concurrency, then auth, then return shape — a logical order with no filler sentences. It is dense and dash-heavy, with several clauses stacked per sentence, which costs a bit of readability.

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?

There is no output schema, and the description compensates by spelling out the return object ({repository, name, created, result, updated_at}), the error strings, authorization requirements, and value handling. For a 5-parameter mutation with side effects, nothing an agent needs is left out.

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?

Schema coverage is 100%, so baseline is 3, but the description adds real semantics the schema lacks: 'name' is normalized to upper case and trailing whitespace is stripped from 'value'. expected_updated_at's conflict/missing outcomes are also spelled out rather than just 'only update if updated_at is still this'.

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?

States a specific verb and resource ('Create or replace one workflow secret on a repository') plus where the secret surfaces (${{ secrets.NAME }}). It distinguishes itself implicitly from other secret-like siblings by scoping to repository workflow secrets, but never names the alternatives (set_loop_secret, set_variable) it should be chosen over.

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?

Gives concrete conditional guidance: pass expected_updated_at for optimistic concurrency, retries are safe because unchanged values write nothing. What's missing is a when-to-use-this-instead-of-that statement versus the sibling secret/variable tools, which is the main gap.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources