Skip to main content
Glama

Suggest times to post

suggest_posting_times
Read-only

Concrete upcoming times to publish, from the organization's own best-performing slots over the next 14 days (the slot's midpoint hour, in the organization's timezone), skipping slots that already hold a scheduled post for the same account (or platform, or organization). Pass a suggestion's scheduledAt straight to create_post or reschedule_post. Each suggestion carries the slot's average engagement and sample count; dayOfWeek is 0 = Sunday … 6 = Saturday and slot n covers hours [n×4, (n+1)×4) — e.g. slot 2 is 8:00–12:00 — both in the organization's timezone. An empty list names its reason (NOT_ENOUGH_DATA, NO_RELIABLE_SLOTS, ALL_SLOTS_OCCUPIED: too little history, no slot with 3+ samples, or every slot in the horizon already taken) and no time is invented: tell the user rather than guessing.

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

Input Schema

NameRequiredDescriptionDefault
fromNoEarliest ISO-8601 instant to suggest (default now). A date without a time means the start of that day in the organization's timezone; a past value is treated as now; one beyond the furthest schedulable date is refused.
countNoHow many times to suggest (1-10, default 5)
platformNoRestrict to one platform
organizationIdNoOrganization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one.
platformConnectionIdNoRestrict to one connected account (id from list_platform_connections) — use this when the organization has several accounts on the same platform. Its platform wins over `platform`; a different one is refused.

Output Schema

NameRequiredDescriptionDefault
basisNoThe platform/account filter and the history the slots came from
reasonNoWhy suggestions is empty: NOT_ENOUGH_DATA | NO_RELIABLE_SLOTS | ALL_SLOTS_OCCUPIED; null otherwise
timezoneNoIANA zone the slots are in
horizonEndNoExclusive
suggestionsNo
horizonStartNo
notEnoughDataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "YOUTUBE",
      -  "PINTEREST",
      -  "FACEBOOK",
      -  "INSTAGRAM",
      -  "TIKTOK",
      -  "BLUESKY",
      -  "MASTODON"
      -]New value: +[
      +  "YOUTUBE",
      +  "PINTEREST",
      +  "FACEBOOK",
      +  "INSTAGRAM",
      +  "TIKTOK",
      +  "BLUESKY",
      +  "MASTODON",
      +  "TWITTER"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/non-destructive; the description adds substantial context beyond that — the 14-day horizon, the automatic skipping of already-occupied slots, and the three named empty-list reasons (NOT_ENOUGH_DATA, NO_RELIABLE_SLOTS, ALL_SLOTS_OCCUPIED) with their thresholds (3+ samples). It also guarantees no fabricated times, which is exactly the kind of behavioral contract an agent needs.

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 core promise, then progressively adds handoff, return-field decoding, and failure modes. Dense but nearly every clause carries information; the parenthetical slot-hour examples are helpful rather than padding, though the single block paragraph could be broken for scanability.

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?

An output schema exists, yet the description still supplies the interpretive keys an agent needs (slot-hour mapping, dayOfWeek encoding, per-suggestion engagement/sample count) plus empty-result semantics. For a zero-required-parameter suggestion tool, nothing material is left unexplained.

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?

Schema description coverage is 100%, so the schema already documents all five parameters including timezone handling for `from` and the platform-vs-platformConnectionId precedence. The description's added detail (dayOfWeek 0=Sunday, slot n = hours [n×4,(n+1)×4)) concerns returned values rather than input semantics, so it adds little on the input side 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?

States a specific verb (suggest) and resource (concrete upcoming posting times) with explicit provenance — the organization's own best-performing slots over the next 14 days. This is clearly distinguishable from analytics siblings like get_analytics_insights or get_top_posts, which report past data rather than propose future publish times.

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?

Explicit downstream routing: 'Pass a suggestion's scheduledAt straight to create_post or reschedule_post', and explicit failure handling ('tell the user rather than guessing'). What is missing is an upfront when-to-use statement versus analytical siblings, but the handoff guidance is concrete and actionable.

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