Skip to main content
Glama
This connector has been deprecated

This connector has been replaced by https://glama.ai/mcp/connectors/io.phas/phasio

import_write

Destructive

Import historic data into Phasio: companies, contacts, addresses, parts with their files, quotes and orders, and the history of an order: routings, production, shipments and messages. You resolve every ambiguity yourself: find existing rows with the query tools and name them {"id": "..."}; give each operation a key (the item's id in the source system) and name rows of this or an earlier import {"ref": ""}. Add operations in dependency order (a company before its address, a part before its order, an order before its production, shipments and messages). The user reviews each operation before the approval. Give an operation a note when the user must know why: for example why you matched an existing row, or what you assumed for a missing value. Workflow: action=create (title) -> action=add (planId, operations [{key, op, args, note?}], in parts; the same key replaces an operation) -> after the last add, action=split (planId): a large plan becomes a queue of batches, each a plan with its own planId, run in order; a small plan stays as it is -> action=dry_run (planId); a dry run splits a large plan on its own, keeps batch 1 under the planId and tests batch 1 only -> fix the errors with add or remove (planId, keys) and run again -> when the dry run has no errors, ask the user to review, approve and apply the plan in Phasio (Imports); you cannot approve or apply -> when the status is APPLIED (import_read action=plan), upload each file: POST a multipart form with the part "file" to its uploadUrl, with your bearer token. Upload ONE file at a time and wait for the answer; each CAD file starts an analysis. The limit is 20 uploads a minute; on HTTP 429 wait one minute. Only the user can undo an applied plan, in Phasio (Imports); you cannot undo. An undo is refused after the first file of the plan is uploaded: ask the user to confirm the applied plan before you upload. Batches: the answer of a batch names its queue and the batch whose turn it is (turn). Work only on the batch whose turn it is: dry-run it and fix it with add or remove on its own planId (a batch takes at most a tenth more operations than the batch size, room for fixes: IMPORT_BATCH_FULL); a later batch that names rows of an earlier one fails its dry run until the user applied that batch. import_read action=operations describes the args of each operation.

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": {
      "action": "<action>"
    },
    "name": "import_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
keysNo
titleNo
actionYes
planIdNo
operationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / operations / items / additionalProperties
      Added value: +false
    • addedInput schema / properties / operations / items / properties / args / additionalProperties
      Added value: +{}
    • addedInput schema / properties / operations / items / properties / args / properties
      Added value: +{}
    • addedInput schema / properties / planId / format
      Added value: +"uuid"
    • addedInput schema / properties / planId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds substantial context beyond them: undo is user-only and is refused once the first file of a plan is uploaded, the agent cannot approve or apply, uploads are rate limited to 20/minute with an HTTP 429 wait of one minute, one file at a time with a CAD analysis per file, batch size plus ~10% fix room (IMPORT_BATCH_FULL), and that a later batch referencing an earlier one fails until that batch is applied. This is far richer than the annotation set.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is a dense run-on block with arrow chains and mid-sentence asides; workflow steps, batching rules, upload procedure, and undo constraints are interleaved rather than separated. Nearly every sentence carries information, but the presentation makes it hard to scan under time pressure, which is the one place this definition leaks value.

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 five-parameter, multi-stage destructive tool with no output schema, the description covers the lifecycle, user-approval handoff, error-repair loop, batching, and rate limits. What it does not spell out is the shape of the add/dry_run responses (error listing) beyond 'the answer of a batch names its queue and the batch whose turn it is', so an agent must inspect results rather than knowing what to expect.

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 description coverage is 0%, so the description carries the full load, and it does most of it: it maps each action to its inputs (create takes title; add takes planId plus operations of {key, op, args, note?}; remove takes planId and keys; split/dry_run take planId) and defines the meaning of key ('the item's id in the source system'), ref ('<key>' of this or an earlier import), note, and the replace-on-duplicate-key rule. It stops short of describing the op vocabulary and args shapes, delegating those to import_read action=operations, which is a deliberate pointer but leaves a gap the agent must go elsewhere to fill.

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?

Opens with a concrete verb and an enumerated resource list: 'Import historic data into Phasio: companies, contacts, addresses, parts with their files, quotes and orders' plus order history. The scope is unmistakably a bulk write/import, which separates it from the read-only sibling import_read (explicitly referenced for plan status) and from save/query.

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 state machine -- action=create -> add -> split -> dry_run -> fix with add/remove -> user approves in Phasio -> upload files -- with the conditions that select each step. It also names what the agent must NOT do (cannot approve, apply, or undo) and how to behave in a batch queue ('work only on the batch whose turn it is'), which is exactly the when/when-not guidance an agent needs.

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