Skip to main content
Glama

Run the free sample

run_sample
Idempotent

Starts the free sample of a migration, with the objects, fields, filters and options saved for it (set_objects, set_fields, set_filter, set_options, or the web steps), and where nothing is saved the objects Shuttio ticks by default and the automatic field mapping. The sample is 5% of the records of each root object (companies, people, deals: 10 to 1,000 of each, picked at random) and, of every other object (notes, tasks, calls...), only the records linked to the sampled ones. So a child object holds far fewer than 5%, or than the minimum, of its records, and can hold none (for example 1 of 86 tasks); lists and files are left to the full run. It runs the same checks as the web app's Run sample button. Call it when get_migration says ready_for_sample and the user has said yes to running the sample: it starts at once, with no confirmation code, and WRITES those test records into the user's destination CRM (rollback removes them). If a system is not connected or a check fails, it starts nothing and returns the reason and the URL where the user fixes it. Returns { started, objects, runUrl, next }.

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": {
      "id": "<id>"
    },
    "name": "run_sample"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe migration id start_migration returned, like MIG-8F3C1D92.
objectsNoObject ids from list_objects to sample. Omit for the saved selection, else the defaults.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare write/idempotent/open-world flags; the description goes further by naming the destination CRM as the write target, noting rollback removes the records, disclosing the sampling algorithm (10–1,000 per root object, children only if linked, possibly zero), and sketching the return shape. This is rich context an agent cannot get from the annotations alone.

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?

Front-loaded with the action and then the constraints, but it is a long run of sentences and some asides (e.g. 'for example 1 of 86 tasks') add color without much decision value. It remains readable and earns most of its length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema, the description covers preconditions, side effects, rollback, failure modes, and even a summary of the return object. Nothing needed to call it correctly is missing.

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 schema already documents both parameters; the description still adds resolution logic for the optional 'objects' argument (saved selection, else defaults, else Shuttio's ticked objects and automatic field mapping). It does not explain the 'id' parameter beyond what the schema says.

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?

Specific verb and resource: 'Starts the free sample of a migration.' It immediately distinguishes itself from the full run by stating 'lists and files are left to the full run' and scoping the sample to 5% of root object records.

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 an explicit gating condition ('Call it when get_migration says ready_for_sample and the user has said yes'), notes it starts at once with no confirmation code, and describes failure behavior (nothing starts, reason and fix URL returned). That leaves no ambiguity about when to invoke it.

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.

Resources