Skip to main content
Glama

Get effect code

get_effect
Read-onlyIdempotent

Get the source code of one catalog element by id: files with the attribution header, npm dependencies, shadcn registry dependencies and the shadcn install command. Counts toward the daily code limit of the account (shared with the Dotmira site and the registry; the same element again the same day is free).

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

Input Schema

NameRequiredDescriptionDefault
idYesElement id from search_effects, e.g. "glow-button" or "hextaui--accordion".
frameworkNoPreferred variant when an element has several (e.g. "react" or "html-css").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely new behavior: the call counts against a daily code quota shared across the account/site/registry, and repeat fetches of the same element on the same day are free. That cost/caching model is exactly the kind of context an agent cannot get from annotations, though nothing is said about failure modes when the limit is hit.

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?

A single front-loaded sentence with the primary action first, then returned contents, then quota caveat. Dense but every clause carries information; the nested parenthetical about the shared limit is the only slightly tangled part.

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?

With no output schema, the description compensates by listing what the response includes, and it discloses the quota model. Only gap is the relationship to get_preview, which an agent might otherwise confuse with this fetch.

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 100% and both parameters carry their own descriptions and examples, so the schema does the heavy lifting. The description adds only 'by id' and does not elaborate on how framework selection interacts with element variants beyond what the enum already documents.

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

Purpose5/5

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

States a specific verb and resource ('Get the source code of one catalog element by id') and goes further by enumerating what the returned code contains: attribution header, npm deps, shadcn registry deps, and install command. Scoped to a single element by id, which distinguishes it from search_effects and list_categories without ambiguity.

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?

The reference to 'id from search_effects' implies the search-then-fetch workflow, but there is no explicit when-to-use or when-not versus get_preview, nor guidance on when to supply framework. Usage is inferable rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.