Skip to main content
Glama

Approve the draft

approve_draft

From an owner or an admin: make the draft a new public version. Every file is drawn again and published at cdn.ideare.app/b//v/; follow the run to see it finish. From anyone else: ask the owner to approve this draft, which they do in one tap. Send the draftRev you looked at. Costs no credits.

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": {
      "slug": "<slug>",
      "draftRev": "<draftRev>"
    },
    "name": "approve_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYes
draftRevYes
idempotencyKeyNoA key you make up for this call. Send the SAME one again after a lost answer to get the first answer back, with nothing spent twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say it is not read-only and not destructive; the description adds the substance: all files are re-rendered, the publish target URL pattern, that it is asynchronous and must be followed via a run, that it consumes no credits, and that non-privileged callers get an approval request instead of an error. It also explains the stale-revision guard behind draftRev.

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?

Four short sentences, front-loaded with the role condition and followed by the effect, the async note, and the cost. Dense and useful, though 'follow the run to see it finish' is the one phrase that is vague rather than informative.

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 an async, role-gated mutation with no output schema, the description covers the important ground: effect, publish location, run tracking, cost, and the escalation path for unauthorized callers. The remaining gap is that it never says what the call returns (e.g., a run identifier) needed to actually 'follow the run'.

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 33%, so the description has to carry draftRev and slug. 'Send the draftRev you looked at' gives draftRev its real meaning as an optimistic-concurrency token, and the publish URL shows slug addressing. It leaves slug's own semantics implicit and adds nothing to idempotencyKey, which the schema already documents fully.

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 with its outcome: turning a draft into a new public version published at a versioned CDN path. The role split makes clear this is not the same as update_draft (editing) or get_version (reading), so an agent can place it correctly without opening a 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?

Explicitly branches on caller role: owner/admin approve directly, everyone else should route the request to the owner via a one-tap approval. That is real when-to-use guidance. It stops short of naming a sibling tool, saying only 'follow the run' rather than pointing at get_run.

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