Skip to main content
Glama
grammy-mcp
by louietyj

repostStory

Repost a story from one managed business account to another using the same bot. Use it to share bot-posted stories between business accounts with the can_manage_stories right.

Instructions

Reposts a story on behalf of a business account from another business account. Both business accounts must be managed by the same bot, and the story on the source account must have been posted (or reposted) by the bot. Requires the can_manage_stories business bot right for both business accounts. Returns Story on success.

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": {
      "business_connection_id": "<business_connection_id>",
      "from_chat_id": "<from_chat_id>",
      "from_story_id": "<from_story_id>",
      "active_period": "<active_period>"
    },
    "name": "repostStory"
  }
}

Input Schema

NameRequiredDescriptionDefault
from_chat_idYesUnique identifier of the chat which posted the story that should be reposted
active_periodYesPeriod after which the story is moved to the archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400
from_story_idYesUnique identifier of the story that should be reposted
protect_contentNoPass True if the content of the story must be protected from forwarding and screenshotting
post_to_chat_pageNoPass True to keep the story accessible after it expires
business_connection_idYesUnique identifier of the business connection

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this is a non-destructive write with open-world reach, so the description's real value is the authorization and provenance constraints it discloses (shared bot ownership, bot-authored source story, required business bot right) and the stated success return of Story. It does not cover failure modes or what happens to the original story.

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?

Three tight sentences: action and scope first, then preconditions and permissions, then the return value. Nothing is redundant and the most important constraints are front-loaded.

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 six-parameter write tool with no output schema, the description supplies the permissions, provenance constraints, and the return type an agent needs before calling. It leaves out error behavior and any effect on the source story, which would round it out fully.

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 coverage is 100%, with each field's meaning including the exact allowed active_period values already documented in the schema. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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 gives a specific verb and resource ('Reposts a story') plus a precise scope: from one business account to another, both bot-managed. That scope distinguishes it from the plain posting/editing siblings without needing to name them.

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 clearly states the preconditions for use: both accounts must be managed by the same bot, the source story must have been posted or reposted by the bot, and the can_manage_stories right is required on both. It does not explicitly route the agent to an alternative such as postStory for new content, so it stops short of full when/when-not guidance.

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

Deploy Server

Other Tools