Skip to main content
Glama

AI SENSE Free Public Tools

Encode data as sound

encode_audio
Read-onlyIdempotent

Send 1 to 128 bytes as sound to a device nearby, such as a short code or a link: a PCM16 WAV in the AI SENSE audio-v2 format, with four-tone symbols hopping between three tone sets so room echo is ignored, Reed-Solomon error correction and a CRC. data is UTF-8 text unless input_encoding is base64. Audible tones, 800 to 3000 Hz, are the default; high (14.0 to 16.2 kHz) and ultrasound (18.0 to 20.2 kHz) are experimental, can be audible and depend on the devices. Play it near a listening device and read the recording with decode_audio. Not encrypted. Nothing is stored. No API key, no account and no sign up.

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": {
      "data": "<data>"
    },
    "name": "encode_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesUTF-8 text or standard Base64 representing at most 128 bytes.
modeNoaudible by default. high and ultrasound are experimental and depend on the speakers and microphone.
input_encodingNoutf8 by default. Choose base64 for arbitrary binary bytes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / mode / description
      Previous value: -"audible by default. ultrasound is experimental and depends on the speakers and microphone."New value: +"audible by default. high and ultrasound are experimental and depend on the speakers and microphone."
    • changedInput schema / properties / mode / enum
      Previous value: -[
      -  "audible",
      -  "ultrasound"
      -]New value: +[
      +  "audible",
      +  "high",
      +  "ultrasound"
      +]
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly and idempotent, and the description adds substantial context beyond them: not encrypted, nothing stored, no API key or account required, Reed-Solomon plus CRC error correction, and the caveat that the experimental frequency bands may be audible. Those are exactly the side-effect and risk facts an agent needs before calling.

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 is front-loaded in the first clause, and every following clause carries usable information. It reads as a dense run-on rather than a structured list, but there is no filler or repetition to cut.

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?

With no output schema, the description still explains what is produced: a PCM16 WAV in the AI SENSE audio-v2 format. Combined with the size limit, encoding rule, mode caveats, and security posture, an agent has everything needed to invoke this correctly.

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 100%, so the baseline is 3, but the description still adds meaning: it clarifies that data is treated as UTF-8 unless input_encoding is base64, and it restates the frequency ranges behind the mode enum (800-3000 Hz, 14.0-16.2 kHz, 18.0-20.2 kHz), which the schema only labels as experimental.

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 clause names a specific verb and resource with explicit bounds: "Send 1 to 128 bytes as sound to a device nearby." It also names the counterpart tool ("read the recording with decode_audio"), so an agent can separate encode from decode without opening a 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?

It states the operating context clearly (play it near a listening device, then decode the recording) and gives per-mode guidance: audible is the default while high and ultrasound are experimental and device-dependent. It stops short of explicit when-not-to-use conditions, such as when a network path or a different encoding tool would be preferable.

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.