Skip to main content
Glama
zagushka

Foundry REST API MCP

by zagushka

foundry_update_canvas_document

Update a canvas document in FoundryVTT by providing document type, ID, and JSON data. Works for tokens, tiles, drawings, lights, sounds, notes, templates, walls, and regions.

Instructions

Update one canvas embedded document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesJSON object accepted by Foundry.
userIdNoOptional Foundry user ID or username for permission-scoped access.
sceneIdNo
clientIdNoFoundry client ID; defaults to FOUNDRY_CLIENT_ID.
documentIdYes
documentTypeYesCanvas document collection.
Behavior2/5

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

The annotation readOnlyHint=false is consistent with 'update', but the description adds no behavioral detail beyond that. It does not clarify whether the update is a partial patch or full replacement, what happens on failure, or any permission requirements, leaving significant ambiguity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no redundancy, but it is so minimal that it becomes under-specification rather than conciseness. It essentially restates the tool name without providing operational value, so it fails to earn its place.

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?

For a mutation tool with six parameters, nested objects, and no output schema, this description is severely incomplete. It lacks update semantics, data format guidance, error behavior, and any relationship to sibling tools, forcing the agent to guess or infer critical details.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds no parameter semantics whatsoever. The critical 'data' parameter is only described in the schema as 'JSON object accepted by Foundry', which is vague, and the description does not explain how documentType, documentId, and data interact. Schema coverage is 67%, but the main payload remains underspecified.

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 states a specific action (update) and resource (one canvas embedded document), which clearly differentiates it from the create/delete/get siblings. However, it lacks any additional context about document types or scope, though the schema enum provides that.

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?

No guidance is given on when to use this tool versus create_canvas_documents, delete_canvas_document, or get_canvas_documents. There are no prerequisites, use cases, or exclusions mentioned, leaving the agent without direction on tool selection.

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/zagushka/foundry-rest-api-mcp'

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