Skip to main content
Glama

Delete Screenshot

sonar_delete_screenshot
DestructiveIdempotent

Delete one screen from a screenshot set. A set keeps at least one screen — deleting the last one is rejected. Requires an authorized Sonar account or a write-scope API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
screenshot_idYesScreen id to delete.

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?

Annotations already cover destructive/idempotent hints, but the description adds genuine context beyond them: the invariant that a set must retain one screen, and the auth requirement (authorized Sonar account or write-scope API key). It doesn't disclose the rejection response shape, but with annotations carrying the safety profile this is solid.

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 tight sentences, each earning its place: purpose, the constraint, and the auth requirement. Front-loaded with the core action.

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 single-parameter destructive tool with annotations covering safety, this covers purpose, a key invariant, and auth. The one missing piece is what happens on the last-screen rejection (error vs. no-op), but otherwise complete.

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 coverage is 100% with the lone parameter (screenshot_id) already documented as 'Screen id to delete.' The description adds no format, syntax, or sourcing detail beyond what the schema provides, so the 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?

Specific verb (delete) plus precise resource (one screen from a screenshot set). Distinguishes itself from siblings like sonar_delete_screenshot_set and sonar_update_screenshot by explicitly narrowing scope to a single screen.

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 a concrete precondition — a set must keep at least one screen, so deleting the last is rejected — which steers the agent away from invalid calls. Does not, however, point to alternatives (e.g. sonar_delete_screenshot_set) for removing everything.

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.