Skip to main content
Glama

Create import link

create_import_link
Destructive

Get a link where a data file (CSV, TSV, Excel - anything an Azquo import reads) is IMPORTED into a database, exactly as an upload to /api/importdata imports it, at the same speed. Use it to bulk-load a file when you have no shell, or without handling an API key: the link is the only credential, reaches one database for you, and lasts 60 minutes.

  • A file the USER has: give them url; they open it in a browser and drop the file. The page shows the result.

  • A file you made, with a shell or code sandbox: run curlCommand with -F files=@path for each file. The reply is JSON with each file's result. Each file is imported as it arrives, so the file needs its Azquo header row (or a matching import template) and a name that says where the data came from - the file name chooses how it is read and is written into the provenance of every value.

Returns url, curlCommand, token, expiresInMinutes. Keep token: what each file imported - lines imported and rejected, values and names adjusted, warnings - can be looked up with it afterwards. A slow import is still running: look up what it did rather than sending the file again.

For a scheduled or repeated load, a script posting to /api/importdata with an API key needs no link.

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": {
      "database": "<database>"
    },
    "name": "create_import_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoOptional line shown on the upload page, e.g. which file to drop
businessNoOptional. The business this call is for, by name, e.g. "azquo" - it then runs there whatever business the session is in. Worth giving on writes when you work in more than one business: a new MCP session starts in the login's own business. list_businesses shows the names.
databaseYesDatabase to import into

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructive=true and idempotent=false, but the description goes further: the link is the sole credential, is scoped to one database, expires in 60 minutes, imports each file as it arrives, and requires the file to carry its Azquo header row. It also explains the non-idempotency consequence in practice — "A slow import is still running: look up what it did rather than sending the file again."

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 outcome (the link), then structured bullets that map to the agent's two situations, then returns, then the alternative path. A few clauses are expansive (parenthetical asides about Azquo headers and provenance) but they carry operational meaning rather than filler.

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?

With no output schema, the description still names the return payload (url, curlCommand, token, expiresInMinutes) and tells the agent to retain the token for later status lookups, which is what makes the async behavior usable. Requirements (header row, file naming for provenance) and the credential/expiry model are all covered for a destructive, non-idempotent tool.

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?

Schema description coverage is 100%, so the schema already documents database, business and note; the description adds only indirect meaning ("reaches one database for you", "the file name chooses how it is read"). It never mentions the business override or the note parameter, so it does not exceed the baseline set by the schema.

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?

"Get a link where a data file (CSV, TSV, Excel...) is IMPORTED into a database" states a specific verb and resource, and immediately anchors it to the direct /api/importdata path so the agent knows exactly what the link reproduces. It also implicitly separates the two delivery modes (browser drop vs. curl), which an agent must understand before choosing this tool over a direct import tool.

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?

Explicit when-to-use ("bulk-load a file when you have no shell, or without handling an API key") plus a clear when-not/alternative clause ("For a scheduled or repeated load, a script posting to /api/importdata with an API key needs no link"). The two bullets also route the agent by situation: file the user holds versus file the agent generated in a sandbox.

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