Skip to main content
Glama

analyze_trial_phases

Analyze the distribution of trial phases for given search criteria.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sponsorsNoSponsors to analyze
conditionsNoMedical conditions to analyze
max_studiesNoMaximum number of studies to analyze
interventionsNoInterventions to analyze

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / conditions / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / conditions / default
      Removed value: -null
    • addedInput schema / properties / conditions / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / conditions / type
      Added value: +"array"
    • removedInput schema / properties / interventions / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / interventions / default
      Removed value: -null
    • addedInput schema / properties / interventions / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / interventions / type
      Added value: +"array"
    • changedInput schema / properties / max_studies / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / sponsors / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / sponsors / default
      Removed value: -null
    • addedInput schema / properties / sponsors / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / sponsors / type
      Added value: +"array"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden but fails to disclose critical behavioral traits: the output format (what the 'distribution' looks like structurally), the implication that all parameters are optional (risking unbounded queries), or performance characteristics of analyzing up to 1000 studies.

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?

The single sentence is front-loaded with the action verb and contains no redundant or wasteful language. However, given the lack of annotations and output schema, the extreme brevity contributes to under-specification rather than efficient communication.

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

Completeness2/5

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

Inadequate for a tool with no annotations and no output schema. The description fails to describe the return value (what constitutes a 'distribution'), does not explain default behavior when optional criteria are omitted, and omits any mention of the max_studies limit behavior despite it being a key constraint.

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 description coverage is 100%, establishing a baseline of 3. The description adds that parameters function as 'search criteria' and specifies the analysis targets 'trial phases,' providing semantic glue, but does not elaborate on parameter interaction effects or data formats beyond the schema.

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 clearly states the tool analyzes the distribution of trial phases, using specific verbs and resources. However, it misses the opportunity to explicitly distinguish this analytical/aggregation function from the numerous sibling 'search_trials_*' tools that retrieve individual records.

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?

No explicit guidance on when to use this versus the ten sibling search tools. The agent must infer that 'analyze' implies aggregation while 'search' implies retrieval, but no prerequisites, exclusions, or decision criteria are provided.

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