Skip to main content
Glama

Edit a post

edit_post
Destructive

Change a post's words on a channel they run. Only when they ask. A card they tap unless this app may publish there. Delete and comments: more_tools.

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": {
      "postId": "<postId>",
      "text": "<text>"
    },
    "name": "edit_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo"publish" (default) edits now when allowed, else a card; "draft" always a card.
textYesThe post's new words (≤ 1000 characters).
postIdYesFrom list_posts. Example: "Ab12Cd34Ef56Gh78"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "itemId": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "note": {
      -      "type": "string"
      -    },
      -    "postId": {
      -      "type": "string"
      -    },
      -    "status": {
      -      "enum": [
      -        "done",
      -        "draft",
      -        "draft_exists",
      -        "duplicates",
      -        "refused"
      -      ],
      -      "type": "string"
      -    },
      -    "url": {
      -      "type": "string"
      -    },
      -    "why": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "required": [
      -    "status",
      -    "postId",
      -    "why",
      -    "itemId",
      -    "url",
      -    "note"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already flag the operation as destructive, non-idempotent, and open-world. The description adds useful behavioral context beyond that: edits happen only on user request and may produce an approval card unless the app is allowed to publish directly. It does not explicitly state that the existing post text is overwritten.

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 front-loaded and free of filler, with each clause carrying operational meaning. The telegraphic fragments, especially "A card they tap unless this app may publish there," are concise but slightly obscure.

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 three-parameter mutation tool with full schema coverage and destructive/non-idempotent annotations, the description covers purpose, user-request gating, approval behavior, and alternatives. The main omission is an explicit statement that the edit replaces existing text, but the annotation set carries the safety signal.

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 postId, text, and mode are already documented in the schema. The description adds no additional parameter-level meaning such as postId sourcing or mode selection guidance, so it sits at the baseline.

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 states a specific verb and resource: "Change a post's words," and scopes it to "a channel they run." It also distinguishes the tool from delete and comment operations by routing those to more_tools, so an agent can separate it from sibling actions.

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?

"Only when they ask" gives a clear usage condition, and "Delete and comments: more_tools" explicitly routes related but different actions elsewhere. It does not explain when to choose draft versus publish mode, though that distinction is documented in the schema.

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.