Skip to main content
Glama
This server has been deprecated

Deprecated in favor of fme-mcp: https://github.com/mwjouini/fme-mcp

fme_execute_python

Execute arbitrary Python code inside FME Form's embedded fmeobjects runtime to run custom geoprocessing, data transformation, and automation logic directly within FME workspaces.

Instructions

Execute arbitrary Python code inside FME Form's embedded Python runtime (with fmeobjects).

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": {
      "code": "<code>"
    },
    "name": "fme_execute_python"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
timeout_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.5/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full disclosure burden, and it discloses almost nothing behavioral. 'Arbitrary Python code' hints at open-ended execution but the description never states that code runs unsandboxed with access to fmeobjects and the host environment, what side effects persist, whether failures roll back, or what the response contains. For an arbitrary-code-execution tool this is a serious gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity here reflects under-specification rather than disciplined editing, which keeps it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described. However, this is a high-complexity, high-risk tool (arbitrary code execution, a timeout parameter, an embedded runtime) with no annotations and no parameter documentation, and the description addresses none of the safety, timeout, or execution-scope concerns an agent needs before invoking it.

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

Parameters2/5

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

Schema description coverage is 0% across two parameters, so the description must compensate and does not. It never explains that 'code' is a string body of Python, nor what 'timeout_seconds' (default 120) governs or what happens when it is exceeded. The one phrase present, 'with fmeobjects', is the only semantic hint and it applies to the runtime rather than to any named parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Execute') and resource ('arbitrary Python code') and names the runtime context ('FME Form's embedded Python runtime (with fmeobjects)'). This distinguishes it from all listed siblings, which are workspace, catalog, GIS, and governance tools rather than code execution. It stops short of a 5 only because it does not explicitly contrast itself with any alternative execution path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description offers no guidance on when to use this tool versus fme_run_workspace, ai_suggest_transformations, or other siblings. There are no stated prerequisites, no exclusions, and no indication of when embedded Python is the right choice over the workspace-based tools. An agent must infer the use case entirely from the name.

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