Skip to main content
Glama

写真+参照物から家具・スペースの寸法を推定

measure_from_photo

「写真を撮ったので寸法を測りたい」「この隙間に合う棚を探したい」のときに呼ぶ。 ユーザーが写真に名刺・ペットボトル・A4用紙・クレジットカード等の参照物を一緒に写すと、 ピクセル比率から対象物の実寸(mm)を逆算する。

【AIの役割】写真をVisionで解析し、参照物と対象物それぞれのピクセル幅・高さを読み取ってこのツールに渡す。 対応参照物: 名刺(91×55mm)、クレジットカード(85.6×54mm)、ペットボトル500ml(65×205mm)、A4用紙(210×297mm)、500円玉(∅26.5mm)、1円玉(∅20mm)、スマホ(71.5×147mm)、ティッシュ箱(240×115mm)、30cm定規、ボールペン(140mm)

結果のsearch_dimensionsをそのままsuggest_by_spaceやcoordinate_storageに渡せば、写真→寸法→商品マッチングが完結する。 信頼度が低い場合は「メジャーで実測を」と伝えること。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
intentYes【必須】写真から何を測りたいか
target_pxYes対象物のピクセル寸法(AIがVisionで画像から読み取る)
reference_pxYes参照物のピクセル寸法(AIがVisionで画像から読み取る)
reference_objectYes写真に写っている参照物の名前(名刺/ペットボトル/A4用紙/クレジットカード/500円玉/1円玉/スマホ/ティッシュ箱/30cm定規/ボールペン)
estimated_depth_mmNoAIが推定した奥行き(mm)。写真から奥行きが読めない場合にVision LLMの推定値を入れる
target_descriptionYes測定対象の説明(例: '白い3段カラーボックス', '洗面台横の隙間')
manual_dimensions_mmNoユーザーがメジャー/AR等で実測した値があれば上書き(最高精度)

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains the method (pixel ratio), the AI's role (Vision analysis and passing pixel values), supported reference object dimensions, and confidence handling. It does not fully detail edge cases or the exact return structure, but it covers the key behavioral traits.

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?

The description is dense but well-structured: usage trigger, calculation method, AI role, supported reference list, downstream workflow, and confidence fallback. Each sentence provides useful information, though it is slightly long. It is appropriately sized for the tool's complexity.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex tool with 7 parameters, nested objects, and no output schema. The description covers the full workflow: what to pass (pixel dimensions), what the tool computes, how to use the result, and what to do in low-confidence cases. It gives sufficient context for an agent to invoke it correctly and use its output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds extra meaning by listing actual dimensions for each supported reference object (e.g., 名刺 91×55mm), clarifying that pixel values are to be read by Vision, and explaining manual_dimensions_mm as an override. This goes beyond the schema's basic descriptions.

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?

The description clearly states the tool's function: 'ピクセル比率から対象物の実寸(mm)を逆算する' – it estimates actual dimensions from a photo with a reference object. It uses specific verbs and distinguishes itself from sibling tools (which handle search, comparison, or storage) by being the only measurement tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly states when to call: '「写真を撮ったので寸法を測りたい」「この隙間に合う棚を探したい」のときに呼ぶ'. It also provides integration guidance: passing search_dimensions to suggest_by_space or coordinate_storage, and advises telling the user to measure manually if confidence is low.

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.

TDQS

A3.9/5.0
Disambiguation3/5

Multiple tools handle product discovery (search_products, search_rakuten_products, search_amazon_products, suggest_by_space, find_replacement), and their boundaries require careful description reading. diagnose_ai_visibility is completely unrelated to furniture, adding confusion. Most tools are distinct, but the search cluster is ambiguous.

Naming Consistency4/5

Tool names consistently use snake_case with verb prefixes (get_, search_, find_, list_, etc.). While some verbs overlap (search vs find), the pattern is predictable and no mixed styles exist.

Tool Count4/5

18 tools is on the higher side but reasonable for a rich domain. However, several search variants and the unrelated diagnose_ai_visibility tool could be consolidated, making it slightly bloated.

Completeness4/5

The furniture hub covers the full user journey: search, detail, compare, related, photo measurement, space planning, storage, replacements, and even demand analysis. Missing features like direct purchase are handled via affiliate links. The unrelated AI visibility tool doesn't create a gap in furniture functionality.

Resources