Skip to main content
Glama
yomi

yomi

Official
by RikaiDev

send_audio

Sends E2EE audio to a LINE conversation immediately from a local file or base64 payload, with optional duration for recipient playback.

Instructions

Sends an E2EE audio message to a LINE conversation immediately (same pipeline as send_file). Provide exactly one of file_path or audio_base64; optional duration_ms sets the recipient player length. Works for 1:1/group/room. One send per call.

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": {
      "chat_id": "<chat_id>"
    },
    "name": "send_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesLINE chat/group/room MID to send to, as returned by list_conversations.
file_nameNoOptional original filename (used for the upload name; defaults to the basename of file_path or audio.m4a).
file_pathNoLocal filesystem path to the audio file. Mutually exclusive with audio_base64.
duration_msNoOptional audio duration in milliseconds, for the recipient player progress bar.
audio_base64NoBase64-encoded audio bytes. Mutually exclusive with file_path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv0.7.2
    • removedInput schema / properties / audioBase64
      Removed value: -{
      -  "description": "Base64-encoded audio bytes. Mutually exclusive with filePath.",
      -  "type": "string"
      -}
    • addedInput schema / properties / audio_base64
      Added value: +{
      +  "description": "Base64-encoded audio bytes. Mutually exclusive with file_path.",
      +  "type": "string"
      +}
    • removedInput schema / properties / chatId
      Removed value: -{
      -  "description": "LINE chat/group/room MID to send to, as returned by list_conversations.",
      -  "type": "string"
      -}
    • addedInput schema / properties / chat_id
      Added value: +{
      +  "description": "LINE chat/group/room MID to send to, as returned by list_conversations.",
      +  "type": "string"
      +}
    • removedInput schema / properties / durationMs
      Removed value: -{
      -  "description": "Optional audio duration in milliseconds, for the recipient player progress bar.",
      -  "type": "number"
      -}
    • addedInput schema / properties / duration_ms
      Added value: +{
      +  "description": "Optional audio duration in milliseconds, for the recipient player progress bar.",
      +  "type": "number"
      +}
    • removedInput schema / properties / fileName
      Removed value: -{
      -  "description": "Optional original filename (used for the upload name; defaults to the basename of filePath or audio.m4a).",
      -  "type": "string"
      -}
    • removedInput schema / properties / filePath
      Removed value: -{
      -  "description": "Local filesystem path to the audio file. Mutually exclusive with audioBase64.",
      -  "type": "string"
      -}
    • addedInput schema / properties / file_name
      Added value: +{
      +  "description": "Optional original filename (used for the upload name; defaults to the basename of file_path or audio.m4a).",
      +  "type": "string"
      +}
    • addedInput schema / properties / file_path
      Added value: +{
      +  "description": "Local filesystem path to the audio file. Mutually exclusive with audio_base64.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "chatId"
      -]New value: +[
      +  "chat_id"
      +]
  2. Addedv0.4.1
  3. Removedv0.3.0
  4. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It adds useful traits — automatic E2EE, immediate delivery (no scheduling), one send per call, and that a single payload source must be chosen — but says nothing about required permissions, size limits, or what happens on failure.

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?

A single front-loaded paragraph where each clause carries information (E2EE, immediacy, payload choice, player duration, chat scope, one-per-call). Slightly dense but no filler sentences.

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 5-parameter mutation tool with no annotations and no output schema, the description omits return information (message ID/status) and failure or size-limit behavior. It covers the essentials for invoking the tool but leaves the agent guessing about outcomes.

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 description coverage is 100%, so every parameter is already documented, including the file_path/audio_base64 mutual exclusivity. The description only restates mutual exclusivity and the duration_ms purpose, adding negligible meaning beyond the schema; 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?

"Sends an E2EE audio message to a LINE conversation immediately" gives a specific verb (sends) and resource (E2EE audio message), plus scope (1:1/group/room) and a pipeline note tying it to send_file. That is enough for an agent to distinguish it from send_file, send_image, or send_message without opening another schema.

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?

The parenthetical "same pipeline as send_file" and "One send per call" imply context and a constraint, but there is no explicit statement of when to choose this over send_file (e.g., audio attachment) or what conditions make a send fail. Usage is inferable rather than stated.

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