Skip to main content
Glama

agentic_plex_workflow

Executes complex Plex requests by chaining multiple tool calls and iterating on results until the requested media task is completed.

Instructions

Multi-step Plex workflows via FastMCP sampling with tool execution (SEP-1577).

The model chooses plex_* tool calls; the server runs them and feeds results back until the model returns a final text answer or max_iterations is reached.

Return Format

ToolResult with content: {"success": bool, "result": {"final_output": str, "iterations": int, "executed_tools": list}}

Examples

await agentic_plex_workflow(workflow_prompt="Show me my movie libraries", available_tools=["plex_library"])

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_iterationsNoMaximum sample_step rounds (default 8).
available_toolsYesTool names registered on this server (e.g. plex_library, plex_search, plex_media).
workflow_promptYesNatural-language goal (e.g. 'List movie libraries, then search for Nolan films').
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses the iterative execution pattern, the max_iterations limit, and the exact return format (ToolResult with success, final_output, iterations, executed_tools). This adds meaningful context about the tool's behavior, though it does not detail side effects of the executed sub-tools.

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 well-structured with headers for the mechanism, return format, and example. Every sentence earns its place, and it remains compact despite covering multiple aspects.

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?

For a complex workflow-orchestration tool, the description covers purpose, execution flow, termination criteria, return format, and a realistic example. The absence of an output schema is compensated by the explicit return-format section, making it sufficient for an agent to invoke correctly.

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?

All three parameters are fully described in the schema (100% coverage). The description adds interaction context by explaining how workflow_prompt and available_tools drive the tool-selection loop and by providing a concrete code example that demonstrates parameter usage.

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 clearly states 'Multi-step Plex workflows via FastMCP sampling with tool execution' and explains the loop of the model selecting plex_* tools and the server executing them. This specific verb+resource description distinguishes it from sibling tools, which are individual operations (e.g., plex_library, plex_search).

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 explicitly describes the orchestration mechanism and provides an example (workflow_prompt='Show me my movie libraries'), implying use for complex multi-step queries. However, it does not explicitly state when NOT to use it (e.g., for single-step actions use the specific plex_* tool directly), so it lacks exclusions.

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

Install Server

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/sandraschi/plexmcp'

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