Skip to main content
Glama

femm_eval

Evaluate a single line of MicroPython in FEMM to query model data or compute values, returning the parsed result while preserving variables across calls.

Instructions

Evaluate ONE LINE of MicroPython inside FEMM and return its value (tab-separated reply parsed to numbers/lists). Statements return null; expressions return their value. A newline is rejected: for multi-line code use femm_run_script. Examples: 'mo_getpointvalues(0,0)[1]', 'mi_getboundingbox()', '[mo_getgapb("AGE",a)[0] for a in range(0,90,10)]'. Variables persist between calls in the same session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionNomain
expressionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are present, so the description carries the full burden and does well: it discloses the return convention ('tab-separated reply parsed to numbers/lists'), that statements yield null while expressions yield values, the one-line constraint, and that variables persist per session. Missing only error/failure behavior and any auth or side-effect notes.

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?

Front-loaded with the core action, then constraints, then concrete examples. Every sentence carries information; the worked examples ('mo_getpointvalues(0,0)[1]') are genuinely useful rather than filler.

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

Completeness4/5

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

No output schema exists, and the description covers return shape, statement-vs-expression semantics, and the session persistence model, so an agent can call it correctly. The main residual gap is the 'session' parameter's semantics, which neither schema nor description explains.

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

Parameters3/5

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

Schema description coverage is 0% for two parameters. The description implicitly clarifies 'expression' (one line, newline rejected) but never explains the 'session' parameter, its meaning, its default, or how sessions relate across calls beyond 'variables persist between calls in the same session.' Partial compensation for a real coverage gap.

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?

Specific verb+resource: 'Evaluate ONE LINE of MicroPython inside FEMM and return its value.' It distinguishes itself from siblings both by language ('MicroPython' vs the Lua sibling) and by naming femm_run_script as the multi-line alternative.

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?

Explicit when-not guidance: 'A newline is rejected: for multi-line code use femm_run_script.' This routes the agent cleanly. It does not, however, address the other plausible alternatives (femm_call, femm_run_lua, femm_api_get), so the routing picture is not fully closed.

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

Deploy Server

Other Tools