Skip to main content
Glama

get_material_image

Fetches a bounded wiki material image or cropped region for a vision model, returning the image block and source hash so you can transcribe it faithfully.

Instructions

Return an actual bounded image block for the connected model's vision, plus source hash.

region optionally crops [left, top, right, bottom] in 0..1. Transcribe faithfully, mark uncertainties, then save_transcription. A crop must be marked partial when saved.

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": {
      "attachment_id": "<attachment_id>"
    },
    "name": "get_material_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
regionNo
attachment_idYes

Output Schema

NameRequiredDescriptionDefault
pageYes
widthYes
heightYes
metadataYes
mime_typeYes
local_pathYes
size_bytesYes
source_urlYes
source_hashYes
instructionsYes
attachment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and destructiveHint=false, so the safety profile is supplied. The description adds useful behavioral context (source hash for provenance, bounded image block, partial-crop marking requirement) but never explains why a 'get' tool is flagged non-read-only or what state it touches, which is the main open question an agent would have.

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?

Front-loaded with the return value, then region semantics, then the transcription workflow. Four short lines, no filler. The final sentence about partial crops is slightly displaced from the region discussion but still earns its place.

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?

An output schema exists, so return values need not be described, and the region format is covered. Still missing for a 3-parameter tool with 0% schema coverage: what 'page' does when an attachment has multiple pages, and any hint at the non-read-only side effect implied by annotations.

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 0%, so the description must carry the load, and it does explain region fully: '[left, top, right, bottom] in 0..1' plus the fact that it optionally crops. It says nothing about page (pagination of multi-page attachments) or attachment_id, leaving two of three parameters undocumented in both places.

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: 'Return an actual bounded image block for the connected model's vision, plus source hash.' That is concrete enough that an agent knows what comes back. It does not, however, distinguish itself from siblings like read_attachment or download_attachment, which sound like plausible alternatives for retrieving attachment content.

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

Usage Guidelines3/5

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

Gives a downstream workflow ('Transcribe faithfully, mark uncertainties, then save_transcription') and a persistence rule ('A crop must be marked partial when saved'), which is real guidance. It never says when to reach for this tool rather than read_attachment/download_attachment, so tool selection is still left to inference.

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