Skip to main content
Glama

find_event_scripts

Scan a Perspective view to locate component event handlers and retrieve their source code, optionally within a specified project.

Instructions

Find component event scripts in a view.

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

Returns: Event handlers with their component and source code.

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": "find_event_scripts"
  }
}

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

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It does disclose the result shape (event handlers with component and source code) and that it scans a view, but it says nothing about permissions, cost or size limits on large views, or whether the operation is purely read-only.

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?

The definition is short and front-loaded with the purpose, followed by clearly separated Args and Returns blocks. The Returns block largely duplicates the output schema, which is minor waste but not harmful.

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 simple two-parameter read tool with an output schema, the definition covers purpose, inputs, and return content adequately. It falls short on behavioral context (read-only nature, limits on large views) and on routing relative to similar read tools, leaving meaningful gaps.

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 define the parameters, and it does give both: view_path as the view to scan and project as defaulting to the active project. The explanations are terse, though, and add little about accepted path formats or how project resolution behaves when omitted.

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?

The description gives a specific verb and resource ("Find component event scripts") plus a scope ("in a view"), which is clearly distinct from mutation siblings like set_event_script or delete_event_script. It does not, however, distinguish itself from adjacent read tools such as list_view_scripts or find_script_dependencies, so an agent cannot fully separate them from the description alone.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no named alternative. The only implied guidance is that a view is scanned, leaving the agent to infer how this differs from list_view_scripts or get_event_script.

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