Skip to main content
Glama

postprocess

Trigger Medusa to scan a staging directory and move matched episodes into show folders, clearing files stranded after a failed automatic run. Use the Medusa-container path.

Instructions

Trigger Medusa manual post-processing on a directory.

Scans directory (a download/staging folder) and moves matched episodes into their show folders. Reuses Medusa credentials from MEDUSA_URL / MEDUSA_API_KEY. Use this to clear files stranded in staging after a failed auto-post-process (e.g. a mis-named release that the download handler bailed on).

IMPORTANT: directory is interpreted by MEDUSA CORE, so it must be the path as seen inside the Medusa container (e.g. /data/medusa), NOT the path visible from the Hermes container.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
directoryNoMedusa-container path to scan (default /data/medusa)./data/medusa
process_typeNo'auto' (guess), 'manual' (use names), 'failed'.auto
force_replaceNoOverwrite existing episode files.
process_methodNo'copy' or 'move'.copy

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

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 burden. It discloses that files are moved, credentials are reused from MEDUSA_URL/MEDUSA_API_KEY, and directory is interpreted by Medusa core rather than the Hermes container. This is meaningful trading beyond the input schema.

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?

The description is compact yet complete: purpose, action, use case, credential reuse, and the critical path caveat. The important warning is explicitly flagged with 'IMPORTANT', and no sentence is wasted.

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?

All four parameters are documented in schema, return shape is covered by output schema, and the free-text description supplies the missing behavioral and practical context: when to use, the container-path requirement, and the file-moving consequence. Nothing critical is missing.

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 baseline is 3. The description adds real value for the key parameter by clarifying that directory must be the container-side path, and it connects the use case to the failed/auto-post-process flow, which maps to process_type.

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?

Description uses a specific verb-resource pair and explains the actual operation: scan a directory and move matched episodes into show folders. It clearly distinguishes this from the sibling tools, none of which focus on Medusa post-processing.

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?

The description gives an explicit scenario: clear files stranded in staging after a failed auto-post-process, with a concrete example. It does not enumerate when-not-to-use or name a sibling alternative, so it falls short of a 5.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cpxazn/mcp-medusa'

If you have feedback or need assistance with the MCP directory API, please join our Discord server