Skip to main content
Glama

clinicaltrials_stats_field_sizes

Read-only

Returns how many items ClinicalTrials.gov list fields hold across all studies (for example how many studies list two phases or ten conditions), with min, max and study counts per size. Pass list-field piece names in fields, or none for all list fields.

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

Input Schema

NameRequiredDescriptionDefault
fieldsNoComma-separated piece names or field paths of list fields

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already establish read-only and open-world behavior, so the description's job is to add context, which it partly does by stating the aggregation spans 'all studies' and that results include min, max, and study counts per size. It does not address the cost or scope implications of scanning every study, which matters given idempotentHint=false, nor does it explain ordering or limits. No contradiction with the annotations.

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?

Two sentences, front-loaded with the purpose before the parameter note, with no filler. The first sentence is dense with nested parenthetical examples but still readable.

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?

An output schema exists, so return structure need not be spelled out, and the safety profile is covered by annotations. However, the tool depends on domain jargon ('list-field piece names') without pointing to where those names come from, such as a metadata or field-values sibling, leaving a gap for an agent that lacks that vocabulary.

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 coverage is 100%, so the parameter's type and meaning are already documented. The description adds only the default semantics ('or none for all list fields'), a modest but real clarification, while leaving 'piece names' jargon unexplained. Baseline 3 fits when the schema carries the definition.

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?

The description gives a specific verb and resource: it returns counts of how many list-field items studies hold, with min, max, and study counts per size, plus a concrete example ('how many studies list two phases'). This clearly separates it from value-oriented siblings like clinicaltrials_stats_field_values, though it never names an alternative explicitly.

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?

Usage is only implied: the agent can infer it should call this when it wants a distribution of list-field sizes rather than the values themselves. The only explicit direction is parameter guidance ('Pass list-field piece names in fields, or none for all list fields'), with no statement of when to prefer this over clinicaltrials_stats_size or clinicaltrials_stats_field_values.

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.