Skip to main content
Glama

preflight_draft

Read-only

Perform a read-only static review of a Substack draft by checking title, audience, body structure, images, and paywalls; optionally include Substack's prepublish warnings.

Instructions

Read a draft and check title, audience, body structure, images and paywalls. Static review aid only: never modifies or publishes; does not guarantee rendering, link availability or publish readiness. Review the findings in Substack. Set substack_check=true to also read Substack's own prepublish errors and suggestions (one extra read), reported separately as substack_check.

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": {
      "draft_id": "<draft_id>"
    },
    "name": "preflight_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
draft_idYes
substack_checkNoAlso read Substack's own prepublish validator for this draft (read-only, one extra request). Undocumented endpoint: a failure returns substack_check.status "unavailable" and the static checks still return.

Output Schema

NameRequiredDescriptionDefault
countsYes
draft_idYes
findingsYes
editor_urlYes
limitationsYes
publicationYes
checks_passedYes
substack_checkNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changedv1.4.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / substack_check
      Added value: +{
      +  "default": false,
      +  "description": "Also read Substack's own prepublish validator for this draft (read-only, one extra request). Undocumented endpoint: a failure returns substack_check.status \"unavailable\" and the static checks still return.",
      +  "type": "boolean"
      +}
    • removedOutput schema / properties / counts / properties / images / $ref
      Removed value: -"#/properties/counts/properties/nodes"
    • addedOutput schema / properties / counts / properties / images / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / counts / properties / images / minimum
      Added value: +0
    • addedOutput schema / properties / counts / properties / images / type
      Added value: +"integer"
    • removedOutput schema / properties / counts / properties / paywalls / $ref
      Removed value: -"#/properties/counts/properties/nodes"
    • addedOutput schema / properties / counts / properties / paywalls / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / counts / properties / paywalls / minimum
      Added value: +0
    • addedOutput schema / properties / counts / properties / paywalls / type
      Added value: +"integer"
    • removedOutput schema / properties / counts / properties / text_characters / $ref
      Removed value: -"#/properties/counts/properties/nodes"
    • addedOutput schema / properties / counts / properties / text_characters / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / counts / properties / text_characters / minimum
      Added value: +0
    • addedOutput schema / properties / counts / properties / text_characters / type
      Added value: +"integer"
    • removedOutput schema / properties / findings / items / properties / message / $ref
      Removed value: -"#/properties/findings/items/properties/code"
    • addedOutput schema / properties / findings / items / properties / message / type
      Added value: +"string"
    • removedOutput schema / properties / limitations / $ref
      Removed value: -"#/properties/findings/items/properties/code"
    • addedOutput schema / properties / limitations / type
      Added value: +"string"
    • removedOutput schema / properties / publication / $ref
      Removed value: -"#/properties/findings/items/properties/code"
    • addedOutput schema / properties / publication / type
      Added value: +"string"
    • addedOutput schema / properties / substack_check
      Added value: +{
      +  "oneOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "errors": {
      +          "items": {
      +            "maxLength": 300,
      +            "type": "string"
      +          },
      +          "maxItems": 50,
      +          "type": "array"
      +        },
      +        "note": {
      +          "type": "string"
      +        },
      +        "status": {
      +          "const": "ok",
      +          "type": "string"
      +        },
      +        "suggestions": {
      +          "items": {
      +            "maxLength": 300,
      +            "type": "string"
      +          },
      +          "maxItems": 50,
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "status",
      +        "errors",
      +        "suggestions",
      +        "note"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "note": {
      +          "type": "string"
      +        },
      +        "reason": {
      +          "type": "string"
      +        },
      +        "status": {
      +          "const": "unavailable",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "status",
      +        "reason",
      +        "note"
      +      ],
      +      "type": "object"
      +    }
      +  ]
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond readOnlyHint=true by disclosing that nothing is modified or published, that rendering, link availability and publish readiness are not guaranteed, that substack_check costs one extra read, and that an undocumented endpoint failure degrades to substack_check.status 'unavailable' while static checks still return. This is exactly the added context annotations cannot carry.

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 primary action, then caveats, then the optional flag. Three sentences with essentially no filler, though the closing restatement of the substack_check field name is slightly redundant with the schema.

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?

Given an output schema exists and needn't be described, the definition covers what is checked, what is explicitly not guaranteed, the extra-read cost, and the failure fallback. Nothing an agent needs in order to invoke this correctly is missing.

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?

At 50% schema coverage the description must compensate, and it does: substack_check is explained in terms of cost (one extra read) and where the result lands in the output ('reported separately as substack_check'), adding meaning beyond the schema text. draft_id is left to the schema, which is a minor residual gap.

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 ('Read a draft') and enumerates exactly what is checked: title, audience, body structure, images and paywalls. This clearly separates it from mutation siblings such as update_draft or create_draft, which the description implicitly excludes by declaring it static/read-only.

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?

Frames the tool as a 'static review aid only' for pre-publish checking and directs the agent to review findings in Substack. It clearly bounds scope (never modifies or publishes, does not guarantee publish readiness) but never names an alternative sibling like get_draft for plain retrieval, so the when-not-this-tool routing is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.