Skip to main content
Glama

extract_structured

Extract structured, cited evidence from a PDF library by executing predefined questions, producing a markdown table for systematic-review scaffolding.

Instructions

Extract a structured, cited evidence brief on a topic from the PDF library.

Elicit-style structured extraction: runs a fixed question set over the indexed
library (PaperQA2) and assembles a markdown table — one row per field, each
answer carrying its citations. Useful for systematic-review scaffolding.

Args:
    topic: The subject to extract on (e.g. "HAT passive screening sensitivity").
    fields: Optional comma-separated fields to extract. Default set covers
            population, design, sample size, outcome, finding, limitations.
    scope: Which index to query ("default" or "ph_library"). Build it first
           with index_library_pdfs().

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicYes
fieldsNo
scopeNodefault

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the mechanism (runs a fixed question set over PaperQA2, assembles a markdown table), and notes the prerequisite (scope must be built with index_library_pdfs()). No destructive actions implied, and the behavior is well described.

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 concise with three focused paragraphs: purpose, output format and use case, parameter details. It is front-loaded and efficient, with no unnecessary words.

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?

The description covers purpose, output format (markdown table with citations), parameter details, and prerequisite (indexing). With an output schema present (though not shown), the description is sufficient for an agent to understand the tool's behavior and requirements.

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

Parameters4/5

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

Schema description coverage is 0%, but the description compensates by explaining all three parameters in the Args section: topic (subject), fields (optional comma-separated, default set), scope (index, with build note). This adds clear meaning beyond the bare 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 it extracts a structured, cited evidence brief from the PDF library using a fixed question set, producing a markdown table with citations. This distinguishes it from sibling tools like search_literature or ask_library by focusing on structured extraction for systematic-review scaffolding.

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?

The description provides the use case ('systematic-review scaffolding') and explains parameters (topic, fields, scope) but does not explicitly state when not to use it or mention alternatives among siblings, though the context is clear.

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/SVerITG/Metis_PH'

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