Skip to main content
Glama
Signal Lab

Signal Lab

by jafarSalim

ber_curve

Simulate bit error rate versus Eb/N0 across BPSK, QPSK, 8PSK, 16QAM, 64QAM, and 256QAM over AWGN or Rayleigh channels, then compare results with theoretical curves.

Instructions

Simulate bit error rate vs Eb/N0 and compare with theory.

modulation: BPSK, QPSK, 8PSK, 16QAM, 64QAM or 256QAM. channel: 'awgn' or 'rayleigh' (flat fading, perfect channel knowledge). max_bits caps the simulation per point (stops early after 200 errors).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ber_curve"
  }
}

Input Schema

NameRequiredDescriptionDefault
channelNoawgn
step_dbNo
max_bitsNo
modulationNoQPSK
ebn0_stop_dbNo
ebn0_start_dbNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/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 disclose non-obvious behavior: Rayleigh is flat fading with perfect channel knowledge, and max_bits caps each point with an early stop after 200 errors, which materially affects result accuracy and runtime. It omits the return format, but the behavioral disclosures that are present are genuinely useful.

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 purpose, followed by compact parameter notes in a single short block; no filler sentences. Slightly dense run-on formatting in the last line, but nothing wasted.

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?

For a six-parameter simulation tool with no annotations and no output schema, the description covers the core simulation semantics but says nothing about what is returned (e.g., simulated vs theoretical BER arrays) or the numerical range/validity of the Eb/N0 parameters. Adequate but with clear gaps.

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 coverage is 0% (only bare titles and defaults), so the description must compensate. It documents three of six parameters well — modulation values, channel values, and max_bits semantics including the 200-error early stop — but leaves step_db, ebn0_start_db, and ebn0_stop_db to be inferred from their names.

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 first sentence names a specific verb and resource ('Simulate bit error rate vs Eb/N0') plus a secondary behavior ('compare with theory'), which is enough to distinguish it from siblings like constellation, eye_diagram, or spectrum that plot other signal views.

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 only implied by the parameter discussion: it tells you which modulation/channel combinations are supported but never states when to choose this tool over alternatives such as constellation or eye_diagram, nor any prerequisites. An agent can infer the use case but gets no explicit routing guidance.

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