Skip to main content
Glama
Unilytics MCP Server

Unilytics MCP Server

Official

register_project_file

Records a file in a project for later download from an uploaded S3 key or a public HTTPS URL, storing the original bytes and returning a stable file ID.

Instructions

Record a file in a project, kept byte for byte so it can be downloaded: either one already uploaded (s3_key) or one at a public https link (url). Exactly one of the two.

s3_key: step 2 of the upload, for a file already POSTed to the `uploadUrl` from
upload_file_to_project (a 201); `name` is required with it, a human-readable name (e.g. "Client X
audit deck template").

url: Unilytics downloads the file from the link (PPTX, PPT, XLSX, XLS, DOCX, DOC, PDF, CSV, MD,
TXT, JSON, PNG, JPG, JPEG, GIF, SVG or WEBP, up to 100 MB, redirects followed, public https
addresses only) and stores the original. The type comes from the response (its name, its
Content-Type and the file's own bytes), never from the link alone: a web page, a login page or a
file of another type is refused. content_type and byte_size come from the file and aren't taken
with url; `name` defaults to the file's own name. request_id (a UUID, optional) makes the call
repeatable: a repeat with the same request_id and arguments within 24 hours returns the first
call's file (free) instead of storing it again, and a request_id used for different arguments is
refused. Without it, each call stores a new copy. The result's `file` holds the stored name,
file_type and bytes.

Returns {file_id, name}; the file_id is stable and get_project_file takes it.

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": {
      "project_id": "<project_id>"
    },
    "name": "register_project_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
nameNo
s3_keyNo
byte_sizeNo
project_idYes
request_idNo
content_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.1.2
    • addedInput schema / properties / name / default
      Added value: +null
    • addedInput schema / properties / request_id
      Added value: +{
      +  "default": null,
      +  "title": "Request Id",
      +  "type": "string"
      +}
    • addedInput schema / properties / s3_key / default
      Added value: +null
    • addedInput schema / properties / url
      Added value: +{
      +  "default": null,
      +  "title": "Url",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "project_id",
      -  "s3_key",
      -  "name"
      -]New value: +[
      +  "project_id"
      +]
  2. Addedv1.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only say non-read-only, open-world, non-idempotent, non-destructive; the description goes far beyond by disclosing the download constraints (100 MB cap, redirects followed, https-only), the accepted type list, and refetch-and-validate behavior from bytes rather than link. The request_id dedup semantics (24h window, free repeat, conflict refusal) are exactly the kind of behavior an agent cannot infer from structured fields. The idempotentHint=false annotation is not contradicted, since idempotency is opt-in via request_id.

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?

The purpose is front-loaded and the body is organized as named parameter blocks, so it scans well; nearly every sentence carries operational content. It is nonetheless dense and long for a single tool, with the type list and redirect/size details inline rather than compressed.

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 closes the loop by promising {file_id, name}, noting the stability of file_id, and pointing to get_project_file as the consumer, plus describing the result's `file` fields. For a 7-parameter mutation tool this covers what an agent needs to call it and use the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry all parameter meaning, and it does: s3_key pairs with a required human-readable name, url's name defaults to the file's own name, and content_type/byte_size are explicitly excluded when using url. request_id is defined with its UUID form and its effect. Only project_id is left implicit via the phrase "in a project", a minor residual gap.

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?

"Record a file in a project, kept byte for byte so it can be downloaded" gives a specific verb and resource plus the guarantee that matters, and it immediately splits the operation into its two mutually exclusive modes (s3_key vs url). The references to upload_file_to_project as step 1 and get_project_file as the consumer of file_id make it distinguishable from the surrounding file tools.

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?

It states the selection rule explicitly ("Exactly one of the two") and then explains the workflow condition for each: s3_key is step 2 after a 201 from upload_file_to_project, url is for a public https link. It also tells the agent when request_id is worth supplying (repeat-safe retries within 24h) and what happens without it (each call stores a new copy).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools