Skip to main content
Glama

Aggregate studies

aggregate_studies
Read-only

Count matching studies grouped by year, subject, design, delivery_method, outcome, country, condition or species — for trends and 'how many' questions. Unknown values are counted separately.

Input Schema

NameRequiredDescriptionDefault
topNoMax buckets returned (default 40)
queryNoFull-text search terms, e.g. 'exercise fatigue lactate'
designNoStudy design
outcomeNoDirection of the reported hydrogen effect
subjectNoWho/what was studied
year_toNo
group_byYes
conditionNoCondition hub slug or name, e.g. 'blood-pressure' or 'Blood Pressure' (see list_conditions)
year_fromNo
delivery_methodNoHow hydrogen was administered
min_sample_sizeNoMinimum participants/animals

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world). The description adds a genuine behavioral fact beyond them: unknown values are counted separately, which materially affects how an agent interprets bucket results. It says nothing about bucket ordering or the default top limit, but the schema carries those.

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?

A single sentence, front-loaded with the core action and grouping facets, then the use case. No filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description does reasonably well by implying a bucket-to-count result shape and explaining unknown-value handling. Minor gaps remain around what a bucket looks like and default limiting, both of which are partly covered elsewhere.

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 73%, so most parameters are self-documenting. The description enumerates the group_by values (already in the enum) and adds a cross-reference to list_conditions for the condition slug, but several filters such as min_sample_size and the year range receive no extra meaning.

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?

States a specific verb (count) and resource (studies) plus the eight available grouping facets, and frames the intent as "trends and 'how many' questions". This clearly separates it from retrieval-style siblings like search_studies and get_study.

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?

Gives a clear use context (trends, count questions) and points to list_conditions for resolving condition values. It does not name the alternative tools or state when not to use aggregation, so no explicit exclusion.

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