Skip to main content
Glama

Migrate an organization's database again

admin_migrate_organization
DestructiveIdempotent

Internal staff only. Migrates and seeds an organization's database. A boot never migrates a customer's database, so run it over each organization on a customer's database after a release, before the next release ships. A failed migration answers its error and leaves the organization's status as it was. Call it without confirm first, put the sentence it answers with to the person, and call again with confirm: true only when they agree.

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": {
      "organization": "<organization>",
      "confirm": "<confirm>"
    },
    "name": "admin_migrate_organization"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYestrue only once the person has agreed to the sentence the unconfirmed call answered with.
organizationYesThe organization's id or slug, as admin_find_organization returned it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds what the annotations cannot — the internal-staff restriction, that a failure returns an error and leaves organization status unchanged, and that the unconfirmed call is a mandatory preview step shown to a person.

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?

Five short sentences, front-loaded with the staff restriction and core action, and each adds actionable information. Phrasing like 'put the sentence it answers with to the person' is slightly awkward but still parses.

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

Completeness4/5

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

For a destructive, gated admin operation with no output schema, it covers prerequisites, timing, failure semantics, and the confirm protocol. It stops short of describing scope of destruction or expected duration, which would be useful for a destructive migration.

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 both parameters are already documented; the description still adds protocol meaning by framing confirm as the second half of a two-step, human-approved flow rather than a simple boolean flag. The added value is contextual rather than syntactic.

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?

States a specific verb pair and resource ('Migrates and seeds an organization's database'), plus the audience restriction ('Internal staff only'), which separates it from org-creation or lookup siblings like admin_create_customer_database_organization and admin_get_organization.

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 explicit timing (after a release, before the next release ships), explicit scope (run it for each organization on a customer's database), the reason a boot won't cover it, and a prescribed two-call protocol with a human approval gate before confirm: true.

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