Skip to main content
Glama

save_device_layout

Creates or updates a layout file on a paired iOS device. Accepts a layout JSON string and optional filename.

Instructions

Create or update a layout file on the paired device.

The layout is written to the device's Layouts folder. If a file with the same name already exists, it is overwritten.

Args: layout_json: Complete layout JSON string. Must be valid LayoutConfig with a "name" field. filename: Optional filename (e.g. 'my-layout.json'). Derived from the layout name if omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameNo
layout_jsonYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Describes overwrite behavior: 'If a file with the same name already exists, it is overwritten.' However, does not disclose error conditions (e.g., device disconnected, invalid JSON) or permissions needed, which are important for a write operation.

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?

Concise: two sentences for purpose, then a clear Args section. No unnecessary words. Structure front-loads key information.

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?

Covers parameters well and basic behavior. However, lacks explanation of return value (though an output schema exists), and does not mention prerequisites like device pairing or connectivity. Nearly complete for a straightforward tool.

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?

Adds significant meaning beyond the bare schema: 'layout_json' is described as complete layout JSON with a 'name' field, and 'filename' is explained as optional with derivation logic. This compensates for the 0% schema description coverage.

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?

Clearly states 'Create or update a layout file on the paired device', specifying both verb and resource. Differentiates from siblings like 'get_device_layout', 'save_layout', and 'push_layout' by emphasizing the target (device's Layouts folder).

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?

No explicit guidance on when to use this tool over alternatives like 'save_layout' or 'push_layout'. The description implies it writes to a device, but lacks contextual boundaries or usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mariner10/carter-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server