get_metadata
Retrieve document metadata, structure, and key terms to analyze content organization and identify important topics using TF-IDF scoring.
Instructions
Get metadata, structure, and statistics for a document or segment.
Includes top terms by TF-IDF.
Args: document_id: ID of the document to get metadata for. segment_id: ID of the segment to get metadata for. include_structure: Include document structure in response. top_terms: Number of top terms to return (default: 10).
Returns: Metadata including structure and top terms.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | No | ||
| segment_id | No | ||
| include_structure | No | ||
| top_terms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||