Skip to main content
Glama

Ask to connect a media folder

connect_media_folder

Asks the user to attach a folder of THEIR OWN source footage to the project — opens a dialog in Frapea with a 'Connect folder' button. Only a human can do this (browser security gesture): tell the user IN YOUR REPLY to click it, then call await_user_action with the returned actionId; on 'granted', get_media will list the folder's files. Use when get_media comes back empty and the user has footage somewhere on their disk. NEVER call it for files YOU made or fetched. The project folder's media/ folder is scanned: any media file placed there joins the pool by itself (within a second, or when the user returns to the tab), with no dialog. reason is shown in the dialog word for word — say which footage you need and what you will do with it, so the user knows what to pick.

Input Schema

NameRequiredDescriptionDefault
tokenYesThe session token `connect` returned. Pass it on every call — it says which browser to drive.
reasonYesOne or two sentences for the dialog, addressed to the user: which folder to pick and why — e.g. 'Pick the folder with your trip clips from Lisbon, so I can cut them into the reel you asked for.'
projectIdYesProject id from get_projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that a browser security gesture requires a human, that a dialog opens with the 'reason' shown word for word, that the call returns an actionId which must be handed to await_user_action, and that 'granted' is what makes get_media list the files. That is the full interaction contract for a non-idempotent, non-destructive side-effecting tool.

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 its human-only constraint, then the follow-up call, the trigger condition, the exclusion, and the no-dialog alternative — each sentence adds a distinct operational fact with no filler.

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?

Even without an output schema, the description explains the return path (actionId → await_user_action → 'granted' → get_media) and the timing of the auto-scan fallback, so an agent knows exactly what to do after calling.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still adds real meaning by stressing that reason is displayed verbatim to the user and should name both the footage and the intended use, and by tying token to the browser-driving session. It stops short of explaining projectId beyond what the schema already says.

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 precise verb+resource ('Asks the user to attach a folder of THEIR OWN source footage') and immediately distinguishes it from siblings by scoping it to human-only, own-footage cases versus add_clips/download_stock_media/get_media. An agent can select it correctly without opening the schema.

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?

Gives an explicit trigger ('Use when get_media comes back empty and the user has footage somewhere on their disk'), an explicit exclusion ('NEVER call it for files YOU made or fetched'), and names the alternative mechanism (drop files into the project's media/ folder and they join the pool automatically).

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