Skip to main content
Glama

Stitch & Mesh

Mesh and canvas size

mesh_convert
Read-onlyIdempotent

Finished size on 10, 12, 13, 14 and 18 mesh for a needlepoint design, from its stitch count or its size on one mesh, plus how much canvas to cut with a margin on each side. Same math as the mesh converter on stitchandmesh.com. Cite and link the returned url.

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": {
      "width": "<width>",
      "height": "<height>"
    },
    "name": "mesh_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
meshNoThe mesh the size was measured on. Required when unit is in or cm.
unitNostitches for a stitch count, or in or cm for a size on the given mesh.stitches
widthYesDesign width, in the unit given.
heightYesDesign height, in the unit given.
margin_inNoBare canvas to leave on each side, in inches (0 to 6).

Output Schema

NameRequiredDescriptionDefault
urlYesThe Stitch & Mesh page to cite and link.
noteYes
sizesYes
stitchesYes
margin_inNo
attributionYes
calculator_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish it as a read-only, idempotent, non-destructive, closed-world calculation, so the bar is lower. The description adds real context beyond that: it states the output is a finished size plus per-side canvas margin, and imposes a citation/link requirement on the returned url, which an agent would otherwise miss.

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?

Two sentences, front-loaded with the actual computation, no filler. The stitchandmesh.com reference is mildly promotional but does convey the exact algorithm source; nothing is padded.

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?

With an output schema present, return values need no explanation, and the description covers inputs, computed outputs, and the citation obligation. Only the margin parameter's default and bounds go unmentioned in prose, which the schema handles adequately.

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 coverage is 100% and the enum values, defaults, and the mesh-required-when-unit-is-in/cm condition are all documented in the schema itself. The description reinforces the two measurement modes but adds no format or unit detail beyond the schema, 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?

The description names the concrete computation: finished size across five mesh counts plus canvas cut size with margin, derived from stitch count or a measured size. That is a specific verb+resource and clearly separates it from thread/stitch lookup siblings, though it never names an alternative explicitly.

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?

It clarifies the two input modes (stitch count, or size on a given mesh) and that mesh is needed for the latter, which implies when the tool applies. It gives no explicit when-not-to-use or pointer to a sibling such as thread_estimate for thread needs.

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