Skip to main content
Glama

player_set_volume

Adjust audio volume for media playback in the mpv player, setting levels from 0 to 130 with 100 as default.

Instructions

Set playback volume (0–130). 100 is default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
volumeYesVolume level 0–130

Implementation Reference

  • Handler for the player_set_volume tool which sets the volume property using the mpv instance.
    case "player_set_volume": {
      await ensureMpv();
      await setProperty("volume", Math.max(0, Math.min(130, args.volume)));
      return ok(`Volume set to ${args.volume}`);
    }
  • MCP tool registration and input schema definition for player_set_volume.
    {
      name: "player_set_volume",
      description: "Set playback volume (0–130). 100 is default.",
      inputSchema: {
        type: "object",
        properties: {
          volume: { type: "number", description: "Volume level 0–130" },
        },
        required: ["volume"],
      },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/guodaxia9527/mcp-mpv-player'

If you have feedback or need assistance with the MCP directory API, please join our Discord server