Skip to main content
Glama

get_draft

Read-only

Fetch a Substack draft by ID to retrieve its full title, body, and metadata for review, editing, or publishing preparation.

Instructions

Get the full content of a draft post by ID. Returns title, body, metadata.

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": "get_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
draft_idYesThe draft ID to retrieve

Output Schema

NameRequiredDescriptionDefault
idYes
bodyNo
titleNo
audienceNo
subtitleNo
created_atNo
updated_atNo
word_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv1.4.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / audience / $ref
      Removed value: -"#/properties/title"
    • addedOutput schema / properties / audience / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / body / $ref
      Removed value: -"#/properties/title"
    • addedOutput schema / properties / body / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / created_at / $ref
      Removed value: -"#/properties/title"
    • addedOutput schema / properties / created_at / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / subtitle / $ref
      Removed value: -"#/properties/title"
    • addedOutput schema / properties / subtitle / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / updated_at / $ref
      Removed value: -"#/properties/title"
    • addedOutput schema / properties / updated_at / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed4 schema fields changed
    • addedInput schema / properties / draft_id / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / draft_id / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / draft_id / type
      Previous value: -"number"New value: +"integer"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "audience": {
      +      "$ref": "#/properties/title"
      +    },
      +    "body": {
      +      "$ref": "#/properties/title"
      +    },
      +    "created_at": {
      +      "$ref": "#/properties/title"
      +    },
      +    "id": {
      +      "exclusiveMinimum": 0,
      +      "maximum": 9007199254740991,
      +      "type": "integer"
      +    },
      +    "subtitle": {
      +      "$ref": "#/properties/title"
      +    },
      +    "title": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "updated_at": {
      +      "$ref": "#/properties/title"
      +    },
      +    "word_count": {
      +      "anyOf": [
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "id"
      +  ],
      +  "type": "object"
      +}
  3. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

The readOnlyHint annotation already establishes that this is a safe read operation. The description adds that it returns title, body, and metadata, but with an output schema present this is redundant, and it does not disclose behavior such as not-found handling or access requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is two short sentences and front-loads the retrieval action. There is no unnecessary preamble or filler.

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 a simple read-by-ID tool with annotations, a complete input schema, and an output schema, the description covers the essential action and resource. It could be slightly more complete by mentioning selection versus list_drafts or not-found behavior, but the core is sufficient.

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?

There is one parameter and schema description coverage is 100%, so the schema already carries the parameter meaning. The description says retrieval is 'by ID' but adds no additional format, range, or validation context beyond the schema.

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 states a specific verb and resource: get the full content of a draft post by ID. It distinguishes this from list_drafts by emphasizing ID-based retrieval and from published-post tools by specifying a draft post.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The phrase 'by ID' implies that this tool is for when the draft ID is already known, but the description does not explicitly compare it with alternatives such as list_drafts or state when not to use it. The usage context is inferable but not fully spelled out.

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