Skip to main content
Glama

share_file

Mint a public share token for a file. Returns a url of the form https://trydock.ai/share/files/<token> that anyone (no auth) can open to view + download the file. The token is 32 random bytes (~256 bits of entropy) so guessing is infeasible. Revoke later with revoke_file_share. Editor role required. Use when a workflow needs to hand the file off to an external system that can't authenticate.

Input Schema

NameRequiredDescriptionDefault
slugYesThe workspace slug. Accepts either the bare slug or the org-prefixed form ('my-org/my-workspace') as shown in the dashboard URL.
file_idYesThe file cuid (from list_files).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and largely succeeds: it discloses the security model (no-auth public URL, 32 random bytes / ~256 bits entropy, guessing infeasible), the auth requirement (Editor role), and the revocation path. It does not state whether prior tokens are invalidated, whether the file must live in the given workspace, or any rate limits.

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

Conciseness5/5

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

Front-loaded with the action and payload, then security context, then cleanup, then a usage trigger. Every sentence earns its place; no filler or restatement of the title.

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?

There is no output schema, and the description compensates by specifying the returned `url` shape and its public, view+download semantics. For a two-parameter, non-destructive-token tool this is complete enough to invoke correctly.

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 coverage is 100% and both params (`slug`, `file_id`) are fully documented in the schema, including the org-prefixed slug form and that file_id comes from list_files. The description adds nothing beyond that, so the baseline 3 applies.

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?

Specific verb+resource: 'Mint a public share token for a file', with the exact return artifact (`url` of the form `https://trydock.ai/share/files/<token>`). This clearly separates it from siblings like `upload_file`, `get_file`, `delete_file`, and `share_workspace`.

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 trigger: 'Use when a workflow needs to hand the file off to an external system that can't authenticate.' It also names the counterpart tool `revoke_file_share` for cleanup and states the prerequisite ('Editor role required'), so both directions of the workflow are covered.

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.