Skip to main content
Glama

remove_cases_from_collection

DestructiveIdempotent

Remove test cases from a test collection, permanently deleting their recorded status and step results while retaining the cases in the project library.

Instructions

Remove test cases from a test collection. Returns collectionId, collectionName and removed (count of case rows actually deleted); ids not present in the collection are ignored rather than raising an error. Destructive and not reversible: the recorded status and step results for those cases in this collection are deleted with them, while the test cases themselves stay in the project library. add_cases_to_collection is the inverse. To retire the whole collection instead use delete_test_collection, which archives it and preserves executions; to drop a source group from an Executions-page container use remove_source_from_execution; to archive the case itself project-wide use delete_test_case. collectionId comes from list_test_collections; caseIds are the numeric internal ids from list_test_cases, not TC-numbers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
caseIdsYesNumeric test case IDs to remove (e.g., [1, 2, 3])
collectionIdYesTest collection UUID

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.5.0

TDQS

A5/5.0
Behavior5/5

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

Beyond annotations, it discloses that action is destructive and not reversible, deletes status/step results for these cases in this collection, ignores ids not present instead of raising an error, and preserves the test cases themselves in the project library. This aligns with destructiveHint=true and idempotentHint=true and adds concrete consequences, so no contradiction exists.

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?

The definition opens with a crisp one-summary action, then uses each following sentence for a high-value detail: return value, edge-case behavior, destructive consequence set, and sibling routing. No filler or restatement of schema-aware items; the text is dense but fully purposeful.

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

Completeness5/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 compensates by naming the return values (collectionId, collectionName, removed) and the count semantics. It covers error behavior, idempotency, and the scope of damage, and it routes all nearby sibling cases. An agent has enough to decide when to call it and to establish expectation about the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Even though the schema covers both parameters, the description adds meaningful provenance: collectionId comes from list_test_collections, and caseIds are the numeric internal ids from list_test_cases, explicitly warning against TC-numbers. That disambiguates a common source error for this API family and goes well beyond the field descriptions.

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?

The description leads with a specific verb+resource pair: 'Remove test cases from a test collection.' It also disambiguates from nearby tools by explaining that test cases themselves stay in the project while the collection membership is removed, and it positions delete_test_case as the tool for project-wide case archival.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description explicitly names the inverse operation (add_cases_to_collection) and gives when-to-use alternatives for related but distinct scenarios: delete_test_collection for retiring the whole collection, remove_source_from_execution for source groups on an Executions page, and delete_test_case for archiving the case project-wide. It also tells the agent where IDs come from, which is a definitive selection and parameter-prefill hint.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/m00nreport/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server