Skip to main content
Glama
LawCast Frontend MCP

LawCast Frontend MCP

get_style_rules

Read-onlyIdempotent

Inspect ordered CSS declarations for a shared selector fragment, including file, line, context, and importance, to trace style rules and resolve conflicts (up to 30 matches).

Instructions

Inspect ordered CSS declarations for a shared selector fragment such as .lc-flat-list-row or .lc-page-title. Includes file, line, context and important. Maximum 30 matches.

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": {
      "query": "<query>"
    },
    "name": "get_style_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description does add genuinely useful behavior beyond that: results are ordered, each result carries file, line, context and "important," and the response is capped at 30 matches — important since there is no output schema. It stops short of saying what happens on zero matches or whether the cap truncates silently or signals overflow.

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?

Three compact sentences, front-loaded with the core action and followed by return fields and the match cap. No wasted prose, though "important" is ambiguous — it likely means the CSS !important flag but could read as a priority indicator.

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 one-parameter read tool with full annotation coverage and no output schema, the description covers purpose, result fields and the 30-match cap. It is missing edge-case behavior (no matches, truncation signaling) and any hint about search scope or ordering key, which would matter for a lookup tool.

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 single `query` parameter has 0% schema description coverage, so the description must carry it — and it does, specifying that the value is a selector fragment (partial match) and giving two real examples like .lc-flat-list-row. It does not mention the 3–160 character bounds or how matching works for non-class selectors, leaving a small gap.

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 ("Inspect") and resource ("ordered CSS declarations") scoped to a "shared selector fragment," with concrete example selectors. An agent can distinguish this from get_component or get_design_system by the fact that it targets raw CSS declarations rather than components or tokens, though no sibling is named explicitly.

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: the agent can infer you call this when you need CSS rules backing a class selector. There is no explicit statement of when to prefer it over get_component or get_design_system, and no exclusions or prerequisites (e.g., whether the selector must exist in the codebase).

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