Skip to main content
Glama
Soham-Donode

data-analysis-agent

by Soham-Donode

undo_last_operation

Revert the last cleaning action on your dataset session to restore prior data state. Specify the number of recent operations to roll back.

Instructions

Revert the last N mutating cleaning operations on the dataset session using generic undo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepsNo
session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  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?

There are no annotations, so the description carries full responsibility for disclosing behavior. It only restates that cleaning operations are reverted, without mentioning side effects, risks, session-state requirements, irreversibility, or whether the undo stack persists across saves.

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?

The description is a single front-loaded sentence with no filler. It states the action, scope, and mechanism concisely, making it easy to scan.

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?

For a mutating tool with no annotations and no schema-level parameter descriptions, this description is thin. It leaves unanswered questions about prerequisites, undo limitations, and why an agent should select this tool over restore_session.

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%, but the wording maps "N" to the steps parameter and "dataset session" to session_id. This adds some meaning over the bare schema, though it never explicitly names the parameters or explains their constraints.

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 identifies a specific action (revert), a target (the last N mutating cleaning operations on a dataset session), and a mechanism (generic undo). It is clear enough to understand what the tool does, though it does not explicitly distinguish itself from the sibling restore_session.

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 phrasing implies this tool should be used after mutating cleaning operations, since it reverses them. However, it gives no explicit guidance about when not to use it and does not mention alternatives like restore_session or get_transformation_history.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Soham-Donode/data-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server