Skip to main content
Glama

schedule_draft

Schedule a draft to publish at a specified future date and time using its ID and ISO 8601 datetime.

Instructions

Schedule a draft to publish at a future datetime.

Args: post_id: Draft ID. iso_datetime: ISO 8601 datetime, e.g., '2026-05-15T09:00:00+09:00' for JST or '2026-05-15T00:00:00Z' for UTC.

Returns: {post_id, scheduled_for}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
post_idYes
iso_datetimeYes

Implementation Reference

  • The actual handler/logic: parses the ISO datetime, calls the underlying Substack API's schedule_draft method, and returns a dict with post_id, scheduled_for, and raw response.
    def schedule_draft(self, post_id: str, iso_datetime: str) -> dict:
        try:
            dt = datetime.fromisoformat(iso_datetime)
        except ValueError as e:
            raise ValueError(
                f"iso_datetime must be ISO 8601 format (e.g., 2026-05-15T09:00:00+09:00). Got: {iso_datetime!r}"
            ) from e
        result = self._api.schedule_draft(post_id, dt)
        return {
            "post_id": post_id,
            "scheduled_for": dt.isoformat(),
            "raw": result,
        }
  • The MCP tool registration: decorated with @mcp.tool() which registers 'schedule_draft' as an MCP tool. Defines args (post_id, iso_datetime) and delegates to SubstackClient.schedule_draft.
    @mcp.tool()
    def schedule_draft(post_id: str, iso_datetime: str) -> dict:
        """Schedule a draft to publish at a future datetime.
    
        Args:
            post_id: Draft ID.
            iso_datetime: ISO 8601 datetime, e.g., '2026-05-15T09:00:00+09:00' for
                JST or '2026-05-15T00:00:00Z' for UTC.
    
        Returns:
            {post_id, scheduled_for}
        """
        return _get_client().schedule_draft(post_id=post_id, iso_datetime=iso_datetime)
Behavior2/5

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

No annotations provided, and the description does not disclose behavioral traits such as whether scheduling overwrites existing schedule, permission requirements, or side effects. The description is minimal.

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?

The description is concise with a clear structure (what, args, returns), though the Args/Returns format adds minor verbosity; it is front-loaded and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description includes return value details. However, it lacks behavioral context and usage guidance, leaving some gaps for a complete understanding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds full meaning to both parameters beyond the schema: explains post_id as Draft ID and provides explicit ISO 8601 datetime format examples, compensating for 0% schema coverage.

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 the tool schedules a draft to publish at a future datetime, distinguishing it from siblings like publish_draft (immediate) and unschedule_draft (cancel).

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives; it only describes the action without context of when to choose it over similar tools.

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/nanameru/substack-mcp'

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