Skip to main content
Glama

live_selection

Read-only

Fetches the selected text and current paragraph from an open Word or LibreOffice document using the document's path or file name.

Instructions

The text selected in the app's window, and the paragraph the cursor is in.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docYesPath to the document, or the file name of one open in a live app.
engineNoAlways the live engine; may be left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=true, so the bar is low and the safety profile is already covered. The description usefully discloses what content comes back (selection plus cursor paragraph), which matters since there is no output schema. It omits behavior when nothing is selected or no live app is attached, so it adds some but not rich context.

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?

A single sentence with no filler, and it leads with the primary return value. It is efficient, though arguably under-specified for a tool with no output schema rather than genuinely concise.

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

Completeness3/5

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

With no output schema, the description must carry the return-value burden, and it does describe the returned content. However, it leaves out edge cases (empty selection, missing live session) and any prerequisite context, which a low-complexity read tool would benefit from stating.

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%, so both 'doc' and 'engine' are fully documented in the schema itself, including the enum restriction. The description adds no parameter-level meaning beyond that, so the baseline of 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 clearly identifies the resource returned: the current text selection plus the containing paragraph. It is a noun-phrase description of output rather than a verb+resource action, and it does nothing to distinguish itself from siblings like live_select or para_get, but an agent can understand what data this yields.

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

Usage Guidelines2/5

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

There is no guidance on when to call this versus live_select, live_status, live_places, or para_get. No prerequisites (e.g. a live app must be open with a document) and no exclusions are stated. The agent must infer usage entirely from the name.

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