Skip to main content
Glama

Outil.io

Insert HTML section

insert_html_section
Destructive

Ajouter à une page existante une ou plusieurs sections dessinées librement en HTML/CSS, puis converties en éléments Outil éditables. Lire describe_page_style et fournir expectedVersion. HTML autonome, CSS dans , responsive, une par section ; pas de JavaScript nécessaire au rendu. Insérer après afterSectionId, sinon avant le formulaire/pied de page. mode auto applique en direct sur une page publiée ; draft pour un brouillon explicite. Une modification concurrente pendant la conversion est refusée.

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": {
      "pageId": "<pageId>",
      "html": "<html>"
    },
    "name": "insert_html_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYes
modeNoauto
pageIdYes
afterSectionIdNo
expectedVersionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added
  4. Removed
  5. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the mutation risk is known. The description adds genuinely useful behavior: automatic conversion into editable elements, the concurrency-refusal rule ('Une modification concurrente pendant la conversion est refusée'), and the live-vs-draft application semantics. It still omits what is returned and whether the insert is reversible/undoable, which matters for a destructive tool.

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?

Front-loaded with the core action and outcome, then constraints, then versioning. Every sentence carries information relevant to correct invocation, though the dense run-on phrasing and missing mention of the third enum value show minor trimming/structure issues.

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 5-parameter destructive mutation tool with no output schema and zero schema descriptions, the description covers the essentials an agent needs: prerequisites, HTML shape rules, placement, mode semantics, and concurrency failure. It falls short only on the unmentioned 'live' mode value and on what happens after the insert (result, editability handoff details).

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?

With schema description coverage at 0%, the description carries the burden and mostly succeeds: it constrains `html` (self-contained, CSS inside <style>, responsive, one <section> per block, no JS needed) and defines `afterSectionId` placement plus the fallback position. It explains `mode` auto/draft but never mentions the 'live' enum value, and it asks for `expectedVersion` even though the schema does not mark it required — a small ambiguity.

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 ('Ajouter à une page existante une ou plusieurs sections ... en HTML/CSS') and adds the crucial transformation detail that the HTML is 'converties en éléments Outil éditables', which distinguishes it from import_html_page or copy_template_section. An agent can identify the tool's outcome without opening the 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 concrete preconditions and sequencing: read describe_page_style first and supply expectedVersion, and explains the placement fallback ('après afterSectionId, sinon avant le formulaire/pied de page'). It also differentiates mode values (auto on a published page vs draft). It does not explicitly contrast with sibling page-mutation tools such as apply_page_changes or import_html_page, so the routing guidance stops short of a full 5.

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.