Skip to main content
Glama

Get Document Icon

get_doc_icon
Read-onlyIdempotent

Reads the current sidebar icon for a document and returns null when no icon is set.

Instructions

Read the current sidebar icon of a document. Returns null when none is set.

Input Schema

NameRequiredDescriptionDefault
docIdYesThe document whose icon to read.
workspaceIdNo

Output Schema

NameRequiredDescriptionDefault
okNo
codeNo
iconNo
kindNo
docIdNo
errorNo
detailsNo
hasIconNo
causeCodeNo
retryableNo
workspaceIdNo
recoveryGuidanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.10.2

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered. The description adds a useful edge-case behavior: it returns null when no icon is set.

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?

Two short sentences with the core action front-loaded and the null-return edge case immediately after. No wasted text.

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?

For a simple read-only getter with an output schema and strong annotations, the description covers the main action and the null case. The main omission is any explanation of the optional workspaceId parameter.

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

Parameters2/5

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

Schema description coverage is only 50%: docId is documented in the schema, but workspaceId has no schema description. The tool description does not explain what workspaceId means or when it should be supplied, so it fails to compensate for the coverage gap.

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?

States a specific verb and resource: 'Read the current sidebar icon of a document.' The read verb distinguishes it from update_doc_icon, though it does not explicitly mention get_folder_icon as the folder counterpart.

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 implied by 'Read the current sidebar icon of a document,' but there is no explicit when-to-use guidance, no exclusions, and no named alternatives such as update_doc_icon or get_folder_icon.

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

Deploy Server

Other Tools