Skip to main content
Glama
grammy-mcp
by louietyj

editStory

Destructive

Edits a story previously posted by a bot for a managed business account, using the required can_manage_stories right. Returns the updated Story on success.

Instructions

Edits a story previously posted by the bot on behalf of a managed business account. Requires the can_manage_stories business bot right. 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>",
      "story_id": "<story_id>",
      "content": "<content>"
    },
    "name": "editStory"
  }
}

Input Schema

NameRequiredDescriptionDefault
areasNoA list of clickable areas to be shown on the story
captionNoCaption of the story, 0-2048 characters after entities parsing
contentYesContent of the story
story_idYesUnique identifier of the story to edit
parse_modeNoMode for parsing entities in the story caption. See formatting options for more details.
caption_entitiesNoA list of special entities that appear in the caption, which can be specified instead of parse_mode
business_connection_idYesUnique identifier of the business connection

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the write/destroy nature is covered. The description usefully adds the authorization requirement and states it returns Story on success, but never says what the edit replaces or whether omitted fields (e.g. caption, areas) are cleared — the key behavioral risk for a destructive edit.

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?

Two short sentences with zero filler: purpose and scope first, then the permission requirement and return value. Nothing is wasted or buried.

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?

For a 7-parameter destructive mutation with nested objects and no output schema, the definition covers purpose, permission and return type, but omits field-replacement semantics and any detail about the returned Story object, which the missing output schema leaves undocumented.

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

Parameters4/5

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

Schema coverage is 100% and every parameter carries its own description, so the schema does the work; the description only clarifies that story_id identifies the bot's own story. The baseline for full coverage is 3, and the added scoping context for story_id is a small plus.

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 and resource ("Edits a story") plus a precise scope: a story "previously posted by the bot on behalf of a managed business account." That scope alone separates it from postStory, repostStory and deleteStory 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 Guidelines3/5

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

Gives a prerequisite ("Requires the can_manage_stories business bot right") and implies the story must already exist and belong to the bot, but offers no explicit when-to-use versus postStory/repostStory/deleteStory or 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