Skip to main content
Glama

get_trial_diffs

Read-onlyIdempotent

Query Point-in-Time (PIT) ClinicalTrials.gov protocol diffs: primary completion date delays/pull-forwards, status terminations, enrollment shifts, endpoint edits, eligibility changes, and sponsor/collaborator changes.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of trial diff events to return (1-100).
sinceNoOptional ISO-8601 UTC timestamp lower bound.
sponsorNoOptional sponsor name substring filter.
eventTypeNoOptional filter: trial_completion_delayed, trial_completion_pulled_forward, trial_status_changed, trial_enrollment_changed, trial_primary_outcome_changed, trial_eligibility_changed, trial_sponsor_changed, trial_baseline_indexed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of trial diff events to return (1-100)."
  2. First observed

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, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety and stability profile is covered. The description's contribution is the 'Point-in-Time' framing, which implies you can scope results temporally, plus the taxonomy of change events. It adds nothing about ordering, pagination beyond the schema's limit, or what a returned diff event contains, which is a meaningful gap for a tool with no output schema.

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?

A single front-loaded sentence with the resource stated first and the qualifying event taxonomy trailing it; every clause is informative. Minor redundancy exists between the enumerated change types and the eventType enum already in the schema, but nothing is padding.

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?

For a four-optional-param, read-only query with full schema coverage and rich annotations, the definition supplies enough to call it correctly. The remaining shortfall is that, with no output schema, it never sketches the shape of a returned diff event (old/new values, effective dates), so an agent cannot anticipate the response format.

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%, including the enumerated eventType values and a documented limit range/default, so the schema already does the semantic work. The description's event list partially restates the eventType enum (terminations, enrollment shifts, eligibility changes) without adding syntax, aliasing, or matching semantics (e.g., how 'sponsor substring' is matched, whether 'since' is exclusive). Baseline 3 is appropriate.

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 names a specific verb ('Query'), a specific resource ('ClinicalTrials.gov protocol diffs'), and the temporal qualifier 'Point-in-Time (PIT)', then enumerates the exact change categories (completion date slips, status terminations, enrollment shifts, endpoint/eligibility/sponsor changes). An agent can tell this is a change-tracking tool rather than a static trial search. It never names a sibling such as get_trial_history, so differentiation is left inferential.

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: an agent can infer it should call this when it wants to know what changed in a trial's protocol, not the trial's current state. There is no explicit when-to-use statement, no exclusion ('use X instead for full trial records'), and no note on prerequisites or expected freshness of the PIT data.

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.