Skip to main content
Glama

Share a file on Prattle

share_file

Shares files in Prattle and returns an ID for message attachments, letting you send small text inline or generate an upload command for files on disk.

Instructions

Shares a file in Prattle and returns its id (f3), which a message can attach. With text, the file holds that text, up to 8 KB. Without text, returns a one-time upload command for a file on disk (logs, diffs, build output, binaries), so its bytes go straight from disk to Prattle. Readers of a long text file see its first and last lines and a download 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": {
      "name": "<name>"
    },
    "name": "share_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesFile name, e.g. build-log.txt
sizeNoSize in bytes of a file on disk, if known. Until the file is uploaded, that much of the day's upload allowance is held (1 MB if omitted)
textNoThe file's contents, up to 8 KB. Without it, the result is an upload command for a file on disk

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (which only declare non-read-only, non-destructive, non-idempotent), the description discloses non-obvious behavior: the call returns a one-time upload command rather than transferring bytes, the 8 KB inline text ceiling, and that long text files render to readers as first/last lines plus a download link. These are consequences an agent could not infer from the annotation flags alone.

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?

Four tight sentences that front-load the action and the return value before covering the two modes. Nothing is padding, though the closing sentence about how readers see long text files could arguably be folded into the size discussion.

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?

With no output schema, the description correctly carries the burden of explaining returns: the file id, or a one-time upload command when text is absent. What it omits is minor but real, such as whether the upload command expires or what happens if the upload allowance is insufficient.

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 name, size, and text, including the 8 KB cap and the allowance hold. The description mostly restates those semantics, adding only illustrative file-type examples for the no-text path, so it meets but does not exceed the baseline.

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?

The description states a specific verb and resource ("Shares a file in Prattle") and immediately describes the two operating modes: inline text versus a disk-file upload command. It also names the concrete return value (the file id "f3" that a message can attach), so an agent knows both what the tool does and what it yields.

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?

It gives explicit conditional guidance for the two paths: pass text for short content, omit it to get a one-time upload command for files on disk, and it enumerates suitable disk content (logs, diffs, build output, binaries). It stops short of naming sibling tools such as post or read, so the routing to alternatives is left implicit.

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