Skip to main content
Glama

Evaluate Payload Link Budget

evaluate_payload
Read-onlyIdempotent

Calculate link budget metrics for a payload size and frequency, including capacity, goodput, fragmentation, airtime, and packet loss, to verify message sizes fit link limits before designing wire formats.

Instructions

Calculate physical-layer link budget metrics—including Shannon channel capacity ceiling, protocol goodput, MTU fragmentation count, safe maximum payload byte limit, airtime, and bit-error-rate (BER) packet loss—for a given payload size and transmission frequency. Use this before designing wire framing or serialization formats to verify that message sizes fit within link constraints; do not use this to scan source code files (use check instead).

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": {
      "profile": "<profile>",
      "payload_bytes": "<payload_bytes>",
      "hz": "<hz>"
    },
    "name": "evaluate_payload"
  }
}

Input Schema

NameRequiredDescriptionDefault
hzYesPacket transmission rate in Hertz (packets per second, minimum 0.001 Hz).
profileYesPhysical link profile identifier (for example: lora-sf12, ble-1m, wifi-24g-congested, leo-sat, or uart-9600). Call list_link_profiles to discover all valid IDs.
payload_bytesYesApplication payload size in bytes to transmit per packet (must be at least 1 byte).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.4.11
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / hz / description
      Added value: +"Packet transmission rate in Hertz (packets per second, minimum 0.001 Hz)."
    • addedInput schema / properties / payload_bytes / description
      Added value: +"Application payload size in bytes to transmit per packet (must be at least 1 byte)."
    • changedInput schema / properties / profile / description
      Previous value: -"e.g. lora-sf12, ble-1m, wifi-24g-congested, leo-sat, uart-9600"New value: +"Physical link profile identifier (for example: lora-sf12, ble-1m, wifi-24g-congested, leo-sat, or uart-9600). Call list_link_profiles to discover all valid IDs."
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety and side-effect profile is fully covered. The description adds behavioral value by specifying which metrics are computed, which matters because there is no output schema, but it says nothing about determinism across profiles or precision/units of results.

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 purpose and the metric list are front-loaded in the first sentence, followed by usage and exclusion in the second. The metric enumeration is dense but earns its place given the absence of an output schema; only minor tightening is possible.

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 three-required-parameter pure computation tool with full schema coverage and rich annotations, the description plus schema cover inputs, purpose, and expected outputs. The main residual gap is that without an output schema it does not describe the shape or units of each returned metric, though naming them mitigates this.

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 100%: hz is documented as packets per second with a minimum, profile as a link identifier pointing to list_link_profiles, and payload_bytes as the application payload size. The description only restates 'payload size and transmission frequency', adding no syntax, units, or edge-case guidance beyond the schema, 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?

States a specific verb (Calculate) and resource (physical-layer link budget metrics) and enumerates the concrete outputs: Shannon capacity, goodput, MTU fragmentation, safe max payload, airtime, and BER loss. An agent can distinguish this from siblings like 'check' purely from the description.

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

Usage Guidelines5/5

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

Gives an explicit invocation point ('before designing wire framing or serialization formats to verify message sizes fit link constraints') and an explicit exclusion with a named alternative ('do not use this to scan source code files (use check instead)'). Both when-to-use and when-not are covered.

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