Skip to main content
Glama

android_media_sessions

Read-onlyIdempotent

List active media sessions on an Android device to identify current media playback apps. Requires notification access to retrieve session details.

Instructions

List active media sessions. Requires notification access.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already declare read-only, idempotent, and non-destructive traits, so the description's additional 'Requires notification access' adds useful behavioral context. It could mention the consequence of missing access, but the existing information is sufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence that includes the essential action and the key requirement. It is well-structured and free of unnecessary words.

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?

The description gives the purpose and a prerequisite, which is adequate for a simple listing tool. It does not specify the return format, but 'List' implies a list of sessions, and the lack of an output schema means this is a minor omission.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has no parameters, so the schema is fully covered. The description does not need to describe any inputs, and the absence of parameters is evident from the schema itself.

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 description clearly states the action ('List') and the resource ('active media sessions'), using a specific verb that distinguishes it from sibling tools. It is immediately obvious what the tool does, and no other sibling tool appears to handle listing media sessions.

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?

The description provides a prerequisite ('Requires notification access'), which is useful context. It does not explicitly contrast with alternatives like android_media_action, but the sibling context makes the differentiation clear, so the guidance is adequate if not exhaustive.

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