Skip to main content
Glama

Get next post to write

next_write
Read-only

Return the next post to write: the earliest-dated post whose status is scheduled. Posts with no date sort last. Statuses ready, writing and failed are never returned: ready already has a body, and list_posts returns those. Returns null when nothing is scheduled. Use the term it returns for the write pipeline. markets lists the workspace market ids the article is written for: the markets the approved content map labelled its topic with, else the main market's id alone. standard is the short form of the rules that block a draft, carried here because this is the call you make before the first sentence exists. When the term belongs to a cluster of the approved content map, cluster carries its id, name, targetTerm, the post's role (hub or spoke), the hub (kind, path, url, term, title, published), publishedSiblings (title, url, path) and expectedLinks: to (title, url, path, and href, the link to write), reason (spoke_to_hub or hub_to_spoke), present, which is null until the post has a body, and suggestion while the link is not in the body: anchor, the words to link (the searches the target ranks for, its topic or its title), and, once there is a body, found with the quote of the sentence that names the target, or found false when none does. A spoke is expected to link to its hub and a hub to its published spokes; only live targets are listed. Those links are advice; the rules never check them. Outside an approved cluster, cluster is not set.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "next_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceIdNoThe workspace this call acts on, as listed by list_workspaces. Left out, the call uses the workspace the account is in right now.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / workspaceId
      Added value: +{
      +  "description": "The workspace this call acts on, as listed by list_workspaces. Left out, the call uses the workspace the account is in right now.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint false and closed-world, so the safety profile is covered. The description goes well beyond that by disclosing the ordering rule, the exclusion set with reasons, and the null return when nothing is scheduled — real behavioral context an agent cannot get from the 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 core selection rule is correctly front-loaded, but the bulk of the text is a dense, run-on enumeration of cluster and expectedLinks sub-fields that is hard to parse and only needed because there is no output schema. It is justified content delivered in a structure that costs the reader effort.

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?

With no output schema, the description takes on the full burden of describing the return payload — markets, standard, cluster, roles, expectedLinks and the present/found states — and does so thoroughly, including the caveat that links are advice the rules never check. Nothing an agent needs in order to interpret the result 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?

There is a single optional workspaceId and schema coverage is 100%, so the schema already explains the fallback to the current workspace. The description adds nothing about the parameter, which matches the baseline of 3 when the schema carries the load.

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 first sentence states a specific verb (return), a specific resource (the next post to write), and the exact selection rule: the earliest-dated post whose status is scheduled, with undated posts sorting last. It also names the sibling it is not (list_posts returns ready posts), so an agent can distinguish it without opening either schema.

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?

It gives a clear use context ('this is the call you make before the first sentence exists') and explicitly excludes alternatives by explaining that ready/writing/failed statuses are never returned and that list_posts covers the ready ones. It stops short of a full when-not matrix, but the routing signal is strong.

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.

Resources