Skip to main content
Glama
gpaul-mcp

Ravelry MCP Server

by gpaul-mcp

Grams ↔ meters ↔ yards

convert_yarn_amount
Read-onlyIdempotent

Converts yarn amounts between grams, length (meters/yards), and skeins using a yarn's skein data or a typical weight ratio when the exact yarn is unknown.

Instructions

Converts an amount of yarn between grams and length (meters/yards) and skeins, e.g. "I have 200 g of Rios" or "how many grams is 300 m of DK?". Uses the yarn's own skein data (yarn_id) when given, else a typical ratio for the yarn weight (an estimate). Yarn is sold by weight in much of the world, but patterns need a length.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gramsNo
yardsNo
metersNo
weightNoWhen the exact yarn is unknown.
yarn_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteYes
yarnYes
gramsYes
yardsYes
metersYes
skeinsYesOf the given yarn.
estimatedYesTrue when a typical ratio for the weight was used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.8.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld), and the description adds the important accuracy caveat that weight-only conversion is an estimate. It does not, however, describe behavior on conflicting inputs or how the direction of conversion is chosen.

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?

Three sentences, front-loaded with the verb and scope, examples do real work. The closing sentence about yarn being sold by weight is motivational framing rather than operational information, costing it the top score.

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

Completeness3/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 no explanation, but the critical ambiguity for a 5-parameter conversion tool — which combination of grams/yards/meters to supply and what happens if several are given — is left unresolved.

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?

With schema description coverage at 20%, the description must carry more: it names yarn_id and weight's role but never states that grams/yards/meters are alternative inputs, whether they are mutually exclusive, or how the enum weight values map to ratios. It partially compensates, so a baseline 3.

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?

States a specific verb (converts) and resource (yarn amount) with the exact unit spaces involved (grams, meters/yards, skeins), plus concrete example phrasings. It is clearly distinguishable from siblings like yarn_needed or adjust_for_gauge.

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?

Explicitly says to pass yarn_id when the exact yarn is known and to fall back to a weight-based typical ratio otherwise — a real routing rule between two parameters. It stops short of naming a sibling alternative or a when-not-to-use case, so not a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.