Skip to main content
Glama

close_app

Closes a specified app on an LG webOS TV, or the foreground app by default, so you can stop playback or clear the screen.

Instructions

Close an app (by default the one currently on screen).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "close_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNoApp id or title to close; omit to close the app in the foreground

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden for a mutating action, and it does not disclose whether this is a graceful or forced termination, what happens to unsaved state, whether it can close system apps, or whether failures (app not running) error out. Only the default-target behavior is conveyed.

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?

A single short sentence with the core action front-loaded and the default scope in a parenthetical. Nothing redundant, nothing padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema means return values need not be explained, and the lone parameter is fully documented. However, for a state-changing, unannotated tool, the description omits the behavioral information an agent needs to act safely (force-close semantics, data risk, error conditions), leaving a real gap.

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 description coverage is 100% and the single parameter already documents "App id or title to close; omit to close the app in the foreground." The description restates the same default semantics rather than adding new detail such as accepted id formats or title-matching rules, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb+resource ("Close an app") and clarifies the default target, so an agent knows exactly what the tool does. It stops short of naming the obvious counterpart (launch_app) or otherwise distinguishing itself from siblings, leaving that inference to the agent.

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?

Usage is only implied: the agent can infer this is the way to terminate a running app, and the parenthetical explains the default target. There is no explicit when-to-use/when-not guidance, no mention of preconditions (app must be running), and no reference to an alternative tool.

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