Skip to main content
Glama

Replace a document you own

heystack_edit_document
Destructive

Replace a document you own. Requires MCP 2026-07-28.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.7/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 idempotentHint=false, so the safety profile is covered elsewhere. The description contributes the ownership prerequisite, which is genuinely useful, but stays silent on whether the previous content is recoverable, whether replacement is total or partial, and what "Requires MCP 2026-07-28" actually constrains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the operative statement, so there is little waste. But the second sentence is an unexplained protocol-version requirement that consumes half the description without helping the agent decide or invoke correctly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a destructive, zero-parameter tool with no output schema, and the description leaves the core mechanics unstated: how the document is targeted, whether the caller needs a specific scope or token, and what the caller gets back. The ownership note is the only substantive addition, so the definition is thin for a destructive operation.

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?

With zero declared parameters the baseline would be 4, but the empty schema is precisely the problem here: the schema says nothing about how the target document is selected, and the description does not fill that gap either. The description adds no meaning about document identification or content sourcing.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Replace a document you own" gives a concrete verb and resource, and the ownership qualifier begins to separate it from siblings that work on others' documents. However, it never states what is being replaced with, nor how the target document is identified, so an agent cannot form a full picture of the operation from the text alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

"You own" implies a precondition but is not framed as actionable guidance, and no alternative is named. The most obvious routing decision, this tool versus heystack_suggest_edit for documents the caller does not own, is left entirely to inference.

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