Skip to main content
Glama
huiseo
by huiseo

list_recent_documents

Retrieve recently modified documents from Outline wiki to track updates and manage content changes.

Instructions

Get list of recently modified documents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo

Implementation Reference

  • Core handler function that executes the tool: queries Outline API for recent documents sorted by updatedAt DESC and formats the output.
    async list_recent_documents(args: ListRecentDocumentsInput) {
      const { data } = await apiCall(() =>
        apiClient.post<OutlineDocument[]>('/documents.list', {
          limit: args.limit,
          sort: 'updatedAt',
          direction: 'DESC',
        })
      );
      return formatRecentDocuments(data || [], baseUrl);
    },
  • Zod input schema definition for the tool, accepting an optional 'limit' parameter defaulting to 10.
    export const listRecentDocumentsSchema = z.object({ limit: limit.default(10) });
  • src/lib/tools.ts:56-60 (registration)
    Registers the MCP tool definition in the allTools array, providing name, description, and schema reference.
    createTool(
      'list_recent_documents',
      'Get list of recently modified documents.',
      'list_recent_documents'
    ),
  • Helper function used by the handler to format the list of recent documents into a standardized output structure.
    export function formatRecentDocuments(documents: OutlineDocument[], baseUrl: string) {
      return documents.map((doc) => ({
        id: doc.id,
        title: doc.title,
        url: buildUrl(baseUrl, doc.url),
        collectionId: doc.collectionId,
        updatedAt: doc.updatedAt,
        updatedBy: doc.updatedBy?.name,
      }));
    }
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states it's a read operation ('Get list'), but doesn't mention permissions, rate limits, pagination, or what 'recently modified' means (e.g., time frame, sorting). This leaves significant gaps for a tool with potential behavioral nuances.

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 a single, efficient sentence with zero wasted words. It's front-loaded and appropriately sized for a simple list operation, earning full marks for conciseness.

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

Completeness2/5

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

Given the tool's moderate complexity (listing with a filter concept), no annotations, no output schema, and incomplete behavioral context, the description is inadequate. It should explain more about the 'recently modified' scope, return format, or limitations to be complete for agent use.

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?

The description adds no parameter information beyond what the input schema provides (schema description coverage is 0%, but the schema itself documents 'limit' with type, range, and default). Since the schema covers the single parameter adequately, the baseline is 3, as the description doesn't compensate but doesn't need to heavily with good schema coverage.

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 states the verb ('Get list') and resource ('recently modified documents'), making the purpose evident. However, it doesn't differentiate from sibling tools like 'list_archived_documents' or 'search_documents' beyond the 'recently modified' qualifier, which is why it doesn't reach a 5.

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?

The description provides no guidance on when to use this tool versus alternatives like 'list_archived_documents' or 'search_documents'. It lacks explicit when/when-not instructions or named alternatives, leaving usage context implied at best.

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/huiseo/outline-wiki-mcp'

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