Skip to main content
Glama

Check a draft

drafts_validate
Read-only

Check a draft against the rules of every network it goes to. Answers valid, and errors as plain sentences that say what to fix. ask, when present, lists what the user has not chosen yet and what happens if they do not (a YouTube video’s visibility): ask them, then set it with drafts_edit. Changes nothing. publish and schedule run the same check and refuse a draft that fails it. A TikTok post is not valid until the owner has made TikTok’s choices on the TikTok screen; choose lists the link to that screen for each TikTok account still waiting. Give the user the link; do not try to choose for them.

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": {
      "id": "<id>",
      "version": "<version>"
    },
    "name": "drafts_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe draft id.
brandIdNoThe brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out.
versionYesThe draft’s version as you last read it. A different number is refused, so nothing goes out with content the user did not see.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / brandId
      Added value: +{
      +  "description": "The brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out.",
      +  "maxLength": 80,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, and the description's "Changes nothing" is consistent with them rather than contradictory. Beyond the annotations it adds real behavioral context: the shape of the response (valid plus plain-sentence errors), what an 'ask' means and the consequence of ignoring it, and that failing drafts are refused by publish/schedule. It doesn't cover rate limits or multi-brand quirks beyond what the schema says, so not a full 5.

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 core action and response contract, then alternative routing, then the TikTok edge case — a sensible order. It runs a little long and the TikTok passage is dense, but every sentence supplies a distinct rule an agent would otherwise get wrong.

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?

For a 3-parameter read-only check with no output schema, the description supplies the return contract (valid, errors as plain sentences), the meaning of optional response fields (ask, choose), and the escalation path. Nothing an agent needs in order to call and act on this tool 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 description coverage is 100%, so id, brandId, and version are already fully documented, including the version-mismatch refusal and the single-brand omission rule. The description adds no parameter-level meaning of its own, which is the expected baseline 3 when the schema carries the burden.

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?

Opens with a specific verb and resource ("Check a draft against the rules of every network it goes to") and immediately separates itself from the mutating siblings by naming publish and schedule and noting they run the same check. An agent can distinguish this from drafts_edit or 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 Guidelines5/5

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

States the when (this is the pre-publish check that publish/schedule also run), the exception handling (drafts_edit to set an ask value), and an explicit when-not/do-not ("do not try to choose for them" — give the user the link). It even names the sibling to use for the follow-up action.

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.