Skip to main content
Glama

typora_get_document_source

Read-only

Read the saved Markdown source from a running Typora instance without modifying it, and verify with sourceHash that renderer-side code did not rewrite the file.

Instructions

Read the current saved Markdown source through the standalone bridge without modifying it; use its sourceHash to prove renderer-side code did not rewrite the file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxCharsNo
targetIdNoRenderer targetId from typora_status; required when no single window is focused

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so 'without modifying it' is partly redundant; however the description adds real value by specifying that this returns the *saved* source from the bridge (disk state) rather than live renderer state, and by explaining the purpose of sourceHash.

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 front-loaded sentence that packs the action, the constraint, and the verification purpose with minimal waste. Slightly dense but no filler.

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 should describe the return shape, but only vaguely alludes to sourceHash. The 1,000,000-char maxChars truncation behavior and the focused-window default for targetId are left unaddressed, leaving gaps for a two-parameter read tool.

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 coverage is only 50%: targetId is documented in the schema, but maxChars is undocumented in both schema and description. The description mentions sourceHash (a return artifact, not a parameter) and says nothing about truncation semantics of maxChars or the focused-window fallback for targetId, 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 saved Markdown source) and names the mechanism (standalone bridge) plus a distinguishing artifact (sourceHash). It implicitly separates itself from siblings like get_dom or typora_snapshot that expose rendered/view state, though it never names an alternative explicitly.

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?

It hints at the use case (prove renderer-side code did not rewrite the file via sourceHash), which implies when you'd want it, but gives no explicit when-to-use vs when-not, no prerequisites, and never names a sibling alternative such as get_dom.

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