Skip to main content
Glama

cleanup_artifacts

Remove all migration artifacts from ServiceNow, including field maps, transform scripts, staging tables, and data sources, to start a fresh migration setup.

Instructions

Remove all migration artifacts that were created in ServiceNow during the setup phase. This deletes (in safe order): 1. Field maps (sys_transform_entry) 2. Transform scripts (sys_transform_script) 3. Transform map (sys_transform_map) 4. Staging table columns (sys_dictionary) 5. Staging table (sys_db_object) 6. Data source (sys_data_source) 7. REST message (sys_rest_message)

Use this when you want a completely clean slate — for example after a failed migration setup, or when the customer wants to restart with different field mappings.

IMPORTANT: Always discover first (confirmed=false) to show the user exactly what will be deleted. Only delete after they explicitly confirm with "Yes, delete them" or similar.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
platformYesSource platform used during setup
object_nameYesSource object / project key used during setup (e.g. KAN, Account)
staging_tableYesStaging table name (e.g. u_stg_jira_kan)
target_tableYesServiceNow target table (e.g. incident, problem, change_request)
confirmedYesMust be true — user has explicitly confirmed the deletion
Behavior5/5

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

With no annotations provided, the description fully discloses the destructive behavior: deletion order, specific tables affected, and the requirement for explicit confirmation via the confirmed parameter. No contradictions.

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 efficiently structured: a clear purpose statement followed by a numbered list of deleted items, use cases, and an important workflow note. No wasted words.

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?

The description covers the process, prerequisites, and a note on discovery, but lacks information on return values (e.g., success message, count of deleted items). Given no output schema, this gap reduces completeness.

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?

The input schema has 100% description coverage for all five parameters. The description adds workflow context (e.g., importance of confirmed) but does not provide additional semantic details beyond the schema. Baseline 3 is appropriate.

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?

The description clearly states the tool removes all migration artifacts created during setup, listing specific types and order. This verb+resource definition is unambiguous and distinguishes from siblings like cleanup_migration.

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?

The description explicitly states when to use (e.g., after failed setup, restart with different mappings) and provides a workflow: discover first, confirm deletion. This gives clear usage context and exclusions.

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

Install Server

Other Tools

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/pinnintisagarSB/ServiceNow-Dev-MCP'

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