Skip to main content
Glama

ClinicalTrials Database Stats

clinicaltrials.trials.stats
Read-onlyIdempotent

Get current statistics for the ClinicalTrials.gov database: total registered studies count and average record size in bytes. Useful for understanding data scale before bulk queries. Source: ClinicalTrials.gov v2 /stats/size endpoint (NIH US Gov, public domain, unlimited access).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dummyNoUnused parameter — included for schema compatibility. Leave empty. Returns total study count and average record size from ClinicalTrials.gov.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds valuable context about the source endpoint (ClinicalTrials.gov v2 /stats/size) and licensing (public domain, unlimited access), which goes beyond the annotations and helps the agent understand data provenance and usage.

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?

The description is two concise sentences with zero waste. It front-loads the core purpose and returns, then adds a usage hint and source/licensing information. Every sentence 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?

This is a simple stats tool with no required parameters and an output schema (though not provided inline). The description explains what is returned, the typical use case, and the source. Nothing an agent needs to decide whether to call it or to understand its result is missing.

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?

The input schema has 100% coverage; the single 'dummy' parameter is fully described as unused and for schema compatibility. The description does not add additional parameter meaning beyond what the schema provides, and there is no parameter to elaborate on, so the baseline of 3 is correct.

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 states a specific verb ('Get'), a clear resource ('current statistics for the ClinicalTrials.gov database'), and explicitly names the two outputs (total registered studies count and average record size in bytes). This distinguishes it from sibling tools like search, detail, and recruiting, which are clearly query-oriented.

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?

The description gives a clear usage context ('Useful for understanding data scale before bulk queries'), which helps an agent decide when to call this tool. It does not explicitly name alternatives or state when not to use it, but the context is sufficiently clear, so a 4 is appropriate.

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.