Skip to main content
Glama

verify_migration_counts

Verify record counts match across source, staging, and target tables to confirm no data loss or duplication during migration.

Instructions

Verify that record counts match across all three layers of a migration: Source (Jira / Salesforce) → Staging table → Target table

Checks: - How many records exist in the source - How many rows landed in the staging table - How many records were created in the target table - Whether staging count matches source (no records lost in transit) - Whether target count matches staging (no records lost in transform) - Whether there are MORE records in staging or target than in source (duplicates)

Use this after a full migration to confirm data integrity. Also useful after a test migration to see how many records were actually moved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
platformYesSource platform (salesforce, jira, or any registered connector)
object_nameYesComma-separated Jira project keys or Salesforce object name (e.g. "EMAL,KAN" or "Account")
staging_tableYesStaging table name (e.g. u_stg_jira_kan)
target_tableYesServiceNow target table (e.g. incident, problem, change_request)
project_fieldNoStaging/target field that holds the project key for scoped queries (e.g. u_jira_project). Leave blank to count all rows.
filterNoOptional JQL (Jira) or SOQL WHERE clause (Salesforce) to scope the source count
Behavior3/5

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

No annotations are provided, so the description carries full burden. It describes the checks (comparing counts, detecting duplicates) and implies a read-only operation ('verify'), but it does not explicitly state that the tool does not modify data, nor does it mention required permissions or potential side effects. It adds some transparency but leaves gaps.

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 well-structured: a clear header, bulleted list of checks, and usage guidance. It is concise without being terse, and every sentence contributes value. No redundant information.

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 lacks information about the output format. While it lists the checks performed, it does not explain what the tool returns (e.g., a report, a table, a JSON object). With no output schema, this is a notable gap. However, the tool context is otherwise complete for the verification task.

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?

The schema covers all 6 parameters with descriptions (100% coverage). The description adds meaning beyond the schema by explaining how parameters are used in the verification flow (e.g., 'project_field for scoped queries'). This helps understand parameter interactions.

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's purpose: verifying record counts across three layers of a migration (source, staging, target). It lists specific checks, making the action very explicit. This distinguishes it from sibling tools like 'analyze_migration_for_testing' or 'reconcile_migration' by focusing solely on count verification.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The description explicitly states when to use the tool: 'after a full migration to confirm data integrity' and 'after a test migration to see how many records were actually moved'. This provides clear context, though it does not mention alternative tools or explicitly state when not to use it.

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