Skip to main content
Glama

remove_mock_rule

Remove a single conditional rule from an existing mock API endpoint by its rule ID, without needing to resend the full rules array. Token-efficient counterpart to add_mock_rule. Obtain the ruleId from get_mock_detail.

Input Schema

NameRequiredDescriptionDefault
mockIdYesDatabase ID of the mock endpoint
ruleIdYesDatabase ID of the rule to remove. Obtain from get_mock_detail.
projectIdYesDatabase ID of the project

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does add real behavioral context beyond the name: only one rule is affected, remaining rules survive, and the operation is a token-efficient alternative to a full-array update. However, it never states that removal is destructive/irreversible, what happens if the ruleId doesn't exist, or whether removing the last rule is allowed — notable gaps for an unannotated mutation.

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?

Three short clauses, front-loaded with the action and object, then the efficiency rationale, then the prerequisite. No filler and nothing redundant to the schema.

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 3-required-parameter mutation with no output schema, the description covers what it does, what it needs, and where to get the ID. The remaining gap is behavioral edge cases (error on unknown ruleId, irreversible nature) which matter more because there are no annotations.

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%, so all three parameters (projectId, mockId, ruleId) are already documented in the schema, including the get_mock_detail hint for ruleId. The description repeats that hint but adds no format, constraints, or validation semantics beyond the schema — baseline 3 applies.

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 and resource ('Remove a single conditional rule from an existing mock API endpoint by its rule ID') with clear scope — exactly one rule. It distinguishes itself from update_mock (which would resend the full rules array) and from add_mock_rule, so the agent can separate it from siblings without opening a schema.

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 condition for use — when you want to drop one rule without resending the whole array — and names the prerequisite source ('Obtain the ruleId from get_mock_detail'). It doesn't explicitly state when NOT to use it (e.g. use delete_mock to remove the endpoint itself), but the guidance is concrete enough to act on.

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