Skip to main content
Glama

execute_python

Run Python code inside Unreal Editor for Fortnite to explore assets, inspect actor classes, and access engine APIs not exposed by other tools.

Instructions

Run arbitrary Python code inside the UEFN editor's unreal module.

Use this to explore the editor when the dedicated tools aren't enough: e.g. browsing content with unreal.EditorAssetLibrary, inspecting Fortnite device/actor classes, or calling APIs not wrapped by other tools.

Args: code: Python source to run. For "statement"/"eval" it must be a single expression/statement; for "file" (default) it can be a full multi-line script. mode: One of "file" (default, runs as a script), "statement" (executes and prints one statement), or "eval" (evaluates one expression and returns its value).

Returns: dict with success (bool), result (the eval'd value or error text as a string), and output (anything printed/logged).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
modeNofile
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses modes, return structure, and constraints (single expression vs multi-line script). However, it does not warn about potential side effects or irreversible changes, which is a notable gap for an arbitrary code execution 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?

The description begins with a one-sentence summary, then gives usage guidance with examples, followed by clearly labeled Args and Returns sections. It is well-structured, front-loaded, and every sentence adds value without unnecessary digression.

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?

Given the tool's complexity (arbitrary code execution), minimal schema, no annotations, and no output schema, the description is complete: it covers what it does, when to use it, parameter values, and the exact return format. There is no missing information needed for correct selection and invocation.

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 compensate. It fully explains both parameters: 'code' with mode-specific constraints, and 'mode' with each valid value ('file', 'statement', 'eval') and its behavior. This goes beyond the raw schema and provides exact semantics.

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 'Run arbitrary Python code inside the UEFN editor's unreal module', using a specific verb and resource. It also distinguishes itself from sibling tools by framing it as a fallback when 'dedicated tools aren't enough', with concrete examples like browsing content and inspecting classes.

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?

Yes, it explicitly says to use this tool when dedicated tools aren't enough and provides examples of appropriate use cases (e.g., calling APIs not wrapped by other tools). This implies dedicated tools are the preferred alternatives for their specific purposes, giving clear when-to-use guidance.

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/dylannalex/uefn-mcp'

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