Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DOCUSKY_TIMEOUTNo單次請求逾時(秒),預設為 120
DOCUSKY_BASE_URLNoAPI 根路徑,預設為 https://docusky.org.tw/DocuSky/webApi
DOCUSKY_PASSWORDNo你的 DocuSky 密碼(選填,留空則僅查詢公開資料庫)
DOCUSKY_USERNAMENo你的 DocuSky 帳號(選填,留空則僅查詢公開資料庫)
DOCUSKY_CREDENTIALSNo憑證檔位置(給非 Claude Desktop 的 MCP 客戶端用的後備),預設為 ~/.docusky/credentials.json

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_databasesA

List DocuSky databases available to this server.

Args: target: "OPEN" for public databases, "USER" for the logged-in account's own. include_friend_db: Also list databases shared by DocuSky "friends" (USER only).

list_corporaA

List the corpora inside one database, with document counts.

Args: db: Database title, exactly as returned by list_databases. target: "OPEN" or "USER". include_friend_db: Include databases shared by friends (USER only).

search_documentsA

Full-text search one DocuSky database; returns metadata plus a short excerpt per hit.

Full document text is deliberately omitted — call get_document with a hit's n (and the same db/corpus/query/page_size) to read one in full.

Args: db: Database title. query: Search terms. +term requires, -term excludes, .all matches everything. corpus: Corpus title, or "[ALL]" for every corpus in the database. page: 1-based page number. page_size: Hits per page (1-100). target: "OPEN" or "USER". excerpt_chars: Characters of body text to preview per hit; 0 disables excerpts. owner_username: Owner of a friend-shared database, when applicable.

get_documentA

Fetch the full text of one search hit, identified by its position in the result set.

result_number is the global 1-based rank of the document for this query — the n field of a search_documents hit. Pass the same db, query, corpus and page_size that produced it, or the ranking will not line up.

Long documents are returned in slices: raise offset by max_chars to page through the body.

Args: db: Database title. result_number: 1-based rank of the document within the query's results. query: The same query string used in search_documents. corpus: The same corpus used in search_documents. target: "OPEN" or "USER". page_size: The same page_size used in search_documents. offset: Character offset into the document body. max_chars: Maximum characters of body text to return. include_raw_xml: Also return the untouched DocuXML content. owner_username: Owner of a friend-shared database, when applicable.

post_classificationA

Break a query's hits down by DocuSky's post-classification facets.

Returns, per facet (corpus, period, place, category…), a distribution of [value, document count, hit count] — the quickest way to see how a term is spread across a database.

Args: db: Database title. query: Search terms, or ".all" for the whole database. corpus: Corpus title, or "[ALL]". target: "OPEN" or "USER". owner_username: Owner of a friend-shared database, when applicable.

tag_analysisA

Summarize the DocuXML tags (people, places, dates, custom markup) in a query's hits.

Only meaningful for databases whose documents carry inline tagging; returns an empty result otherwise.

Args: db: Database title. query: Search terms, or ".all" for the whole database. corpus: Corpus title, or "[ALL]". target: "OPEN" or "USER". owner_username: Owner of a friend-shared database, when applicable.

check_loginA

Report whether DocuSky credentials are configured and whether they work.

Public databases need no login; run this only when private ("USER") databases are unreachable.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.2/5.0

Scored across 7 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: listing databases, listing corpora, checking login, searching documents, fetching full text, post-classification breakdown, and tag analysis. No two tools overlap significantly; the workflow is well-defined with search_documents and get_document having complementary roles.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern (list_databases, list_corpora, check_login, search_documents, get_document, post_classification, tag_analysis). The pattern is predictable and readable throughout.

Tool Count5/5

Seven tools form a well-scoped, cohesive set that covers the core operations for exploring and analyzing DocuSky databases without redundancy. Each tool earns its place in the workflow.

Completeness4/5

The toolset covers the essential lifecycle: discovery (list databases/corpora), authentication (check_login), search (search_documents), retrieval (get_document), and analysis (post_classification, tag_analysis). While read-only operations are comprehensive, there is no support for modifying or creating databases/corpora, which may be a deliberate scope limitation.

Maintenance

ActivityMaintained
ResponsivenessNo issues