Skip to main content
Glama
LawCast Frontend MCP

LawCast Frontend MCP

get_component

Read-onlyIdempotent

Retrieves a bundled shared Svelte component by its exact catalog name so agents can inspect canonical source without opening filesystem paths.

Instructions

Read a bundled shared Svelte component by exact catalog name, e.g. ModalShell.svelte or discussions/DiscussionList.svelte. No filesystem paths are opened.

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

Input Schema

NameRequiredDescriptionDefault
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive behavior, so safety needs no restating. The description adds that the content is bundled rather than read from disk, which is a useful trait beyond the annotations, but says nothing about what happens on a name miss or what the returned payload looks like.

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?

Two short sentences, zero filler, with the core lookup contract front-loaded and the path negation as a tight trailing constraint. Nothing is repeated from the schema or annotations.

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 one-parameter read tool with rich annotations and no output schema, the description covers what an agent needs to call it correctly: what it fetches, how to identify the target, and how not to identify it. Only error/not-found behavior is left unstated, a minor gap at this complexity.

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 coverage is 0%, so the description carries the full burden, and it does real work: the single `name` parameter is an exact catalog key, not a path, and the examples (ModalShell.svelte vs discussions/DiscussionList.svelte) reveal that the key may carry a directory-style prefix. That is meaning the bare string schema does not convey.

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 (Read) and a specific resource (a bundled shared Svelte component) with two concrete catalog-name examples. The 'bundled shared' qualifier distinguishes it from fetching arbitrary source files, though it never explicitly contrasts itself with get_design_system or get_style_rules.

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

Usage Guidelines4/5

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

Makes the access mode unambiguous: lookup is by exact catalog name, and 'No filesystem paths are opened' rules out the most likely wrong invocation. It stops short of stating when to prefer this over the sibling catalog tools, so there is no positive routing guidance.

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