Skip to main content
Glama

find_views_by_css

Locate Perspective views and components that reference a specific CSS style class. Identify where a class is used across a project to plan safe style changes.

Instructions

Find views and components that use a style class.

Args: css_class: Style class name to search for. project: Project name; defaults to the active project.

Returns: Matching views with the component names that use the class.

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": {
      "css_class": "<css_class>"
    },
    "name": "find_views_by_css"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNo
css_classYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the behavioral burden. 'Find' implies a read-only lookup and the Returns block tells the agent the result pairs views with component names, which is useful. However, it says nothing about result size limits, whether inactive or embedded views are included, or what an empty result means.

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 first sentence front-loads the purpose, followed by a compact Args/Returns block. Nothing is gratuitous. The docstring scaffolding ('Args:', 'Returns:') is slightly formal but not wasteful.

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 tool is simple — two parameters, one required — and an output schema already exists, so the description needn't enumerate return values. It covers both parameters and the shape of the result, leaving only edge-case behavior unspecified.

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?

Schema description coverage is 0%, so the description must compensate and largely does: 'css_class' is described as the style class name to search for, and 'project' is described as a name that defaults to the active project. The one gap is that the format of the class name (leading dot or not) is unstated.

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?

Description states a specific verb and resource: 'Find views and components that use a style class.' That is unambiguous about what is searched and what is returned. It stops short of naming or contrasting any sibling tool, so it lands at 4 rather than 5.

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 'find' — the agent can infer this is a reference-lookup for a CSS class. There is no explicit when-to-use guidance, no mention of a project-scope prerequisite (other than the default), and no statement of when this tool is the wrong choice versus other reference-finding tools.

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