Skip to main content
Glama

attach_files

Put uploaded files on a row: the last step after start_upload and the PUT. Adds to the row's attachment cell, keeping what is there; nothing here removes or replaces a file. Name each upload by upload_id, on a row of the table it was started for (e.g. the row_id append_rows returned). filename renames it on this row. A file already there under that name returns in already_attached, so repeating is safe. Each file gets a file_id.

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": {
      "table_id": "<table_id>",
      "row_id": "<row_id>",
      "files": "<files>"
    },
    "name": "attach_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesThe uploads to add.
row_idYesThe row's `row_id`: from `append_rows` for a row you just added, `describe_table` sample rows, or `_row_id` selected in `run_sql`.
table_idYesThe table the upload was started for (`tab-…`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing additive, non-destructive semantics ("keeping what is there; nothing here removes or replaces a file"), idempotency ("A file already there under that name returns in `already_attached`, so repeating is safe"), and the returned `file_id`. These are exactly the traits an agent needs to decide whether a retry is safe, which the readOnly/destructive hints alone do not convey.

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-loads the core action, then the pipeline position, then behavior, then parameters. Dense but each clause carries information; the backtick-heavy phrasing is slightly busy but not padded.

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 3-parameter mutation with no output schema, the description covers prerequisites, non-destructive behavior, idempotency, and the two meaningful response fields (`already_attached`, `file_id`). It does not discuss failure cases such as a mismatched `table_id`/`upload_id`, but nothing essential to calling it correctly is missing.

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 `upload_id`, `filename`, `row_id`, and `table_id`, including where each value comes from. The description largely restates those semantics in prose (filename renames on this row, upload_id from start_upload, row_id from append_rows) and adds no format or edge-case detail beyond 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?

States a specific verb and resource ("Put uploaded files on a row") and immediately locates it in a pipeline relative to named siblings: the last step after `start_upload` and the PUT. An agent can distinguish it from `append_rows` and `start_upload` without opening any schema.

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?

Gives clear when-to-use context: only after an upload has been started and its bytes sent, and only on a row of the table the upload was started for. It also implies the safe-repeat case. It does not name a removal/replacement alternative, but no such sibling is established in the supplied context.

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