Skip to main content
Glama

Database info

db_info
Read-onlyIdempotent

Returns the total number of entries held in the Mothdex database, letting you check catalog size without running a search.

Instructions

How many entries the database holds.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
total_entriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety and repeatability profile is covered. The description adds nothing beyond that: it does not say whether the count spans the whole database, whether it includes entries hidden from search, or how it relates to openWorldHint. The phrasing 'the database' arguably suggests a single local scope, which sits slightly at odds with an open-world hint, though not enough to be a contradiction.

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 short sentence with no filler, and the key noun (entries) is placed early. It is arguably over-compressed rather than padded, but nothing is redundant.

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?

The tool is simple, parameterless, and has an output schema, so return-value details are rightly omitted. Still, for a counting operation an agent would benefit from knowing the scope of the count and whether it is exact or approximate, and none of that is present.

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 there is nothing for the description to disambiguate; the schema is trivially complete at 100% coverage. The baseline for a parameterless tool applies without any compensating burden.

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

Purpose3/5

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

The sentence identifies the resource (a database) and the fact being reported (how many entries it holds), but it is phrased as a fragment with no verb and no explicit statement that the tool returns a count. An agent can infer the purpose, though it must supply the verb itself; no sibling is referenced to sharpen the distinction from get_entry or search_entries.

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?

There is no guidance on when to call this versus siblings such as search_entries or get_entry, and no indication of whether it is cheap, cached, or worth calling before a listing operation. Usage is left entirely to inference from the one-line purpose.

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