Skip to main content
Glama

Mark an image spot

mark_slot

Insert an image placeholder block at a specific line of a markdown draft, moving existing text down while refusing lines that would split a paragraph or fall inside a code block.

Instructions

Insert one image placeholder, description, as its own block starting at the given line; the line that was there moves down, and blank lines are added only where needed. Use a blank line or the start or end of a block: the tool refuses a line that would split a paragraph or fall inside a code block.

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": {
      "path": "<path>",
      "line": "<line>",
      "description": "<description>"
    },
    "name": "mark_slot"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineYes1-based line where the placeholder goes; one past the last line appends
pathYesThe article, a .md or .markdown file; absolute or relative to the working folder
descriptionYesOne line saying what the image should show; becomes its alt text

Output Schema

NameRequiredDescriptionDefault
pathYes
slotYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (which only say the tool mutates, is not idempotent, and is not destructive), the description discloses what happens to existing content ('the line that was there moves down'), that blank lines are inserted minimally, and the exact refusal conditions. It does not discuss permissions, error responses, or what the return payload reports, so it stops short of full disclosure.

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?

Two dense sentences, front-loaded with the action and the literal inserted text, followed by the validity rules. It is efficient with no filler, though the first sentence packs multiple clauses and slightly slows parsing of the placement rule.

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?

For a three-parameter insertion tool with a fully documented schema and an output schema, the description covers purpose, exact side effects, and the boundary conditions that would otherwise cause a failed call. An agent has everything needed to invoke it correctly on the first attempt.

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 is 3, but the description adds meaning beyond it: it constrains which line values are legal (blank line / block boundary / code-block exclusion) and clarifies that the placeholder occupies its own block. That is real semantic value for the 'line' parameter rather than a restatement of 'name' and 'description'.

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?

Names a specific verb and resource ('Insert one image placeholder') and even shows the literal text inserted into the document, so the effect is unambiguous. The distinction from find_slots is self-evident from the write-vs-locate nature of the operation, and an agent can tell exactly what this tool produces.

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?

States explicit preconditions for use: the target line must be a blank line, a block start, or a block end, and the tool refuses lines that would split a paragraph or land inside a code block. This gives clear context and failure conditions, though it never names or excludes an alternative tool.

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

Deploy Server

Other Tools