Skip to main content
Glama

Storiez

Replace post text

edit-post-copy
Destructive

Replaces the stored copy (and optionally the title) of a post with the given text. No AI, no credits. Does not change the destination. A post that is already published keeps the copy that went live.

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": {
      "id": "<id>",
      "text": "<text>"
    },
    "name": "edit-post-copy"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe post ID whose copy to replace
textYesThe full new copy
titleNoOptional new title

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the overwrite risk is structurally known; the description adds real context with 'Does not change the destination' and the rule that an already-published post keeps its live copy. It stops short of saying whether the overwritten copy is recoverable or what the call returns, which matters 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?

Four short clause-like sentences, front-loaded with what is replaced before the caveats. No filler, and each sentence contributes a distinct constraint.

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 with full schema coverage and no output schema, the definition covers scope, side effects, and the published-post edge case. Missing only the response shape and any permission prerequisites, which are minor at this complexity.

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% and all three parameters carry their own descriptions ('The post ID whose copy to replace', 'The full new copy', 'Optional new title'). The description adds only the nuance that title is optional and which parts are replaced, so the baseline 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?

States a specific verb and resource ('Replaces the stored copy ... of a post') and scopes the optional title change. The 'No AI, no credits' clause implicitly separates it from the sibling regenerate-post-text, so an agent can choose between a deterministic overwrite and an AI regeneration 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?

'No AI, no credits' establishes the context for picking this over regeneration, and 'Does not change the destination' rules out an adjacent expectation. It does not explicitly name regenerate-post-text as the alternative or state when-not to edit (e.g. on already-published posts it is pointless), so a small gap remains.

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