Skip to main content
Glama

Deploy a prompt

deploy_prompt
Destructive

Publish the prompt's current messages and settings so it can be run with run_prompt and from the API (POST /v1/prompt/invoke with the deployment and variant it returns). Apps already calling it get the new version at once, so call without approved first and with approved: true only after the person says yes.

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": {
      "prompt_id": "<prompt_id>"
    },
    "name": "deploy_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
approvedNo
prompt_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, openWorldHint=true and idempotentHint=false; the description adds real context beyond that — live callers receive the new version immediately, and the deployment/variant identifiers returned are what subsequent API invocations use. It is consistent with the destructive hint (publishing replaces what is live) but does not discuss rollback or whether the prior version stays reachable.

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 sentences, front-loaded with the effect, then the return value, then the approval protocol. The nested API parenthetical is dense but informative. Minimal waste; slightly tighter phrasing of the endpoint clause would earn a 5.

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?

No output schema exists, and the description compensates by naming what is returned (deployment and variant), which is exactly what the next call needs. For a destructive, open-world publish operation it could say more about failure behavior or version recovery, but an agent has enough to invoke it correctly.

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 description coverage is 0%, so the description must carry the parameters. It explains `approved` thoroughly — omit it for the first call, set it true only after confirmation — which is the only non-obvious parameter. `prompt_id` is left implicit, but its name and required status make it unambiguous.

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 and resource — "Publish the prompt's current messages and settings" — and names the immediate downstream consumer (run_prompt) plus the API endpoint it enables. An agent can distinguish this from run_prompt and from update_prompt (which by implication does not publish) without opening any 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?

Gives an explicit sequencing rule: call without `approved` first, call with `approved: true` only after the person says yes. That is genuinely actionable guidance for the ambiguity that matters most here. It stops short of naming exclusion cases (e.g. when to prefer deploy_workflow, or what to do if approval is refused), so it falls just short of a 5.

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