Skip to main content
Glama

Easy Photo Layout

Calculate a photo print layout

epl_plan_layout
Read-onlyIdempotent

Calculate how many copies fit, the paper orientation and canvas dimensions, and the printable photo rectangles at 300 ppi. Coordinates are in pixels from the top left. A zero copy count means the photo does not fit. Takes size settings only.

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": {
      "photo_size": "<photo_size>",
      "paper_size": "<paper_size>"
    },
    "name": "epl_plan_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
gap_mmNoRequested gap between photos, in millimeters.
margin_mmNoMinimum margin, in millimeters.
paper_sizeYesPaper preset. 4x6 and 10x15 denote different paper sizes.
photo_sizeYesFinished photo preset. us2x2 is exactly 50.8 × 50.8 mm.
orientationNoauto chooses the orientation with the most copies.auto

Output Schema

NameRequiredDescriptionDefault
ppiYes
rowsYes
copiesYes
gap_pxYes
columnsYes
paper_mmYes
photo_mmYes
output_pxYes
paper_sizeYes
photo_sizeYes
orientationYes
photo_rects_pxYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: output resolution (300 ppi), coordinate origin (top left, in pixels), and the zero-copy failure semantics that tells the agent how to detect a non-fit. It stops short of explaining how gap/margin constraints are reconciled when the requested values cannot be honored.

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?

Four short sentences, each doing distinct work: what is computed, the coordinate convention, the failure signal, and the input scope. Outputs are front-loaded and there is no filler or restatement of the title.

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?

An output schema exists, so return values need not be spelled out, yet the description helpfully previews the main result fields and the pixel/ppi convention. For a pure deterministic calculation with full annotation coverage this is essentially complete; only the tie-breaking behavior for conflicting gap/margin requests is unaddressed.

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%, with enum explanations for paper_size, photo_size, orientation and defaults/ranges for gap_mm and margin_mm, so the schema carries the parameter burden. The description adds no per-parameter meaning beyond it; "at 300 ppi" and the pixel origin pertain to output rather than inputs, so baseline 3 applies.

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?

Uses a specific verb ("Calculate") and enumerates the concrete outputs: copy count, paper orientation, canvas dimensions, and printable photo rectangles at 300 ppi. The phrase "Takes size settings only" scopes it as a pure geometry calculation, though it never names or contrasts with the sibling preset-listing tool.

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?

"Takes size settings only" implies the tool is for layout planning from dimensions rather than preset lookup, and "A zero copy count means the photo does not fit" gives an interpretation rule. However, there is no explicit statement of when to use this versus alternatives, and no prerequisites or exclusions are named.

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