Skip to main content
Glama

Describe a document type

describe-document-type
Read-onlyIdempotent

Identify Foundry document types, their fields, subtypes, system-specific data, and permissions. Use before first creating or modifying a type to ensure correct generic access.

Instructions

List the document types of this Foundry, or describe one: its fields from Foundry's data model, its subtypes, the system fields of a subtype in the active game system, what it holds and belongs to, the permission level writing it needs, the fields generic access never changes, and the specialised tools for it. Call it before creating or changing a type through generic access for the first time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depthNoHow deep nested fields are listed, 1 to 8; default 4
subtypeNoType within it, e.g. "npc", for the system fields
documentTypeNoFoundry document name; leave out for the list of all types

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv14.2609.4

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the safety profile is known. The description adds useful context beyond annotations by enumerating what the tool returns: fields, subtypes, system fields, containment, permission requirements, generic-access behavior, and specialized tools.

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?

The description is only two sentences and front-loads the core action ('List... or describe one'). The first sentence is a long, dense enumeration of outputs, but it is information-rich and not padded with unnecessary filler.

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

Completeness5/5

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

For a read-only introspection tool with no output schema, the description fully enumerates what the agent can expect to learn: fields, subtypes, system fields, containment, permission levels, generic-access behavior, and specialized tools. It also tells the agent when to invoke it, making the call context complete.

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 input schema already provides 100% parameter descriptions for depth, subtype, and documentType. The description adds little new parameter-level meaning beyond restating that document types can be listed or described, so the schema carries the semantic burden and the baseline of 3 is appropriate.

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 clearly identifies the tool as a read-only introspection tool for Foundry document types, using verbs like 'List the document types' and 'describe one' with a detailed resource scope. It distinguishes itself from document-instance tools like list-documents/get-document by focusing on Foundry's data model and type metadata.

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?

The description provides explicit guidance on when to call the tool: 'Call it before creating or changing a type through generic access for the first time.' It gives clear usage context but does not explicitly state exclusions or name alternative tools for non-type document operations.

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