Skip to main content
Glama
MCP Kafka Schema Reg

MCP Kafka Schema Reg

Count Contexts

count_contexts
Read-onlyIdempotent

Counts the number of contexts in a registry to help inventory and manage Kafka Schema Registry namespaces.

Instructions

Count the number of contexts in a registry.

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

Input Schema

NameRequiredDescriptionDefault
registryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.2.2
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / registry / title
      Removed value: -"Registry"
  2. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. Beyond that, the description adds nothing: it does not say what happens when the registry argument is omitted or null, whether it falls back to the default registry, or whether the result covers the entire registry or only visible contexts.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with zero padding, which is well structured for a simple tool. Its brevity, however, edges into under-specification rather than disciplined conciseness.

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 low-complexity counting tool with no output schema and safe annotations, the core purpose is adequately conveyed. What remains missing is the meaning of the null registry default and any statement of return format, which an agent needs to call this correctly without guessing.

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

Parameters1/5

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

There is one optional parameter with 0% schema description coverage, so the description carries the full burden here and adds no meaning beyond restating 'registry'. The null default and its implication (presumably the default registry) are unexplained in both schema and description.

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 ('Count the number of contexts') scoped to a registry, which is clearly distinct from aggregation siblings like count_schemas or retrieval siblings like list_contexts. Differentiation is implied by the 'contexts' resource rather than stated explicitly, so it falls just short of a 5.

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

Usage Guidelines2/5

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

The description gives no when-to-use guidance and names no alternative. It does not say to prefer this over list_contexts when only a total is needed, nor when a count per registry versus a count across registries is appropriate, even though compare_contexts_across_registries and count_schemas exist nearby.

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