Skip to main content
Glama

Easy Grid Maker — Drawing Grid & Aspect Ratio Calculator

Calculate drawing grid dimensions for photo-to-canvas transfer

calculate_drawing_grid
Read-onlyIdempotent

Compute exact grid columns, rows, per-square pixel size, physical square size on drawing paper or canvas (cm, mm, or in), scaling ratio, usable drawing area, unused/crop margins, and even-row column suggestions.

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": {
      "imageWidthPx": "<imageWidthPx>",
      "imageHeightPx": "<imageHeightPx>",
      "surfaceWidth": "<surfaceWidth>",
      "surfaceHeight": "<surfaceHeight>"
    },
    "name": "calculate_drawing_grid"
  }
}

Input Schema

NameRequiredDescriptionDefault
columnsNoOptional number of grid columns across the drawn width (1 to 100). Mutually exclusive with cellSize; defaults to 8 when neither is given.
fitModeNo'contain' fits the entire reference image inside the surface with unused margin; 'cover' fills the entire surface and reports image crop margin. Defaults to 'contain'.contain
cellSizeNoOptional desired physical side length of each square on the target surface in surfaceUnit (e.g. 2 for 2 cm squares). Mutually exclusive with columns.
surfaceUnitNoPhysical unit for surfaceWidth, surfaceHeight, and cellSize ('cm', 'mm', or 'in'). Defaults to 'cm'.cm
imageWidthPxYesReference image width in pixels, e.g. 2400.
surfaceWidthYesTarget drawing paper or canvas width in surfaceUnit, e.g. 29.7 (cm) or 11 (in).
imageHeightPxYesReference image height in pixels, e.g. 1800.
surfaceHeightYesTarget drawing paper or canvas height in surfaceUnit, e.g. 21 (cm) or 14 (in).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, which fully covers the safety profile of a pure calculation. The description adds only one behavioral note beyond that – that 'even-row column suggestions' are produced – and says nothing about rounding behavior, precision, or what happens when fitMode is 'cover' versus 'contain'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single massive comma-separated list of outputs with no grouping or priority, which makes it hard to scan. It is not bloated in length, but the enumeration format reads as a data dump rather than a front-loaded statement of purpose followed by useful detail.

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?

There is no output schema, so enumerating the returned values (grid dimensions, per-square pixel size, physical square size, scaling ratio, usable area, margins) genuinely compensates and tells the agent what it will get back. The main remaining gap is that units and semantics of individual return fields, such as the scaling ratio, are unstated.

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 the schema itself documents the units, defaults, ranges, and the mutual exclusivity of columns and cellSize. The description contributes nothing parameter-specific; 'cm, mm, or in' merely restates the surfaceUnit enum, so baseline 3 applies.

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

Purpose3/5

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

The verb is 'Compute' but the sentence then degenerates into an enumeration of outputs (columns, rows, pixel size, square size, scaling ratio, margins) rather than stating the operation crisply, e.g. 'scale a reference image onto a drawing surface as a grid'. An agent can infer the purpose, but nothing here distinguishes it from the sibling calculate_aspect_ratio_grid.

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?

There is no when-to-use guidance, no prerequisite about needing both image and surface dimensions, and no mention of the alternative calculate_aspect_ratio_grid that exists among siblings. The agent must decide purely from the input schema.

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