Skip to main content
Glama

Delete a state entry

delete_state
DestructiveIdempotent

Delete one entry of a state store; with if_version only if it is at that version.

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": {
      "store": "<store>",
      "key": "<key>"
    },
    "name": "delete_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe entry's key.
storeYesThe store's name.
if_versionNoDelete only at this version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/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 safety profile is covered. The description adds genuine behavioral value by explaining that supplying if_version turns the call into a conditional/compare-and-delete. It does not say what happens on a version mismatch (error vs. silent no-op), which is the key remaining unknown for a destructive operation.

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?

A single compact sentence with the resource and the conditional modifier front-loaded and no filler. It is efficient, though the semicolon phrasing is slightly terse for the conditional clause.

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 simple three-parameter destructive tool with full schema coverage and rich annotations, the description covers the essentials. The one material gap is the outcome of a failed version match on a destructive operation, which an agent would want to know before calling.

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 all three parameters are already documented in the schema, including 'Delete only at this version.' The description's if_version clause largely restates that schema text rather than extending it with format or failure semantics; baseline 3 applies.

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

Purpose4/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: deleting a single entry from a named state store. It does not explicitly distinguish itself from siblings like get_state/set_state/list_state, but the verb+scope makes the distinction obvious.

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 clause 'with if_version only if it is at that version' implies the conditional-use case, which is useful. However, there is no explicit when-to-use versus when-not guidance, no mention of the sibling tools, and no stated prerequisite that the key must exist.

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