Skip to main content
Glama

aggregate_graph

Retrieve a broad set of knowledge graph nodes for global aggregation and map-reduce tasks. Supports filtering by node type and tags.

Instructions

Retrieve a broad set of nodes bypassing standard semantic limits, optimized for global aggregation and map-reduce tasks. Supports filtering by node_type and tags.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoOptional list of tags to require.
as_ofNoISO-8601 datetime. When provided, return only nodes valid at that point in time (overrides include_invalidated).
queryNoOptional natural-language search query to rank the broad retrieval.
projectNoOptional project or workspace name used to partition memory.
agent_idNoOptional agent or client identifier used to partition memory.
max_depthNoRelationship traversal depth around matching nodes.
max_nodesNoMaximum number of nodes to return (default 100, up to 1000).
node_typesNoOptional list of node types to filter by (e.g., 'fact', 'entity').
session_idNoOptional conversation or run identifier used to partition memory.
include_invalidatedNoWhen true, include nodes whose valid_to has passed. Default false excludes expired nodes.
Behavior3/5

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

With no annotations provided, the description must convey behavioral traits. It indicates the tool is a read operation ('Retrieve') and efficient for aggregation, but does not disclose idempotency, side effects, or any access constraints. The description adds some context but leaves gaps.

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?

The description consists of two concise sentences, front-loaded with the core purpose and optimization context. Every sentence adds value, and there is no extraneous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description lacks output details; it doesn't mention the format or structure of returned nodes, which is critical for a tool intended for aggregation and map-reduce tasks. Without an output schema, this omission reduces completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% coverage, so parameters are already well-documented. The description only repeats that filtering by node_type and tags is supported, adding no new semantic information beyond the 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 tool retrieves a 'broad set of nodes' bypassing 'standard semantic limits', making it distinct from sibling tools like query_graph and get_related. It also specifies optimization for global aggregation and map-reduce tasks, which uniquely identifies its purpose.

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

Usage Guidelines4/5

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

The description implies usage for large-scale aggregation tasks by mentioning 'bypassing standard semantic limits' and 'optimized for global aggregation and map-reduce'. However, it does not explicitly state when not to use it or name alternative tools, which would strengthen guidance.

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/Abhigyan-Shekhar/Waggle-mcp'

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