Skip to main content
Glama

femm_line_integral

Compute line integrals along a polyline contour to extract flux, MMF, force, torque, current, charge, heat flow, or length from solved FEMM models.

Instructions

Line integrals along a contour of straight pieces through [[x, y], ...] (use many points to follow a curve). Magnetics codes: 0 B.n (flux; total, average), 1 H.t (MMF), 2 length (and surface area), 3 stress tensor force, 4 stress tensor torque, 5 (B.n)^2. Electrostatics: 0 E.t, 1 D.n (charge), 2 length, 3 force, 4 torque. Heat: 0 G.t (dT), 1 F.n (heat flow), 2 length, 3 average T. Current: 0 E.t, 1 J.n (current), 2 length, ... Defaults: the first three/four.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codesNo
contourYes
sessionNomain

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose what each result code computes (flux, MMF, force, torque, charge) and how the contour is discretized. However, it omits permissions, prerequisites (e.g., a solved model), and return structure, leaving the behavioral picture incomplete.

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

Conciseness3/5

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

The core definition is front-loaded, but the bulk is a dense multi-domain code table with trailing ellipses and the cryptic 'Defaults: the first three/four' that add parsing difficulty. Information density is high, though structure could be cleaner.

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

Completeness3/5

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

There are no annotations and no output schema, and 3 parameters at 0% schema coverage. The codes and contour are explained adequately for invocation, but the undocumented session parameter and unclear return format leave gaps an agent would need to resolve experimentally.

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 0%, so the description must compensate, and it documents the 'codes' parameter exhaustively per physics domain and explains the contour format and curve-following advice. The 'session' parameter is not mentioned at all, but the two substantive parameters are well covered.

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?

The description states a concrete verb+resource: computing line integrals along a contour of straight pieces, with explicit coordinate format [[x,y],...]. It implicitly contrasts with the area-based femm_block_integral, but never names it, so the sibling distinction is left to inference.

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?

There is no statement of when to choose this tool over alternatives such as femm_block_integral or femm_point_values. The description is a physics-code reference dump rather than usage guidance, so the agent must infer the appropriate context.

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