Skip to main content
Glama

Material freigeben

share_file

Gibt eine Datei aus den Materialien (z. B. Podcast, Video, Arbeitsblatt) öffentlich frei: Schüler:innen öffnen sie über den Link ohne Login, mit Player bzw. Vorschau. Den Link kann man als QR-Code auf den Bildschirm bringen (widget_action qr). open=false beendet die Freigabe, renew=true erzeugt einen neuen Link (der alte und sein QR-Code gehen dann nicht mehr). Die file_id kommt aus list_files.

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": {
      "file_id": "<file_id>"
    },
    "name": "share_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
openNo
renewNo
file_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false; the description adds the real behavioral facts an agent needs: sharing is public and login-free for recipients, and renew=true makes the previous link and QR code stop working. It does not say whether the call is idempotent or what permissions the caller needs, which keeps it at 4.

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?

One dense paragraph: the primary action and its user-visible effect come first, then mode semantics, then the upstream file_id source. Every sentence carries a distinct fact with no repetition of the title or annotations.

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 the effects of every flag and the public-sharing model. The remaining gap is the return value — presumably the share URL — which an agent must assume in order to pass it to widget_action qr.

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 description coverage is 0%, so the description must carry all three parameters — and it does: file_id's source is named (list_files), open=false is defined as ending the share, and renew=true is defined as minting a new link at the cost of the old one. Only the schema defaults are left implicit.

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 ("Gibt eine Datei aus den Materialien ... öffentlich frei") plus the concrete effect: students open it via link without login. It also names the sibling that supplies the input ("Die file_id kommt aus list_files"), so an agent can tell it apart from list_files and widget_action immediately.

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?

Explains the state-changing modes explicitly: open=false ends sharing, renew=true generates a new link and invalidates the old one plus its QR code. It also routes to the right sibling for the QR step ("widget_action qr"). No explicit when-not-to-use or permission prerequisite, so not a full 5.

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