Skip to main content
Glama

HamroLink Business OS MCP Server

page.remove_section

Removes a section from a page by section ID or section type. If the page uses a monolithic template (e.g. ecommerce, portfolio, consultancy, restaurant), it safely hides the target sub-block (e.g. showFeatures: false, showTestimonials: false, showFaq: false) without deleting the entire page or template.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "siteId": "<siteId>",
      "slug": "<slug>"
    },
    "name": "page.remove_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesTarget page slug (e.g. '/' or '/about')
siteIdYesMongoDB Site ID
sectionIdNoThe ID of the section to remove (e.g. 'custom-code-12345' or block identifier)
sectionTypeNoThe type or block name of the section to remove (e.g. 'hero', 'features', 'testimonials', 'faq', 'cta', 'custom_code')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare destructiveHint=false and readOnlyHint=false, but the description adds the crucial nuance that on monolithic templates the operation degrades to a flag toggle (showFeatures: false, showTestimonials: false, showFaq: false) rather than a real deletion. That explains why a 'remove' tool is marked non-destructive. It stops short of saying what happens on non-monolithic pages or when the target is missing.

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, the primary action first and the template caveat second. The parenthetical examples (template types, flag names) are dense but each supplies concrete identifiers the agent can match against real data.

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 mutation tool with no output schema, it covers effect, selector choice, and the important template-dependent behavior. It omits error behavior (unknown section, missing page) and whether the change requires publishing, which leaves minor gaps for a write operation.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline applies, but the description adds the non-obvious fact that sectionId and sectionType are alternative selectors for the same operation — something the schema never states, since neither is required. It also frames the semantics of sectionType in terms of sub-block flags.

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 ('Removes a section from a page') plus the selection mechanism (section ID or section type), and scopes it away from whole-page deletion ('without deleting the entire page or template'), which separates it from page.delete and page.add_section.

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?

It explains the special case where the page uses a monolithic template (ecommerce, portfolio, consultancy, restaurant), which is genuinely useful context for choosing this tool over manual edits. However, it never says when to use sectionId versus sectionType, whether one is required, or what happens if neither matches — the agent is left to infer the selection rule.

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.