Skip to main content
Glama

Clear Research Session Sources

clear_research_sources
DestructiveIdempotent

Legacy bulk removal: remove all sources from this Hub session without deleting the underlying studies or files. Use only when the user requests clearing the session.

Input Schema

NameRequiredDescriptionDefault
session_idYes
organization_idNoOrganization for this operation and billing. Use list_organizations to choose an active membership.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / organization_id / description
      Previous value: -"Platform admins only: select an organization for this operation. Required when changing another organization’s study or using its wallet."New value: +"Organization for this operation and billing. Use list_organizations to choose an active membership."
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is known. The description adds genuinely non-obvious scope information: sources are detached from the session but the underlying studies and files survive, which is exactly the distinction an agent needs before calling a destructive tool. It omits permission/org requirements and whether the clear is reversible.

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?

Two sentences, zero filler, with the destructive scope stated before the usage restriction. Every clause earns its place.

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?

An output schema exists and annotations cover safety, so the description only needs to convey purpose and blast radius, which it does. The one remaining gap is operational prerequisites for organization_id, though the schema points to list_organizations.

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 50%: organization_id is documented in the schema, but session_id carries no description and the description only says "this Hub session" without noting the UUID format or that the session must already exist. The description adds almost nothing beyond the schema, which is the baseline expectation at this coverage level.

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 scope ("bulk removal" of "all sources from this Hub session") and distinguishes the operation from destructive file/study deletion. It does not explicitly name its closest siblings (remove_research_source, remove_research_study), but the word "all" versus a single source does the differentiating work implicitly.

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?

It states a clear condition ("Use only when the user requests clearing the session") and labels the tool "Legacy", which warns an agent to prefer newer paths. It never names the alternative tool to use instead, so the routing is implied rather than spelled out.

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