Skip to main content
Glama

Turn screen sizes off or on, or add your own

set_screen_sizes
DestructiveIdempotent

Sets which standard screen sizes of one site are turned off and which sizes the owner added (a kiosk, a folded phone: up to 5, each named, 280 to 3840 px wide, and not one of the standard widths); at least one size must stay on. Leave off or added out to keep what is saved. Only owners and admins can. Turning a size off or removing an added one stops CodeGene designing and checking the site at it, so such a call answers status needs-confirmation with a warning and saves nothing: show the person that warning word for word, and only after they say they understand, call again with understood true. Turning sizes back on or adding sizes needs no warning.

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": {
      "project_id": "<project_id>"
    },
    "name": "set_screen_sizes"
  }
}

Input Schema

NameRequiredDescriptionDefault
offNoThe standard sizes to turn off, by name as get_screen_sizes lists them (mobile, tablet, laptop, desktop, widescreen). An empty list turns every standard size on.
addedNoEvery size the owner added, as the whole list: include the ones to keep. An empty list removes them all.
project_idYesThe site (list_projects gives ids).
understoodNoTrue only after the person has read the warning this tool gave and said they understand it.
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

The annotations already flag destructiveHint=true and idempotentHint=true, yet the description adds substantially more: the downstream consequence that CodeGene stops designing and checking at that size, the returned status of needs-confirmation on a destructive call, the fact that nothing is saved, and a verbatim-user-facing warning protocol. These are behavioral facts no annotation or schema field conveys.

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?

Content is front-loaded and nearly every clause earns its place, but the opening is one long run-on sentence with stacked parentheticals that slows parsing of the size constraints. Splitting the constraint block from the confirmation-flow block would improve first-pass comprehension without losing information.

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?

There is no output schema, so the description must explain responses, and it does: destructive calls return status needs-confirmation and save nothing, while enabling calls proceed without a warning. Combined with auth requirements, the keep-current-state semantics, and the understood round-trip, nothing an agent needs in order to call this correctly is missing.

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

Parameters5/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 real meaning beyond it: it explains that omitting off/added preserves saved state, that added is a whole-list replacement, and it supplies width bounds (280-3840 px) that the schema's integer range does not express. The only weakness is a minor mismatch where the description says up to 5 added sizes while the schema allows maxItems 20.

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?

The description opens with a precise verb plus resource: it sets which standard screen sizes of one site are off and which owner-added sizes exist, and it names the constraints that define the resource (kiosk/folded phone, up to 5, named, 280-3840 px, not a standard width). That is distinguishable at a glance from the read-only sibling get_screen_sizes, which the schema itself references for the canonical names.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states when fields may be omitted ('Leave off or added out to keep what is saved'), who may call it ('Only owners and admins can'), and what conditions require a second call ('only after they say they understand, call again with understood true'). It also draws an explicit line between the destructive direction (turning off / removing) and the safe direction (turning on / adding), which is exactly the when-to-be-careful guidance an agent needs.

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