Skip to main content
Glama

Solve the on-axis magnetic field of an air-core solenoid.

solenoidField

Solve the on-axis magnetic field of an air-core solenoid.

The identical function behind the /lab/solenoid table. Returns the centre field per amp-turn and at the requested turns and current, the on-axis profile out to three half-lengths, the span over which the field holds to within 1% and 5% of its centre value, the field at the coil mouth as a fraction of the centre, how far the infinite-solenoid shortcut mu0nI overstates the answer, and the turn count below which the closed form should not be used on this geometry. Dimensions are in millimetres. The field is exactly linear in turns x current, so only that product changes the answer.

Every result carries provenance.canonicalUrl — the published page for these exact inputs, or the lane hub when they are off the published grid.

Input Schema

NameRequiredDescriptionDefault
turnsNoNumber of turns. Defaults to 1, which is what the published pages state (their figures are per amp-turn). The field is exactly linear in turns x current.
lengthYesWinding length along the axis, in millimetres.
currentNoWinding current in amperes. Defaults to 1. Only the product of turns and current changes the answer.
diameterYesMean winding diameter in millimetres.

Output Schema

NameRequiredDescriptionDefault
inputsYesThe parsed inputs, echoed back with defaults filled in.
resultYesThe solved analysis. Shape is per-tool.
licenseYes
provenanceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it declares units (millimetres), the exact linearity law ('the field is exactly linear in turns x current, so only that product changes the answer'), and the provenance behavior including the off-grid lane-hub fallback. It does not state that the call is a pure/deterministic computation with no side effects, but nothing misleading is present.

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?

The description is dense but front-loaded with the purpose, then the returned quantities, then the one genuinely non-obvious behavioral fact (provenance.canonicalUrl). The long enumeration of return quantities partially duplicates the existing output schema, which is the only real slack.

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?

For a four-parameter physics solver with two required inputs, all ranges, and an output schema, the description supplies the missing context an agent needs: units, the turns×current invariance, geometry applicability, and the validity caveat for the closed form. Because an output schema already exists, its detailed return enumeration is redundant rather than necessary, keeping this from a 5.

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 100%, so the schema already documents turns, current, length and diameter including defaults and the turns×current linearity. The description reinforces the millimetre units and the linearity rule but adds no new parameter-level syntax or format beyond what the schema provides, so baseline 3 applies.

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 opens with a precise verb+resource: 'Solve the on-axis magnetic field of an air-core solenoid,' and anchors it to a concrete artifact ('the identical function behind the /lab/solenoid table'). The sibling tools (biquadDesign, gaussianBeam, roomModes, etc.) occupy entirely different domains, so there is no ambiguity to disambiguate.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the agent can infer you call this when you need an on-axis solenoid field, and the 'closed form should not be used below this turn count' caveat is embedded in the returned data rather than the guidance. There is no explicit when-to-use/when-not statement and no named alternative or prerequisite.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources