Skip to main content
Glama

rem-to-px

Read-onlyIdempotent

Convert REM (relative to root font size) to pixels. Defaults to a 16px base (browser default); pass base_px to use a different root size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
remYesThe REM value to convert.
base_pxNoBase font size in pixels. Defaults to 16 (browser default).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
remYesInput REM value, echoed back.
pixelsYesEquivalent pixel value.
base_pxYesBase font size used.
em_equivalentYesEquivalent em value (same as rem in this context).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already mark the tool as read-only and idempotent; the description adds the default 16px base and the optional base_px override. It also clarifies that REM is root-relative, adding useful behavioral context without contradicting annotations.

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?

The description is a single, efficient sentence that conveys the conversion, the default, and the optional parameter. Every phrase earns its place with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity, rich annotations, and presence of an output schema, the description fully covers necessary information. It explains the conversion, default behavior, and adjustable base without needing to document return values.

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?

The schema already provides 100% parameter coverage, including the 16px default for base_px. The description reinforces the meaning of REM but adds little beyond the schema's existing parameter documentation.

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?

The description clearly states it converts REM to pixels, specifying the base font size default. It names the exact units and conversion direction, distinguishing it from other converter tools.

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?

The description explains when to use the tool (converting REM to px) and how to customize with base_px, including the browser default. It doesn't mention alternatives, but the context is clear and no exclusions are needed.

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.

Resources