Skip to main content
Glama

get_rhythm_rules

Read-onlyIdempotent

Retrieve effective semantic rhythm rules by family and profile, including project-local overrides, returning semantic IDs and approved utilities with cursor-based pagination.

Instructions

Read the effective semantic rhythm profile by family, including project-local overrides under a contained .basecoat/rhythm.json. Semantic IDs and approved implementation utilities are returned separately. Results are content-addressed and cursor-paginated; changed effective revisions invalidate prior cursors.

Input Schema

NameRequiredDescriptionDefault
idNoAlternative identifier alias for profile or family.
nameNoAlternative identifier alias for profile or family.
limitNoMaximum number of rhythm mappings to return per page (1-32, default 10).
cursorNoPagination cursor for bounded continuation of rhythm rules.
familyNoSemantic rhythm family to filter by (e.g. "spacing", "layout", "typography", "colors", "elevation"). Accepts aliases like "layouts".
profileNoRhythm profile identifier to query (e.g. "default", "compact", "comfortable"). Defaults to "default".
componentIdNoAlternative identifier alias for profile or family.
environmentNoTarget environment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv1.8.0
    • addedInput schema / properties / componentId
      Added value: +{
      +  "description": "Alternative identifier alias for profile or family.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "pattern": "^[a-z][a-z0-9-]*$",
      +  "type": "string"
      +}
    • addedInput schema / properties / cursor / description
      Added value: +"Pagination cursor for bounded continuation of rhythm rules."
    • addedInput schema / properties / environment
      Added value: +{
      +  "description": "Target environment.",
      +  "enum": [
      +    "html",
      +    "astro",
      +    "react",
      +    "vue",
      +    "svelte"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / family / description
      Added value: +"Semantic rhythm family to filter by (e.g. \"spacing\", \"layout\", \"typography\", \"colors\", \"elevation\"). Accepts aliases like \"layouts\"."
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "Alternative identifier alias for profile or family.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "pattern": "^[a-z][a-z0-9-]*$",
      +  "type": "string"
      +}
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of rhythm mappings to return per page (1-32, default 10)."
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Alternative identifier alias for profile or family.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "pattern": "^[a-z][a-z0-9-]*$",
      +  "type": "string"
      +}
    • addedInput schema / properties / profile / description
      Added value: +"Rhythm profile identifier to query (e.g. \"default\", \"compact\", \"comfortable\"). Defaults to \"default\"."
  2. Addedv1.4.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: results are content-addressed, cursor-paginated, and changed effective revisions invalidate prior cursors, which tells the agent cursors are not durable across revisions. It also notes that semantic IDs and implementation utilities are returned separately, which is meaningful for a read tool.

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 dense sentences, front-loaded with the core purpose before the override and pagination caveats. Every sentence carries substantive information. Some internal jargon (.basecoat/rhythm.json, content-addressed) costs a little readability but each phrase earns its place.

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 read-only, no-output-schema tool with annotations covering safety, the description supplies the missing return/behavior context (content-addressing, cursor invalidation, separate ID vs utility returns). What remains thin is guidance on routing between this and the other design-rules tools, which is the only real gap.

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%, so all eight optional parameters are already documented in the schema, including aliases, the family example list, and the profile defaults. The description only echoes 'by family' and the pagination behavior without adding syntax or format detail beyond the schema. Baseline 3 is appropriate when the schema carries the load.

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 and resource: reading the effective semantic rhythm profile by family, with explicit mention of project-local overrides. An agent can tell this is a read of rhythm/design-token data. However, it never differentiates itself from siblings like get_design_rules or basecoat_rules_enforcer, so the boundary between these tools is left to inference.

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?

The description explains what is returned but gives no when-to-use guidance, no prerequisites, and no distinction from the rhythm-adjacent siblings (get_design_rules, enforce_rules). An agent must guess when this is the right tool versus the other rules-fetching tools.

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