Home / Servers / Developer Toolbox / aspect_ratio

Aspect ratio

An MCP tool from the Developer Toolbox server, hosted on mcp.hjlabs.in.

Reduce a pixel width and height to its simplest aspect ratio, and optionally scale it to a target width or height while preserving that ratio.

Name on the gateway: devtools__aspect_ratio · read-only.

Parameters

NameTypeDescription
width requirednumberWidth in pixels.
height requirednumberHeight in pixels.
targetWidthnumberOptional: scale to this width and report the matching height.
targetHeightnumberOptional: scale to this height and report the matching width.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "devtools__aspect_ratio",
  "arguments": {
    "width": 0,
    "height": 0
  }
}

Or connect the Developer Toolbox server directly, which lists 18 tools including this one:

Run in your terminal
claude mcp add --transport http hj-devtools https://mcp.hjlabs.in/mcp/devtools \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the aspect ratio tool with width set to ….

More from Developer Toolbox