Skip to main content
Glama

list_message_handlers

Lists component message handlers in a specified view to inspect message type, scope flags, component, and script, with optional project targeting.

Instructions

List component message handlers in a view.

Args: view_path: View to scan. project: Project name; defaults to the active project.

Returns: Message type, scope flags, component and script.

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": {
      "view_path": "<view_path>"
    },
    "name": "list_message_handlers"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNo
view_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. The 'list'/scan framing signals a read-only operation, and the Returns block discloses the fields produced (message type, scope flags, component, script), which is real behavioral value. However, it says nothing about failure modes for an invalid view_path, pagination, or whether scanning a large view is expensive.

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?

Front-loaded one-line purpose followed by compact Args/Returns blocks; nothing is padded. The Returns block partially restates what the output schema already declares, which is the only mild redundancy.

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?

For a two-parameter read-only listing tool the description covers purpose, both parameters, and the returned fields. The main gap is the absence of any hardening around the required view_path, which matters given zero annotation coverage and 0% schema descriptions.

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 0%, so the description must compensate, and it does only partially: it glosses view_path as 'View to scan' and adds the meaningful fact that project defaults to the active project. Useful, but it adds no format hint for view_path (path vs. name, relative to what) and no explanation of what 'scope flags' represent.

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

Purpose4/5

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

States a specific verb and resource with scope: 'List component message handlers in a view.' The verb 'list' naturally separates it from the delete_/set_ message-handler siblings, so an agent can pick it without opening the schema. It stops short of explicitly naming those siblings as alternatives.

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?

Usage is only implied by the verb and the 'View to scan' phrasing; there is no explicit statement of when to use this versus set_message_handler or delete_message_handler, and no prerequisites (e.g., read access to the project) are mentioned.

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

Deploy Server

Other Tools