Skip to main content
Glama

get_image

Fetch datasheet figure images using opaque ref tokens from search or lookup. Returns each image with caption and page metadata; non-image refs list the nearest available figures.

Instructions

Fetch datasheet figure images (PNG/JPEG) for opaque ref tokens obtained from search/lookup/get_segments. Returns each image plus its caption/description/page metadata. Only type='image' segments have image data; a ref that is not one comes back as an error record whose available_images lists the document's figures nearest that ref's page and section, closest first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refsYesOpaque `ref` tokens (from search/lookup/get_segments) of image segments; non-image segments return an error record.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • changedInput schema / properties / refs / description
      Previous value: -"Opaque `ref` tokens (from search/lookup/get) of image segments; non-image segments return an error record."New value: +"Opaque `ref` tokens (from search/lookup/get_segments) of image segments; non-image segments return an error record."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description fully carries behavioral disclosure. It states what is returned (image plus caption/description/page metadata), explicitly warns that non-image refs produce an error record, and explains the fallback behavior with `available_images` and closest-first ordering. This is rich edge-case disclosure for a simple tool.

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?

Two sentences front-load the core action and then pack in return metadata, the image-segment constraint, and error behavior without fluff. Every clause earns its place, and the structure is easy for an agent to parse.

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 single-parameter tool with no output schema and no annotations, this description is unusually complete: it covers input provenance, valid input type, return contents, and invalid-input behavior. There is no missing information that an agent needs to invoke it correctly.

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 schema already documents that `refs` are opaque tokens from search/lookup/get_segments of image segments and that non-image segments return an error record. The description largely restates this, adding no meaningful parameter-level meaning beyond the schema.

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 and resource: 'Fetch datasheet figure images (PNG/JPEG)' for opaque `ref` tokens. It clearly distinguishes this from siblings by scoping it to image segments and by naming the source tools (search/lookup/get_segments) rather than describing general segment retrieval.

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 states that refs must come from search/lookup/get_segments and that only `type='image'` segments have image data, giving an explicit when-to-use boundary. It does not name an alternative tool for non-image segments, but the error behavior makes the intended use clear.

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