Skip to main content
Glama

Inspect Supported Document Types

doctype
Read-onlyIdempotent

Retrieve supported file formats or map a file extension to its TweekIT document type.

Authentication is read exclusively from environment variables (TWEEKIT_API_KEY / TWEEKIT_API_SECRET) or MCP HTTP request headers (ApiKey / ApiSecret) — never place API secrets in prompts or tool arguments.

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": "doctype"
  }
}

Input Schema

NameRequiredDescriptionDefault
extensionNoFile extension to inspect; use '*' to list all supported inputs.*

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / apiKey
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "TweekIT API key passed via the ApiKey header. Defaults to the TWEEKIT_API_KEY environment variable when omitted."
      -}
    • removedInput schema / properties / apiSecret
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "TweekIT API secret paired with the apiKey. Defaults to the TWEEKIT_API_SECRET environment variable when omitted."
      -}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so the safety profile is covered. The description adds non-obvious operational context the annotations cannot: authentication comes exclusively from env vars (TWEEKIT_API_KEY/TWEEKIT_API_SECRET) or HTTP headers (ApiKey/ApiSecret), with an explicit warning never to pass secrets as arguments. It does not mention rate limits or how the open-world lookup is fetched, so it is not a 5.

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 well-formed sentences: capability and mode first, then the authentication constraint. It is front-loaded and free of filler, though the auth paragraph is somewhat dense and could be shortened now that annotations cover safety.

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?

With an output schema present and described parameters at full coverage, the definition need not explain return values, and it covers the main gap an agent would hit: where credentials come from and where they must not go. Nothing critical for correct invocation is missing, though a note on when the extension is unrecognized would round it out.

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?

Schema coverage is 100% and the extension parameter already documents '*' for listing all, so the baseline is 3. The description adds meaning beyond the schema by framing the parameter's role as mapping an extension to a TweekIT document type, clarifying the two intent modes the single optional parameter switches between.

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?

The description names two distinct modes with a specific verb and resource: retrieve supported file formats, or map a file extension to its TweekIT document type. The name 'doctype' plus this text lets an agent separate it from convert/convert_file/fetch, which act on documents rather than enumerating or resolving types.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear selection logic: use the tool to list supported formats or to resolve a single extension, and the schema default '*' ties to listing all. It stops short of explicitly naming a sibling ('before calling convert, check doctype to validate an extension') or stating when not to use it, so a 4 rather than a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.