Skip to main content
Glama

clinicaltrials_stats_field_values

Read-only

Returns registry-wide value statistics for ClinicalTrials.gov fields: top values with study counts for enum and text fields (for example the most common conditions, lead sponsors or location countries), ranges for dates and numbers and true/false counts. Needs fields (piece names from clinicaltrials_studies_metadata) or types.

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_values"
  }
}

Input Schema

NameRequiredDescriptionDefault
typesNoComma-separated field types. Documented values: ENUM, STRING, DATE, INTEGER, NUMBER, BOOLEAN.
fieldsNoComma-separated piece names or field paths of leaf 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

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds useful behavioral context about what the aggregation produces (counts, ranges, boolean tallies) and that results are registry-wide, but says nothing about cost, pagination, truncation of 'top values', or behavior when both parameters are supplied or neither is.

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 core purpose, and every clause carries information. The second sentence is somewhat compressed and could separate the prerequisite from the parameter definition more cleanly.

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?

With an output schema present and annotations covering safety, the description needn't explain return values in detail, and it doesn't have to. But with zero required parameters, an agent needs to know what happens when neither is provided and how 'fields' and 'types' interact, and that 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?

Schema coverage is 100%, so the baseline is 3, and the description earns an increment by explaining that 'fields' takes piece names discoverable via clinicaltrials_studies_metadata and by illustrating which field kinds yield which statistics. It still doesn't clarify the relationship or precedence between 'fields' and 'types'.

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 opens with a specific verb+resource ('Returns registry-wide value statistics for ClinicalTrials.gov fields') and concretely enumerates the three result shapes: top values with study counts, ranges, and true/false counts. It does not name or distinguish itself from nearby siblings such as clinicaltrials_stats_field_sizes or clinicaltrials_studies_enums, so it stops 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 Guidelines3/5

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

'Needs fields (piece names from clinicaltrials_studies_metadata) or types' establishes a prerequisite and implicitly points at the metadata tool for discovering field names. However, it gives no explicit when-to-use versus when-not-to-use guidance relative to the sibling stats/enum/facet tools, and leaves ambiguous whether the two parameters are alternatives or combinable.

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.