Skip to main content
Glama

delete_cycle

DestructiveIdempotent

Delete a period record, only when the user explicitly asks to remove a specific record. Never delete to "fix" a record: use update_cycle.

SELECTOR: exactly one; id if known, else date (the period's start date, or any date within it). date matching more than one record -> error with candidate IDs to retry with.

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

Input Schema

NameRequiredDescriptionDefault
idNoRecord ID.
dateNoYYYY-MM-DD identifying the period: its start date or any day within it.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"Alternative to id: a date (YYYY-MM-DD) that identifies the period — its start date, or any day within it. Resolves only when exactly one record matches."New value: +"YYYY-MM-DD identifying the period: its start date or any day within it."
    • changedInput schema / properties / id / description
      Previous value: -"Record ID. Alternative to date."New value: +"Record ID."
  2. Changed3 schema fields changed
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "Alternative to id: a date (YYYY-MM-DD) that identifies the period — its start date, or any day within it. Resolves only when exactly one record matches.",
      +  "type": "string"
      +}
    • changedInput schema / properties / id / description
      Previous value: -"Record ID from list_cycle. Required."New value: +"Record ID. Alternative to date."
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds genuinely useful behavior beyond them: the exactly-one selector rule and the ambiguity failure mode that returns candidate IDs for retry. It does not say whether dependent data is removed or what authorization is needed, so it stops short of a 5.

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?

Three short sections, front-loaded with the destructive-use guard before the selector mechanics. Every sentence carries information an agent needs; there is no filler.

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?

An output schema exists, so return values need not be explained, and annotations carry the destructive/idempotent profile. The selector logic and error-recovery path are fully specified. The only gap is what side effects occur beyond the record itself (e.g. cascading removal), which a destructive tool arguably should state.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds real meaning: 'exactly one' makes the two parameters mutually exclusive, 'id if known, else date' defines precedence, and the multi-match error path defines what happens on an ambiguous date. That is semantics the schema alone does not convey.

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 ('Delete a period record') and immediately frames it against the sibling tool update_cycle, so the agent can distinguish destructive removal from correction 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 Guidelines5/5

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

Gives explicit when-to-use ('only when the user explicitly asks to remove a specific record') and an explicit when-not with the named alternative ('Never delete to "fix" a record: use update_cycle'). Nothing is left 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.