Skip to main content
Glama
UpstageAI

MCP-Upstage-Server

Official
by UpstageAI

extract_information

Extract structured data from documents using custom or auto-generated schemas to process various file formats including PDF, images, and Office documents.

Instructions

Extract structured information from documents using Upstage Universal Information Extraction.

This tool can extract key information from any document type without pre-training. You can either provide a schema defining what information to extract, or let the system automatically generate an appropriate schema based on the document content.

Supported file formats: JPEG, PNG, BMP, PDF, TIFF, HEIC, DOCX, PPTX, XLSX Max file size: 50MB Max pages: 100

SCHEMA FORMAT: When auto_generate_schema is false, provide schema in this exact format: { "type": "json_schema", "json_schema": { "name": "document_schema", "schema": { "type": "object", "properties": { "field_name": { "type": "string|number|array|object", "description": "What to extract" } } } } }

Example schema_json: {"type":"json_schema","json_schema":{"name":"document_schema","schema":{"type":"object","properties":{"company_name":{"type":"string","description":"Company name"},"invoice_number":{"type":"string","description":"Invoice number"},"total_amount":{"type":"number","description":"Total amount"}}}}}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
schema_pathNo
schema_jsonNo
auto_generate_schemaNo
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure and does so effectively. It describes the tool's capabilities (extraction from multiple document types without pre-training), constraints (file formats, size limits, page limits), and operational modes (schema-provided vs auto-generated). It doesn't mention rate limits or authentication requirements, but covers the core behavioral aspects well for a tool with no annotations.

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 appropriately sized and well-structured, starting with the core purpose, then usage guidelines, technical constraints, schema format details, and an example. Every section earns its place, though the schema format explanation is quite detailed (which is necessary given the complexity). It could be slightly more front-loaded with the most critical information.

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?

Given the tool's complexity (4 parameters with 0% schema coverage, no annotations, no output schema), the description provides comprehensive context about what the tool does, how to use it, technical constraints, and parameter semantics. The main gap is the lack of information about return values or output format, which would be helpful since there's no output schema. However, it covers most other aspects thoroughly.

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?

With 0% schema description coverage for 4 parameters, the description compensates excellently by explaining all parameters' purposes and relationships. It clarifies that file_path is required, explains the schema_path vs schema_json options, details the auto_generate_schema default and behavior, and provides a comprehensive schema format example with concrete syntax. This adds substantial meaning beyond the bare input 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 the specific action ('extract structured information'), the resource ('documents'), and the technology used ('Upstage Universal Information Extraction'). It distinguishes from sibling tools like classify_document, generate_schema, and parse_document by focusing specifically on information extraction rather than classification, schema generation, or general parsing.

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 guidance on when to use this tool vs alternatives: it explains the two modes (schema-provided vs auto-generated) and mentions sibling tools like generate_schema that could be alternatives for schema creation. It also specifies technical constraints (file formats, size limits, page limits) that help determine when the tool is applicable.

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/UpstageAI/mcp-upstage-server'

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