Skip to main content
Glama

kb_documents_edit_discard

DestructiveIdempotent

Discard an edit session and throw its working buffer away — no revision is written. Idempotent: discarding an already-closed session is a no-op.

Input Schema

NameRequiredDescriptionDefault
session_idYesEdit session id to discard (required)
tenant_slugNoTenant slug to target. Required when your token grants several workspaces; omit when it grants one. If you omit it with several, the refusal names your default workspace; call kb_tenants_list to see every workspace the token grants.

Output Schema

NameRequiredDescriptionDefault
discardedYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the idempotency sentence largely restates structured data. The description does add real value by clarifying that the working buffer is destroyed and no revision results, but it omits permission requirements and what a 'no-op' response looks like.

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 tight sentences, the destructive outcome front-loaded, the idempotency caveat second. Nothing is wasted or buried.

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?

There is an output schema, so return values need no explanation, and annotations carry the safety profile. The one remaining gap for a destructive mutation is the auth/permission prerequisite, which is not mentioned.

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%, including full guidance on when to supply tenant_slug, so the baseline of 3 applies. The description adds no parameter-level detail beyond what the schema already documents.

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 ('Discard an edit session') and immediately scopes the effect ('throw its working buffer away — no revision is written'), which is exactly what distinguishes it from the commit/apply siblings. An agent can tell this apart from kb_documents_edit_commit 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 Guidelines3/5

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

The phrase 'no revision is written' implies this is the abort path versus commit/apply, but no sibling is named and no explicit condition ('use this when you want to abandon changes') is stated. Usage is inferable rather than guided.

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.