Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

get_asset_text

Read-only

Fetch the complete text content of any text-based asset such as scripts, JSON, CSS, HTML, or shaders. Returns raw text for reading or further processing.

Instructions

Read the full text contents of a text-based asset (script, text, json, css, html, or shader), returned as text. When NOT to use: to read a script's declared name or attribute definitions (use script_parse), to read binary assets like textures or models, or to list assets (use list_assets).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetIdYesAsset id of a text-based asset (script, text, json, css, html, shader)
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description adds meaningful context by specifying that the full text contents are returned as text and that the tool does not serve binary assets. This is sufficient for a simple read operation, though it doesn't mention potential size limits or error behavior.

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 two sentences with no filler: the first sentence front-loads the operation and return type, and the second sentence gives precise negative usage guidance. Every part earns its place.

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 single-parameter read-only tool, the description fully covers what the tool does, what it returns, what asset types it applies to, and when to use sibling tools instead. No output schema is needed because the return type is stated explicitly as text.

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 documents the only parameter, assetId, with the same valid text-based asset types listed in the description. Schema description coverage is 100%, so the description adds little beyond re-emphasizing what the schema already provides.

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 states a specific verb ('Read') and resource ('full text contents of a text-based asset'), and explicitly enumerates valid asset types (script, text, json, css, html, shader). It also distinguishes itself from siblings by naming what it is not for.

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

Usage Guidelines5/5

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

The description provides an explicit 'When NOT to use' section with concrete alternatives: script_parse for declared name/attribute definitions and list_assets for listing assets. It also rules out binary assets like textures or models, giving clear selection criteria.

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/playcanvas/editor-mcp-server'

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