Skip to main content
Glama

create_cluster_snapshot

Compute connected-components clusters for Country or City catalogs at a chosen similarity level, then freeze the result into an immutable database snapshot for stable analysis.

Instructions

Compute connected-components clustering and freeze it immediately into an immutable database snapshot.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target_type": "<target_type>",
      "level": "<level>",
      "title": "<title>"
    },
    "name": "create_cluster_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelYesSimilarity granularity level (1 to 15)
titleYesDescriptive title for the frozen snapshot (e.g. 'Full Catalog Zero-Singleton Snapshot (15)')
target_typeYesTarget entity class: Country or City
full_coverageNoForce 100% catalog coverage (zero singletons)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose two meaningful traits beyond the schema — the snapshot is immutable and creation is immediate (not deferred). It does not disclose whether clustering is expensive/long-running (the presence of get_job_status suggests possible async behavior), what permissions are required, or whether repeated calls with the same level create duplicates.

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?

A single front-loaded sentence that names the operation and the persistence behavior with no filler. Every clause earns its place.

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

Completeness3/5

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

For a write tool with no annotations and no output schema, the definition explains what is produced conceptually but not how the created snapshot is identified afterward, whether the call is synchronous, or how it relates to list_cluster_snapshots/get_cluster_snapshot for verification. Adequate but with clear gaps.

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?

Schema description coverage is 100%, so all four parameters including the level range, target_type enum, and full_coverage flag are already documented in the schema. The description adds only the conceptual link that 'connected-components clustering' is what level granularity controls, which is a marginal gain.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Compute connected-components clustering' plus the additional action 'freeze it immediately into an immutable database snapshot'. This distinguishes it from a pure compute operation and from the reporting siblings, though it never names compute_clusters or create_cluster_report explicitly as the non-persisting alternatives.

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

Usage Guidelines3/5

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

The word 'immediately' and 'immutable' imply this is the persist-now variant, so the when-to-use is inferable, but there is no explicit statement of when to prefer compute_clusters or create_cluster_report instead, and no prerequisites or exclusions are given.

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