Skip to main content
Glama

MagicON RF Design Engines

Design a patch antenna or array

design_patch_antenna
Read-only

Design a rectangular microstrip patch antenna (and, when both nx and ny are given, a uniform planar array of it) using the Balanis cavity/transmission-line + array-factor model — the SAME engine behind POST /api/antenna/patch/design and the Guided Phase IV antenna panel. The substrate (dk/df/h) derives from the latest solved stackup's outer prepreg dielectric unless dk/df/h_mm are given explicitly. Returns patch dimensions, resonance/bandwidth/gain, and (for an array) beamwidths, pattern cuts, and a grating-lobe check. The designed gain auto-applies to the chain's antennaGainDbi (compliance/SAR) unless apply_gain=false.

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": {
      "frequency_ghz": "<frequency_ghz>",
      "user_request": "<user_request>"
    },
    "name": "design_patch_antenna"
  }
}

Input Schema

NameRequiredDescriptionDefault
dfNoManual substrate loss tangent override.
dkNoManual substrate dielectric constant override.
nxNoArray elements along x (width). Requires ny.
nyNoArray elements along y (length). Requires nx.
h_mmNoManual substrate height (mm) override.
materialNoSubstrate material NAME the user gave (e.g. 'FR4', 'FR408', 'RO4350B'). The server resolves Dk/Df — the catalog for a branded grade, a nominal value for generic 'FR4' — and assumes a standard thickness, disclosing both. Pass this instead of dk/df when the user names a material rather than numbers; do NOT invent dk/df yourself.
apply_gainNoAuto-apply the designed gain to the chain's antennaGainDbi. Default true.
spacing_x_mmNoExplicit x-axis element spacing (mm); wins over spacing_lambda.
spacing_y_mmNoExplicit y-axis element spacing (mm); wins over spacing_lambda.
user_requestYesRequired: the end user's own words that prompted this call, verbatim. A figure not in them or in an earlier result is asked of the user (MCP elicitation), or refused.
frequency_ghzYesTarget resonant frequency f0 (GHz). Required.
steer_phi_degNoBeam-steer azimuth angle (deg), default 0.
spacing_lambdaNoArray element spacing as a fraction of lambda0 (default 0.5).
steer_theta_degNoBeam-steer elevation angle (deg), default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / user_request / description
      Previous value: -"The end user's own words that prompted this call, verbatim. Used to verify that the figures you pass were stated by your user rather than inferred. Omit it and the results will be labelled caller-asserted."New value: +"Required: the end user's own words that prompted this call, verbatim. A figure not in them or in an earlier result is asked of the user (MCP elicitation), or refused."
    • changedInput schema / required
      Previous value: -[
      -  "frequency_ghz"
      -]New value: +[
      +  "frequency_ghz",
      +  "user_request"
      +]
  2. Added

TDQS

A3.9/5.0
Behavior2/5

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

The description is behaviorally rich — it discloses substrate derivation precedence, the returned quantities (dimensions, resonance/bandwidth/gain, beamwidths, pattern cuts, grating-lobe check), and the gain auto-apply side effect. However, that auto-apply writes to the chain's antennaGainDbi, which is a state mutation while annotations declare readOnlyHint=true; the description therefore contradicts the declared safety profile rather than merely supplementing it.

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?

Three sentences, front-loaded with the core action and model, then substrate sourcing, then return values and the side effect. Dense but every clause carries information; the endpoint/panel reference is the only mildly expendable detail.

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 14-parameter design tool with no output schema, the description covers inputs sourcing, outputs, and the state side effect, which is close to sufficient. The main gap is that the readOnlyHint conflict is left unresolved, so an agent cannot tell whether the gain application is a real mutation or a session-local annotation.

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 already 100%, but the description adds real precedence semantics the schema cannot express: material-vs-dk/df/h resolution order, the nx/ny pairing requirement, and the apply_gain default. It does not explain spacing_x_mm vs spacing_lambda precedence or steering angles, which the schema covers but the description leaves implicit.

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?

States a specific verb and resource ('Design a rectangular microstrip patch antenna ... uniform planar array of it'), names the underlying model (Balanis cavity/transmission-line + array-factor), and ties it to a concrete endpoint and UI panel. An agent can distinguish this from design_rf_chain or run_planar_filter without opening the schema.

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?

Gives clear conditional guidance: array mode only 'when both nx and ny are given', substrate derived from the latest solved stackup 'unless dk/df/h_mm are given explicitly', and gain applied 'unless apply_gain=false'. It does not explicitly route against sibling tools (e.g. when to prefer design_rf_chain or run_stackup_solver first), so it stops short of full when/when-not coverage.

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