Skip to main content
Glama
kieksme
by kieksme

Create a Hashnode draft

hashnode_create_draft

Create a new draft in a Hashnode publication. Accepts title, markdown content, tags, cover image, and SEO settings. Draft remains unpublished until you publish it.

Instructions

Create a new draft in a Hashnode publication. Does NOT publish — use hashnode_publish_draft afterwards.

Args:

  • publication_id (string, required): Publication ID

  • title (string, required): Post title

  • content_markdown (string, required): Post content in Markdown

  • subtitle (string, optional): Short subtitle

  • tags (array, optional): Tags as [{ name, slug }] — slug must be lowercase with hyphens

  • cover_image_url (string, optional): URL of cover image

  • slug (string, optional): Custom URL slug (auto-generated from title if omitted)

  • original_article_url (string, optional): Canonical URL for cross-posted articles

  • meta_title (string, optional): SEO meta title

  • meta_description (string, optional): SEO meta description

  • response_format: 'markdown' or 'json'

Returns: draft id, title, slug, tags, updatedAt

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugNoCustom URL slug (auto-generated if omitted)
tagsNoTags as [{ name: 'Cloud Computing', slug: 'cloud-computing' }]
titleYesPost title
subtitleNoShort subtitle
meta_titleNoSEO meta title
publication_idYesPublication ID
cover_image_urlNoURL of cover image
response_formatNoOutput format: 'markdown' (default) or 'json'markdown
content_markdownYesPost content in Markdown
meta_descriptionNoSEO meta description
original_article_urlNoCanonical URL for cross-posted content
Behavior4/5

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

Annotations already indicate non-read-only and non-idempotent behavior. The description adds the important nuance that this tool only creates a draft and does not publish, plus it lists the return fields. No contradiction with annotations.

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

Conciseness3/5

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

The opening sentences are concise and front-loaded with crucial workflow info. However, the exhaustive Args list duplicates schema descriptions, adding length without new information. It could be trimmed to just the non-obvious notes.

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?

With no output schema, the description compensates by listing return fields (draft id, title, slug, tags, updatedAt). Combined with the 100% schema coverage and annotations, the tool is well-specified for correct invocation. Minor gaps like error handling are not critical.

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?

Input schema covers 100% of parameters with descriptions. The Args list in the description largely repeats schema information, adding only minor clarifications like 'slug must be lowercase with hyphens' which is already in 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 clearly states it creates a new draft in a Hashnode publication, using a specific verb and resource. It also distinguishes itself from the sibling tool hashnode_publish_draft by explicitly noting it does not publish.

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?

The description explicitly says 'Does NOT publish — use hashnode_publish_draft afterwards.' This provides clear when-to-use guidance and names the alternative, fulfilling the behavioral exclusion requirement.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kieksme/mcp-hashnode'

If you have feedback or need assistance with the MCP directory API, please join our Discord server