Skip to main content
Glama
mcp-local-reference

mcp-local-reference

list_figures

Detect figures and images embedded in a reference PDF and return each figure's page number, bounding box, and pixel dimensions for cropping specific figures as images.

Instructions

Detect figures and images embedded in a reference's PDF.

    Returns a JSON list with each figure's page number, bounding box
    (in PDF points), and pixel dimensions.  Pass the bbox values to
    ``crop_figure`` to extract a specific figure as an image.

    Args:
        item_key: The Zotero item key.
    

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": {
      "item_key": "<item_key>"
    },
    "name": "list_figures"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_keyYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are present, so the description must carry behavioral disclosure. It clearly implies a read-only detection/listing operation and describes the returned fields (page number, bbox, pixel dimensions), plus the follow-on extraction flow; it omits permission or failure behavior, but for a simple read tool this is substantial.

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?

Front-loads the purpose, then the return shape, then the crop_figure handoff, then a compact Args note. No redundant wording; the structure is easy to scan.

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-only listing tool with an output schema, the definition covers purpose, result fields, and next step. Remaining gaps—how to obtain item_key and behavior when no PDF or figures exist—are minor but real.

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?

The only parameter has no schema description; the description adds that item_key is a Zotero item key, which is useful domain meaning. It still does not explain where to obtain the key or its format, so compensation for the low schema coverage is partial.

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 ('Detect figures and images') and scopes it to a reference's PDF, which distinguishes it from local-PDF siblings such as list_local_figures. It also identifies the output fields and the follow-on crop_figure action.

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 a clear downstream use ('Pass the bbox values to crop_figure...') and the context is implicit in 'reference's PDF' and item_key. It does not explicitly state when to choose this over list_local_figures or what to do if the reference has no PDF, but the usage context is still clear.

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