Skip to main content
Glama

List document templates

nextcloud_list_document_templates
Read-onlyIdempotent

List the document types the server can create, including their file extensions and templates, to help you select the correct format.

Instructions

List the document types the server can create (document, spreadsheet, presentation, diagram, markdown) with their extensions and templates.

GET /ocs/v2.php/apps/files/api/v1/templates

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "nextcloud_list_document_templates"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description earns credit for disclosing what the response actually contains (types, extensions, templates) plus the OCS endpoint, which matters since there is no output schema. It does not cover errors or whether results are server-wide vs per-user.

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?

Two lines, front-loaded with the concrete content of the result, with no filler. The raw GET path is developer-facing detail that is marginally useful to an agent but costs only one short line.

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?

A parameterless, read-only enumeration tool with no output schema; the description names the return contents, which is the main thing an agent needs. Missing only a pointer to the follow-up tool (create_document) that would make it fully self-sufficient.

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?

The tool takes zero parameters, so the baseline is 4. There is nothing the description could add on parameter meaning, and it correctly introduces no phantom arguments.

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?

States a specific verb (list) and resource (document types/templates) and enumerates the values involved (document, spreadsheet, presentation, diagram, markdown) along with extensions and templates. An agent can distinguish this from nextcloud_list_files or nextcloud_open_document without opening any schema.

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 only implied: an agent can infer this is the discovery step before nextcloud_create_document, but the description never says so and names no alternative. No exclusions or preconditions are stated.

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