Skip to main content
Glama

estimate_depth

Generates a 16-bit depth map from a photo, with brighter pixels closer, to feed Blender's photo_to_scene tool for parallax scenes.

Instructions

Estimate a depth map for a photo with Depth Anything V2 small (ONNX, CPU; ~94 MB model, downloaded once and cached; override the location with the DEPTH_MODEL env var). Returns a 16-bit PNG (brighter = closer) plus its size. Feed the result to the photo_to_scene Blender tool to build a parallax scene.

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": {
      "image_path": "<image_path>"
    },
    "name": "estimate_depth"
  }
}

Input Schema

NameRequiredDescriptionDefault
blurNo
gammaNo
out_pathNo
long_sideNo
image_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description does real work: it discloses the runtime (CPU ONNX), a one-time ~94 MB model download with caching, the DEPTH_MODEL env var override, and the output encoding convention (16-bit PNG, brighter = closer). It omits failure modes, expected runtime, and whether an existing out_path is overwritten, which keeps it below the top band.

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 purpose and output, then the downstream handoff. The parenthetical model details are dense but each fact earns its place; minor redundancy in spelling out 'ONNX, CPU' and size twice.

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?

No output schema exists, and the description does cover the return (16-bit PNG plus its size), which is adequate there. But for a 5-parameter tool with zero schema coverage, the complete absence of parameter guidance leaves the definition insufficient for correct invocation.

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

Parameters2/5

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

There are 5 parameters with 0% schema description coverage, so the description must carry the meaning. Instead it names none of them: blur, gamma, long_side, out_path, and image_path are left entirely unexplained, leaving an agent to guess at defaults, units, and the effect of blur/gamma on the depth map.

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 opens with a specific verb+resource: 'Estimate a depth map for a photo,' names the exact model (Depth Anything V2 small, ONNX, CPU), and states the output artifact (16-bit PNG, brighter = closer). It is clearly distinguishable from the sibling photo_to_scene, which it explicitly positions as the downstream consumer rather than a substitute.

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?

It gives clear context for use by naming the follow-on step ('Feed the result to the photo_to_scene Blender tool to build a parallax scene'), which tells an agent where this sits in the pipeline. It stops short of explicit when-not-to-use or preconditions (e.g., image format/size limits), so it is clear but not fully routing.

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