Skip to main content
Glama
@pixelvault-dev/local-mcp

@pixelvault-dev/local-mcp

Get image

get_image

Retrieve metadata for a PixelVault image by ID, including CDN URL, dimensions, size, and MIME type so you can inspect or transform the asset.

Instructions

Get metadata (CDN URL, size, MIME type, dimensions) for one PixelVault image by id (GET /v1/images/:id). Image CDN URLs support on-the-fly transforms via query params — e.g. ?w=400&fit=cover (resize/crop), ?fmt=webp (format), ?segment=foreground (AI background removal → transparent PNG), and effects like ?blur=30&saturation=0&rotate=90. Or call transform_image to build a valid transform URL for you. PDFs are forced downloads and reject transforms. See https://pixelvault.dev/docs/transforms/.

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": {
      "id": "<id>"
    },
    "name": "get_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesImage id to fetch, e.g. img_abc123.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does substantial work: it discloses the output shape (required since there is no output schema), the transform query-param surface (?w, ?fmt, ?segment, ?blur), and a non-obvious edge case — PDFs are forced downloads and reject transforms. It omits auth/permission needs and behavior for an unknown or deleted id, which keeps it off a 5.

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 core purpose and endpoint are front-loaded in the first clause, followed by the transform capability and the PDF caveat. The transform effects menu is longer than strictly needed for a metadata fetch and arguably belongs to transform_image, but it is bounded and each example is concrete.

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?

For a one-parameter read tool with no output schema, listing the returned fields plus the PDF/transform exclusion covers most of what an agent needs to call it correctly. Only error/not-found behavior and auth prerequisites are left implicit.

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 description coverage is 100% and the single id parameter is already documented with an example (img_abc123) in the schema. The description adds no further semantics about the id format or validity, so the baseline of 3 applies.

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 and resource ("Get metadata ... for one PixelVault image by id"), enumerates the returned fields (CDN URL, size, MIME type, dimensions), and pins the underlying endpoint GET /v1/images/:id. That scope distinguishes it cleanly from list_images (bulk) and transform_image (URL construction).

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 routes the agent to transform_image when it needs a valid transform URL instead of hand-building one, which is a real alternative-path decision. It does not spell out the negative case (e.g. use list_images when the id is unknown), so guidance is clear but not exhaustive.

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