Skip to main content
Glama

Extract Structured Data

lyzr_extract

Extract structured data from files, URLs, or raw text by defining an extraction schema. Specify the fields you need to turn unstructured content into usable, organized output.

Instructions

Extract structured data from a file (base64), a file URL, or raw text, according to an extraction schema.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tierNoExtraction tier (default standard)
targetNoExtraction target mode (default per_doc)
annotateNoWhether to annotate the source (default false)
file_urlNoURL of a file to extract from, instead of uploading bytes
filenameNoFilename for the uploaded file (used with file_content_base64)
full_textNoRaw text to extract from, instead of uploading a file
mime_typeNoMIME type of the uploaded file
chunk_sizeNoChunk size for extraction (default 1000)
extra_infoNoJSON string of extra metadata (default '{}')
chunk_overlapNoChunk overlap for extraction (default 100)
parser_configNoParser configuration string
extraction_schemaYesSchema string describing what fields/structure to extract
file_content_base64NoBase64-encoded file content to extract from (omit if using full_text or file_url)
Behavior2/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, but the description adds no additional behavioral context such as potential side effects, rate limits, or resource requirements. It does not clarify what happens if multiple input sources are supplied or whether extraction is deterministic. Minimal value beyond the annotations.

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?

The description is a single, front-loaded sentence that states the tool's purpose and primary input options in under 20 words. No filler, no repetition of schema details, and no unnecessary context.

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?

For a tool with 13 parameters and no output schema, the description provides only a high-level overview. It clarifies the required extraction_schema and input alternatives, but does not mention what the return value looks like, how to structure the extraction schema, or the meaning of advanced options. It is minimally sufficient for basic use but leaves significant gaps for complex scenarios.

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%, so all 13 parameters are individually documented. The description adds marginal value by summarizing the three input modes (file_content_base64, file_url, full_text) but does not explain settings like tier, annotate, chunk_size, or parser_config beyond what the schema already states. Baseline 3 is appropriate.

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?

The description uses a specific verb ('Extract') and names the resource ('structured data from a file, file URL, or raw text'), and it mentions the key input modes. It does not explicitly distinguish from sibling parse tools like lyzr_parse_pdf or lyzr_parse_text, though the 'according to an extraction schema' clause hints at a different use case.

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

Usage Guidelines2/5

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

The description provides no guidance on when to choose this tool over alternatives such as lyzr_parse_text or lyzr_parse_pdf. It does not state exclusions, prerequisites, or typical use cases beyond the basic extraction action, leaving the agent to infer when this specific tool is appropriate.

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/nandanNM/lyzr-mcp'

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