Skip to main content
Glama

merjax_review_deployment

Approve or reject a workflow run's jobs waiting on a protected environment (environment: with required reviewers). The caller must be a reviewer of every environment selected (the environment's reviewers, or the repository owner when none are listed). An approval runs the job (after the environment's wait timer, if any); a rejection fails it. Mirrors POST /api/v2/repos/.../actions/runs/:id/pending_deployments. Requires 'repo' scope.

Input Schema

NameRequiredDescriptionDefault
repoYes
ownerYes
stateYes"approved" or "rejected"
run_idYesThe run's id, or a unique leading part of it (8+ hex characters)
commentNo
environmentsNoEnvironment names (or ids), as strings, to decide; omitted = every waiting one

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=false; the description goes well beyond that by disclosing the reviewer authorization requirement, the repo scope requirement, and the divergent effects of each state (approval runs the job after any wait timer, rejection fails it). It stops short of covering repeat reviews, idempotency, or what happens when no jobs are actually waiting.

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?

Five tight sentences, front-loaded with the action and its precondition, followed by authorization, effects, the analogous REST endpoint, and the required scope. No sentence is redundant or restates the name.

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 mutation tool with no output schema, the description covers authorization, side effects, and scope, which is most of what an agent needs. Gaps remain around the comment parameter and partial-review behavior, but nothing critical to invoking it correctly is missing.

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 50%, so the description must carry weight for the undocumented parameters. It adds real meaning for environments (the caller must review every one selected) and clarifies the overall mutation, but says nothing about comment or why owner/repo are needed beyond a passing mention of 'repo' scope.

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 a specific verb pair and resource: approve or reject a workflow run's jobs waiting on a protected environment. That scope cleanly separates it from siblings like merjax_cancel_workflow_run, merjax_rerun_failed_jobs, and merjax_prioritize_workflow_run, so an agent can select it 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 Guidelines4/5

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

The precondition is stated precisely: the run must have jobs waiting on an environment with required reviewers, and the caller must be a reviewer of every selected environment. It does not explicitly point to alternatives (cancel, rerun, prioritize) when a run is stuck for a different reason, which keeps it just below the top mark.

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