Skip to main content
Glama

Publish Promotion

publish_promotion
Idempotent

Publish the reviewed plan as a draft GitHub PR when the user authorizes promotion.

Retry the same plan after an interrupted response to recover its PR. This never merges a PR, deploys code or changes the running agent.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "agent_id": "<agent_id>",
      "experiment_id": "<experiment_id>",
      "profile_id": "<profile_id>",
      "plan_id": "<plan_id>"
    },
    "name": "publish_promotion"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_idYesExact immutable plan ID from preview_promotion.
agent_idYesStable agent ID from list_agents or create_agent.
profile_idYes
experiment_idYesExperiment ID within this agent; letters, digits, hyphens, underscores.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, the description bounds the blast radius with explicit non-effects: no merge, no deploy, no change to the running agent. The retry sentence reinforces the idempotentHint with actionable recovery semantics. What is missing is any statement of required authorization or what the response contains on success versus a duplicate retry.

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?

Three short sentences, front-loaded with the action and artifact, with no filler. The line breaks make the retry sentence read as a fragment and slightly obscure whether it is a precondition or a recovery path, but nothing is wasted.

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

Completeness3/5

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

This is an open-world, non-read-only mutation with no output schema, so the description carries the burden of explaining what comes back (PR number, URL, state) and what failure looks like. It covers safety boundaries and retry well but leaves the agent without a return-value or error picture before it commits to the call.

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%, with plan_id, agent_id and experiment_id well documented in-schema; only profile_id lacks a description. The description contributes nothing parameter-specific beyond "the same plan," so it does not compensate for the one undocumented field. Baseline 3 is appropriate given the schema already does most of the work.

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 and resource ("Publish the reviewed plan") and the concrete artifact produced ("a draft GitHub PR"), which distinguishes it from the sibling get_promotion and preview_promotion that read or stage a plan. An agent can tell what this tool creates 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?

It states the triggering condition ("when the user authorizes promotion") and a retry rule ("Retry the same plan after an interrupted response to recover its PR"). It also implies a preview-then-publish flow via "the reviewed plan," though it never explicitly instructs the agent to call preview_promotion first nor names it as the required predecessor.

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.