Skip to main content
Glama

List Namespaces

list_namespaces
Read-onlyIdempotent

List knowledge graph namespaces with entity and relation counts, then use the results to confirm which namespace exists before reading or writing data.

Instructions

List the namespaces of the knowledge graph, each with its number of entities and relations (0 for a namespace nothing is in yet). Use this to find out which namespaces exist before reading from or writing to one; every other tool works inside the namespace named by its required namespace input, which must exist.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
namespacesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.3/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description's added value is the return-shape note and the rule that every other tool requires an existing `namespace`; since an output schema exists, the counts detail is partly redundant, leaving a modest addition beyond annotations.

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 what is listed and what each row contains, then the usage precondition. No filler and nothing repeated from the schema or annotations.

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-parameter read tool with rich annotations and an output schema, the description covers purpose, return contents and the cross-tool precondition adequately. An agent has everything needed to decide to call it first when starting any namespace-scoped operation.

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 the baseline is 4 for an empty schema (coverage 100%, nothing to document). The description does helpfully explain the `namespace` input convention of all other tools, though that concerns siblings rather than this tool's own inputs.

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?

Names a specific verb and resource ("List the namespaces of the knowledge graph") plus the returned payload (entity and relation counts, 0 for empty namespaces). That scope cleanly separates it from the sibling mutation tools create_namespace, rename_namespace and delete_namespace without needing to name them.

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?

Gives an explicit trigger — "before reading from or writing to one" — and states the precondition that the namespace must already exist, which is exactly the routing information needed. It does not name an alternative tool or an explicit when-not case, so it falls short of a 5.

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