MoongraphMoongraph

Agent Tools Reference

Complete reference for all Agent tools and their parameters.

Agent Tools Reference

The Agent has 12 specialized tools for retrieving documents, querying graphs, and generating visualizations. This page documents all tools and their parameters.

Document tools

retrieve_chunks

Semantic search for document chunks with citations. The primary retrieval tool.

ParameterTypeDefaultDescription
querystringrequiredSearch query to find relevant chunks
limitint8Maximum chunks to return (1-50)
min_scorefloat0.0Minimum relevance score (0.0-1.0)
use_rerankingbooltrueApply reranking for better results
use_colpaliboolfalseInclude visual/image search for tables, charts, diagrams
search_modestring"hybrid"Search strategy: "semantic", "lexical", or "hybrid"

Search modes:

  • semantic — Embedding-based similarity. Best for conceptual queries.
  • lexical — BM25/full-text search. Best for exact names, quotes, identifiers.
  • hybrid — Combines both with Reciprocal Rank Fusion. Default for most queries.

Returns: Documents grouped by section, with chunks containing citation_key for inline citations.


retrieve_document

Get full document content by ID or name.

ParameterTypeDefaultDescription
document_idstringrequiredDocument ID or filename

Returns: Full document text content and metadata.


list_documents

List accessible documents with metadata and token estimates.

ParameterTypeDefaultDescription
limitint20Maximum documents to return
offsetint0Pagination offset

Returns: List of documents with filename, size, status, and estimated token count.


get_document_stats

Get collection statistics for retrieval planning.

ParameterTypeDefaultDescription
(none)No parameters

Returns: Total document count, total chunks, average document size, content type breakdown.


search_documents

Filter documents by content type, date, filename, or page count.

ParameterTypeDefaultDescription
querystringoptionalText search in filename/metadata
content_typestringoptionalFilter by MIME type
date_fromstringoptionalFilter by upload date (ISO format)
date_tostringoptionalFilter by upload date (ISO format)
min_pagesintoptionalMinimum page count
max_pagesintoptionalMaximum page count

Returns: Filtered list of documents matching criteria.


get_document_summary

Get pre-computed document or section summaries.

ParameterTypeDefaultDescription
document_idstringrequiredDocument ID
sectionstringoptionalSpecific section name

Returns: Document summary and/or section summaries.


Graph tools

list_graphs

List available knowledge graphs.

ParameterTypeDefaultDescription
(none)No parameters

Returns: List of graphs with name, document count, entity count, relationship count.


graph_overview

Get graph structure overview including types, top entities, and statistics.

ParameterTypeDefaultDescription
graph_namestringoptionalSpecific graph name (defaults to first available)

Returns: Entity types, relationship types, top connected entities, graph statistics.


Search entities by name, type, or properties.

ParameterTypeDefaultDescription
querystringoptionalSemantic search on entity labels
entity_typeslistoptionalFilter by type(s): ["PERSON", "ORGANIZATION"]
propertiesdictoptionalFilter by property values: {"role": "CEO"}
graph_namestringoptionalSpecific graph name
sort_bystring"relevance"Sort: "relevance", "connections", "label", "recent"
limitint25Maximum entities to return (1-100)
response_detailstring"compact"Detail level: "compact" or "full"
include_chunk_previewboolfalseInclude source chunk previews
include_top_connectionsboolfalseInclude top 5 connections per entity

Returns: List of entities with label, type, properties, connection count.


get_entity_sources

Get source documents and chunks for specific entities.

ParameterTypeDefaultDescription
entity_idstringrequiredEntity ID
limitint10Maximum sources to return

Returns: Source chunks and documents that mention the entity.


knowledge_graph_query

Query graph for paths and subgraphs between entities.

ParameterTypeDefaultDescription
start_entitystringrequiredStarting entity name or ID
end_entitystringoptionalTarget entity name or ID
max_hopsint3Maximum relationship hops
relationship_typeslistoptionalFilter by relationship types
graph_namestringoptionalSpecific graph name

Returns: Path(s) between entities, intermediate nodes, relationship details.


Visualization tools

get_visualization_help

Get syntax examples for creating diagrams, charts, and mind maps.

ParameterTypeDefaultDescription
visualization_typestringoptionalSpecific type: "mermaid", "chart", "mindmap"

Returns: Syntax examples and usage guidelines for generating visualizations.

Supported visualization types:

  • Mermaid diagrams — Flowcharts, sequence diagrams, timelines, Gantt charts, state diagrams, ER diagrams
  • Data charts — Bar, line, area, pie, radar, scatter
  • Mind maps — Hierarchical concept breakdowns

Tool behavior

Automatic selection

The Agent automatically chooses tools based on your question. You don't need to specify tools explicitly, but you can direct tool use by phrasing your question appropriately.

ModelRetry

When a tool encounters an issue (permissions, empty results, invalid parameters), it may raise a ModelRetry that prompts the Agent to try a different approach. This is shown in the tool timeline.

Permissions

Tools respect your document and graph permissions:

  • Documents require read access
  • Graphs require graph access enabled for your account
  • Team documents require team membership

On this page