Skip to main content
Glama

List MIDI outputs

list-midi-outputs

Identify available MIDI output devices for routing composed music to software or hardware synthesizers.

Instructions

Lists MIDI outputs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the list-midi-outputs tool logic: initializes Midi instance, lists outputs, and returns them as JSON text content.
    handler: async (): Promise<{ content: { type: "text"; text: string }[] }> => {
      const midi = new Midi();
      await midi.init();
    
      const outputs = await midi.listOutputs();
    
      return {
        content: [{ type: "text", text: JSON.stringify(outputs, null, 2) }],
      };
    },
  • Registration of the list-midi-outputs tool on the MCP server in the CLI entrypoint.
    server.registerTool(
      ListMidiOutputsMcpTool.name,
      {
        title: ListMidiOutputsMcpTool.title,
        description: ListMidiOutputsMcpTool.description,
      },
      ListMidiOutputsMcpTool.handler
    );
  • Registration of the list-midi-outputs tool on the MCP server in the HTTP dev server.
    server.registerTool(
      ListMidiOutputsMcpTool.name,
      {
        title: ListMidiOutputsMcpTool.title,
        description: ListMidiOutputsMcpTool.description,
      },
      ListMidiOutputsMcpTool.handler
    );
  • Tool metadata including name, title, and description used for schema/registration.
    name: "list-midi-outputs",
    title: "List MIDI outputs",
    description: "Lists MIDI outputs",
Behavior1/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. 'Lists MIDI outputs' reveals nothing about whether this is a read-only operation, whether it requires specific permissions, what format the output takes, whether there are rate limits, or any other behavioral characteristics. For a tool with zero annotation coverage, this description provides essentially no behavioral transparency beyond the implied action of listing.

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 'Lists MIDI outputs' is maximally concise at just three words. There is zero waste or redundancy, and it communicates the core action immediately. For such a simple tool with no parameters, this level of brevity is appropriate and efficient. Every word earns its place by contributing to the basic understanding of what the tool does.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given that this is a zero-parameter tool with no annotations and no output schema, the description should provide more context about what 'MIDI outputs' are and what format the listing returns. The description is incomplete for helping an agent understand what to expect from this tool - it doesn't explain what constitutes a MIDI output, whether the list includes names/IDs/capabilities, or how the results are structured. For even a simple listing tool, more context would be helpful.

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?

The tool has zero parameters, and the input schema has 100% description coverage (though it's empty). With no parameters to document, the description doesn't need to add parameter semantics beyond what the schema provides. The baseline for zero parameters is 4, as there's no parameter information that could be missing or inadequately described. The description doesn't contradict the empty parameter schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Lists MIDI outputs' is a tautology that essentially restates the tool name 'list-midi-outputs' and title 'List MIDI outputs'. While it does include a verb ('Lists') and resource ('MIDI outputs'), it provides no additional specificity about what MIDI outputs are, what format they're listed in, or what distinguishes this from other listing operations. It meets the minimum requirement of stating what the tool does but does so in the most basic possible way.

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

Usage Guidelines1/5

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

The description provides absolutely no guidance about when to use this tool versus alternatives. There is a sibling tool named 'play' on the server, but the description doesn't mention it or explain how 'list-midi-outputs' relates to it. There's no context about prerequisites, appropriate use cases, or when this tool should be selected over other options. The agent receives no usage guidance beyond the tool name itself.

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

Install Server

Other Tools

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/mikeborozdin/vibe-composer-midi-mcp'

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