Skip to main content
Glama

Generate a depth map of an image

depth_map

Generate a depth map of an image. 1 credit per image, flat. Pass a public URL, a URL from create_upload, or (small images only, under about 2.25 MB) a base64 data URI. Charges credits from the connected Upsampler account; a failed job is refunded automatically. Result URLs expire after 3 hours (get_job reissues fresh ones) and jobs are deleted after 7 days.

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": {
      "imageUrl": "<imageUrl>"
    },
    "name": "depth_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoWait up to about 50 seconds for the result before returning (default true). If the job is still running, call get_job with the returned id.
imageUrlYesURL of the image to process, or the image encoded as a base64 data URI. Must be a publicly accessible URL (http/https), a URL from POST /uploads, or a base64 data URI. Supported formats are png, jpeg, jpg, and webp. A base64 image must be under 2.25 MB, since it travels inside the capped request body; upload anything larger. Keep the file at a URL of your own unchanged until the job completes; a file that changes after submission fails the job with a refund.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

The annotations only mark this as a non-read-only, open-world, non-idempotent, non-destructive call. The description adds accounting and lifecycle details that the annotations cannot convey: a flat 1-credit charge per image, automatic refunds on failure, result URLs expiring after 3 hours with get_job reissuing fresh ones, and jobs deleted after 7 days. Those details materially change how an agent plans the call and handles the response.

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 tight sentences, front-loaded with the action, then cost, then source options, then result lifecycle. Every sentence carries information the agent needs, and none of the wording is padding.

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?

For a 2-parameter async job-submission tool with no output schema, the description covers the gaps that matter: cost and refund policy, how to obtain a valid image reference, the polling escape hatch via get_job, and result expiry. An agent has enough to call it correctly and to handle the returned job id and credits.

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 schema already documents the wait/polling behavior, accepted formats, the 2.25 MB base64 cap, and the requirement that a self-hosted URL stay unchanged during the job. The description restates the URL and base64 options, adding only the 'about 2.25 MB' figure, so the 3 baseline 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?

States a specific verb and resource ('Generate a depth map of an image') that is unmistakable against siblings like upscale_image, colorize_image, and remove_background, even though no sibling is named explicitly. The purpose is clear from its opening clause; only explicit sibling differentiation would raise it to a 5.

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?

Gives concrete input routing: use a public URL, a URL from create_upload, or a base64 data URI only for small images under ~2.25 MB. That effectively routes large files to create_upload and long-running jobs to get_job, which are clear usage cues. It does not state exclusions such as when to prefer colorize_image or upscale_image instead, or what makes an image unsuitable for depth estimation.

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