Skip to main content
Glama

palace_kg_stats

Returns summary counts for the knowledge graph, including entities, triples, current versus ended facts, and predicates in use, so you can check graph coverage before querying.

Instructions

Return summary counts for the knowledge graph: number of entities, total triples, current versus ended facts, and the relationship types (predicates) in use. Read-only, no arguments. Use it to see whether the graph is populated or which predicates exist before calling palace_kg_query; for the drawer store use palace_status, and for the room graph use palace_graph_stats.

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": "palace_kg_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.5

TDQS

A4.7/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it does state "Read-only, no arguments" plus what the counts cover. It stops short of describing cost, caching, or performance characteristics, but for a zero-argument read-only statistics call the essential behavioral profile (safe, side-effect free, deterministic output shape) is conveyed.

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?

Two sentences, front-loaded with purpose and return contents, then routing guidance to siblings. Every clause carries information — return contents, safety profile, and alternative routing — with no redundant restatement of the name.

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

Completeness5/5

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

For a zero-argument stats tool with no output schema, the description fully covers what is returned (entity count, triples, current vs ended facts, predicates), that it is read-only, and where to look for adjacent metrics. Nothing an agent needs in order to call it correctly or interpret the result is missing.

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?

Zero parameters, so baseline is 4. The description reinforces this by stating "no arguments," removing any ambiguity about whether filters or scopes are accepted.

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?

States a specific verb and resource ("Return summary counts for the knowledge graph") and enumerates the exact contents: entity count, total triples, current vs ended facts, and predicates in use. It also explicitly separates itself from palace_status (drawer store) and palace_graph_stats (room graph), so an agent can distinguish it from siblings without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use guidance ("see whether the graph is populated or which predicates exist before calling palace_kg_query") and names the correct alternatives for adjacent domains (palace_status for drawers, palace_graph_stats for rooms). Both the selection condition and the exclusions are spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.