Skip to main content
Glama
Swipe Smart MCP

Swipe Smart MCP

by afzalmukhtar

delete_transaction

Permanently remove a specific transaction record by its numeric ID to correct or clean up logged spending data.

Instructions

Permanently removes a specific transaction record from the database.

Args:
    transaction_id (int): The unique numeric ID of the transaction (found via 'get_recent_transactions').

Returns:
    str: Success or error message.

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": {
      "transaction_id": "<transaction_id>"
    },
    "name": "delete_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
transaction_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the key trait that deletion is permanent, but it says nothing about permissions, whether dependent records are affected, error conditions such as a nonexistent ID, or whether any recovery is possible — significant gaps for a destructive mutation.

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?

The first sentence is front-loaded and does the heavy lifting. The Args/Returns blocks are mildly redundant given the full schema and the presence of an output schema, but they are brief and the rest of the text contains no filler.

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 one-parameter tool this covers the basics, but it is a destructive operation with no annotations and no stated safety or failure semantics. The mention of permanence and a success/error return are helpful yet insufficient for an agent to reason about consequences before invoking it.

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 0% for the single parameter, so the description must compensate. It does add real meaning by stating the ID is numeric and discoverable via 'get_recent_transactions', but it gives no format constraints or failure behavior for invalid IDs, leaving the parameter only partly specified.

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 leads with a specific verb and effect ("Permanently removes") plus the exact resource ("a specific transaction record from the database"), which unambiguously separates it from siblings like get_transactions or add_transaction. It stops short of naming an alternative, but the permanence qualifier makes the operation's character clear.

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?

Usage is only implied: the agent learns that transaction_id comes from 'get_recent_transactions', which indirectly tells it this tool is for a known transaction. There is no guidance on when not to delete, whether a confirmation step is expected, or what to do if the ID is stale, so the agent must infer the surrounding workflow.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.