Skip to main content
Glama

Get record counts

get_record_counts
Read-onlyIdempotent

Return the number of records of every table of this NET Genium instance as JSON, read-only, sorted from the largest table; in NET Genium Online the hidden statistics and synchronization tables are left out. Use it to judge the size of the tables the queries run over. It executes SELECT COUNT(*) over all tables, so it can take a long time on a large database — call it once and reuse the result instead of counting table by table with count_data.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real context beyond that: the underlying implementation (SELECT COUNT(*) over all tables), the resulting performance risk on a large database, the recommendation to cache the result, and the environment-dependent table exclusions. This is exactly the kind of behavior an agent could not infer from structured fields.

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?

Content is front-loaded with the core behavior first, then the environment caveat, then the usage and performance advice. The third sentence is dense, packing implementation detail, timing warning and caching advice into one em-dash construction, but every clause earns its place.

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 no-parameter read tool with no output schema, the description covers what is returned (per-table record counts as JSON), the ordering, exclusions, expected latency, and caching guidance. Nothing an agent needs to invoke 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?

The tool takes zero parameters, so nothing needs documenting beyond the implicit no-argument invocation. The description consistently frames it as a whole-instance, unfiltered operation, which reinforces that there is no scoping input to supply.

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 names a specific verb and resource (return the number of records of every table), the output format (JSON), the ordering (largest table first), and the scope caveat (hidden statistics and synchronization tables excluded in NET Genium Online). This is clearly distinguishable from the sibling count_data, which it explicitly mentions as the per-table alternative.

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?

It states when to use it ('judge the size of the tables the queries run over') and when to prefer the alternative ('call it once and reuse the result instead of counting table by table with count_data'). Both the positive and negative routing conditions are explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources