Skip to main content
Glama

set_block_collapsed

Use true, false, or toggle to set a block's collapsed state. This manages block visibility in Logseq.

Instructions

Set a block collapsed flag. Use true, false, or 'toggle'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
block_uuidYes
flagYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It correctly implies a write operation ('Set'), but does not disclose side effects (e.g., impact on UI or other blocks), required permissions, or error handling. The behavior is straightforward but not fully transparent.

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?

The description is extremely concise (two sentences) and front-loads the purpose. Every word earns its place, with no redundant or filler content.

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?

Given the tool's simplicity (set a flag) and no output schema, the description covers the essential information: what it does and the allowed flag values. It lacks details on return value or edge cases, but overall it is sufficiently complete for the tool's low complexity.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It adds meaning for the 'flag' parameter by enumerating allowed values (true, false, 'toggle'), which is helpful. However, it does not describe the 'block_uuid' parameter, though its name is self-explanatory.

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 clearly states the action ('Set') and the resource ('block collapsed flag'), and distinguishes it from sibling tools like 'set_block_icon' by specifying the flag values (true, false, 'toggle'). This is specific and unambiguous.

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?

The description provides minimal guidance: it tells the user to 'Use true, false, or 'toggle'' for the flag parameter, but lacks context on when to use this tool versus alternatives such as 'update_block'. No when-not-to-use or prerequisite information is given.

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/Johnsonxd4/mcp-logseq'

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