Skip to main content
Glama

extract_graph_v1

Extract entities, relations, and conclusions from document chunks and write them to GraphRAG tables with parallel processing for speed.

Instructions

抽取结构化图谱要素 (Async Parallel)

从文档的 chunks 中抽取实体、关系和结论,写入 GraphRAG 表。 使用并行处理以加快速度。

执行过程会实时报告 chunk 处理进度。

Args: doc_id: 文档 ID chunk_ids: 指定 chunk ID 列表(可选) mode: 模式,默认 "high_value_only" max_chunks: 最大处理 chunk 数,默认 60 llm_model: LLM 模型,默认使用配置 min_confidence: 最小置信度阈值,默认 0.8 dry_run: 是否仅预览不写入,默认 False concurrency: 并发请求数,默认 60

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idNo
chunk_idsNo
modeNohigh_value_only
max_chunksNo
llm_modelNo
min_confidenceNo
dry_runNo
concurrencyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description carries full burden. It discloses parallel processing, real-time progress, and the dry_run parameter for preview. However, it does not mention potential side effects (e.g., overwriting data), permissions required, or error behavior. The description provides moderate transparency but has gaps.

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 relatively concise, with a two-sentence summary followed by a structured Args list. However, the Args list repeats defaults already present in the schema, slightly reducing conciseness. The front-loading of the purpose is effective.

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 presence of an output schema (not shown), the description does not need to detail return values. It covers key aspects: action, target, parameters, concurrency, and dry-run mode. Missing details like idempotency or error handling are acceptable for a tool of this complexity.

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%, so the description must compensate. The Args list explains each parameter (e.g., doc_id: 文档 ID, mode: 模式). While brief, it adds meaning beyond the schema, especially for parameters like dry_run and concurrency. This compensates well for the lack of schema descriptions.

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 tool's purpose: extracting entities, relations, and conclusions from document chunks and writing to the GraphRAG table. It mentions async parallel processing and real-time progress reporting, which distinguishes it from related tools like extract_graph_missing.

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?

No explicit guidance on when to use this tool versus alternatives (e.g., extract_graph_missing). The description does not provide when-not conditions or context for selecting this tool over siblings, leaving the agent to infer usage from the purpose.

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/h-lu/paperlib-mcp'

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