Skip to main content
Glama

analyze_figure_for_search

Analyze a scientific image or figure to extract key terms and automatically search for related biomedical literature.

Instructions

Analyze a scientific figure or image for literature search.

═══════════════════════════════════════════════════════════════════════ 🔬 VISION-TO-LITERATURE SEARCH (Experimental) ═══════════════════════════════════════════════════════════════════════

This tool enables searching for scientific literature based on images.

WORKFLOW (Agent MUST follow all steps automatically): ─────────────────────────────────────────────────────────

  1. Provide an image (URL or base64-encoded)

  2. This tool returns the image using MCP ImageContent protocol

  3. YOU (the Agent) analyze the image using your vision capabilities

  4. Extract relevant ENGLISH search terms from the image

  5. IMMEDIATELY call search_biomedical_images() or unified_search() with the extracted terms - DO NOT wait for user confirmation

  6. Return both the analysis and search results to the user

⚠️ IMPORTANT RULES: ────────────────

  • ALL search queries must be in ENGLISH (Open-i requirement)

  • After analyzing the image, proceed to search automatically

  • Do NOT just describe the image and stop - complete the full workflow

  • If the image shows a medical condition, extract the medical term in English

SEARCH TYPES: ─────────────

  • "comprehensive": General analysis, extract all relevant terms (default)

  • "methodology": Focus on methods, equipment, techniques shown

  • "results": Focus on data, graphs, statistical findings

  • "structure": Focus on molecular/chemical structures

  • "medical": Focus on clinical/medical imaging findings

USE CASES: ──────────

  • 📊 Scientific figures → Find papers with similar data/charts

  • 🔬 Microscopy images → Find related research

  • 🧬 Molecular structures → Find papers about the compound

  • 📈 Graphs/plots → Find papers with similar analyses

  • 🏥 Medical images → Find case reports or clinical studies

  • ⚗️ Lab equipment → Find methodology papers

IMPORTANT: ────────── After analyzing the image, IMMEDIATELY search for related literature. Do NOT ask the user "do you want me to search?" — just do it. Use English medical terminology in all search queries.

Args: image: Base64-encoded image data OR data URI (data:image/png;base64,...) url: URL of the image to analyze context: Optional context about what to look for in the image search_type: Type of analysis focus (comprehensive/methodology/results/structure/medical)

Returns: List containing: - ImageContent: The image for you to analyze - TextContent: Instructions for next steps

Example: analyze_figure_for_search(url="https://example.com/figure1.png") analyze_figure_for_search(url="https://...", search_type="medical") analyze_figure_for_search(image="data:image/png;base64,iVBORw0...")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageNo
urlNo
contextNo
search_typeNocomprehensive

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Since no annotations are provided, the description carries full burden. It fully discloses the experimental nature, the workflow (return image, then agent must analyze and search), the required English terms, and the expected agent actions. No contradictions.

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 description is well-structured with sections and emoji, but slightly verbose. It includes redundant instructions (e.g., repeated reminders to search automatically) and an extensive use cases list that could be shortened.

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?

Given the output schema (not shown) and the detailed parameter descriptions, the description is highly complete. It covers input, output, workflow, rules, use cases, search types, and examples. No gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description includes an 'Args:' section that explains each parameter (image, url, context, search_type) with examples. This adds 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 clearly states 'Analyze a scientific figure or image for literature search' and distinguishes from sibling search tools by specifying that after analysis, the agent should call search_biomedical_images or unified_search. It provides specific verb and resource.

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

Usage Guidelines5/5

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

The description provides explicit workflow steps, rules (e.g., English search, automatic searching), search types, and use cases. It tells the agent exactly when to use this tool and to proceed without user confirmation.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/u9401066/pubmed-search-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server