Skip to main content
Glama

engineering.bode_magnitude_phase

Read-onlyIdempotent

Calculate Bode magnitude in dB and phase in degrees for a first-order pole or zero transfer function using a corner frequency and evaluation frequency.

Instructions

단일 극점 또는 영점 1차 전달함수의 Bode 크기(dB)와 위상(도)을 구한다. mode='pole'이면 G(jω)=1/(1+jω/ωc), 'zero'이면 G(jω)=1+jω/ωc. corner_freq ωc와 frequency ω는 같은 단위(rad/s 또는 Hz)의 0 초과 Decimal 문자열이며 비율만 쓴다. 유효숫자 30자리. 오용 주의: 극점과 영점이 여러 개인 전달함수는 직접 합산해야 한다.

Input Schema

NameRequiredDescriptionDefault
modeYes
frequencyYes
corner_freqYes

Output Schema

NameRequiredDescriptionDefault
_metaNo서버가 붙이는 영수증(integrity), 엔진, 힌트
traceYes계산 근거(tool, formula, inputs, steps, output)
phase_degYes
magnitude_dbYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and closed-world, so safety is covered. The description adds genuine behavioral context beyond that: the exact transfer-function forms for each mode, scale-invariance (only the ratio ωc/ω is used), and 30-significant-digit precision. Return shape is covered by the output schema.

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

Conciseness5/5

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

Front-loaded with purpose, then formulas, then parameter constraints, then the misuse warning. Dense but every sentence adds necessary information with no padding.

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

Completeness5/5

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

Covers purpose, both mode formulas, unit/type constraints, precision, and the key misuse case. An output schema exists to describe return values, so nothing essential is missing for correct invocation.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry all parameter meaning, and it does: mode's two accepted values are defined via formulas, corner_freq and frequency are specified as Decimal strings >0 in matching units (rad/s or Hz), and their ratio-only use is stated.

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 (compute Bode magnitude in dB and phase in degrees) and scopes it precisely to a first-order transfer function with a single pole or zero. The formulas for both modes make the operation unambiguous and clearly distinct from siblings like first_order_response or rc_filter_cutoff.

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 explicit usage context and a clear exclusion: transfer functions with multiple poles/zeros must be summed directly rather than passed here. It does not name a concrete sibling alternative, so it falls short of a full 5, but the 'when not to use' warning is present and actionable.

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