Skip to main content
Glama
onion-ai

onion-mcp-server

Official
by onion-ai

ai_extract

Extract structured information from text, including names, places, times, keywords, numbers, emails, URLs, and custom fields. Output as JSON or markdown.

Instructions

从文本中提取结构化信息,支持:人名、地名、时间、关键词、数字、邮箱、URL、自定义字段。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes要提取信息的文本
fieldsNo要提取的字段列表,如: ["人名","地名","时间","关键词","数字","邮箱","URL"] 或自定义字段如 ["产品名","价格","联系方式"]
output_formatNo输出格式: json / markdown(默认 markdown)markdown
Behavior3/5

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

No annotations provided, so description carries burden. It lists supported fields but doesn't disclose limitations, error behavior, or output details. Schema covers parameter descriptions but description adds no extra behavioral context beyond field listing.

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?

Single sentence with no wasted words. Front-loaded with core purpose, efficiently lists supported fields and custom capability.

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 tool with 3 parameters and no output schema, description covers key aspects: supported fields and custom fields. Could mention output_format but that is covered in schema. Adequately complete for an extraction tool.

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 covers 100% of parameters with descriptions, so baseline is 3. Description adds value by listing specific supported fields and giving examples of custom fields, enhancing meaning beyond 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?

Description clearly states the verb 'extract' and resource 'structured information from text', listing supported entity types. It distinguishes from sibling tools like ai_chat or ai_summarize by focusing on extraction.

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

Usage Guidelines3/5

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

No explicit guidance on when to use this tool vs alternatives. The description implies its use for extraction tasks but doesn't state when not to use or give context on prerequisites. Adequate but lacks explicit direction.

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/onion-ai/mcp-server'

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