Skip to main content
Glama
halby24

RenderDoc MCP Server

by halby24

get_texture_data

Read pixel data from a texture resource, returning base64-encoded bytes with dimensions and format metadata. Supports mip levels, array slices, MSAA samples, and 3D depth slices.

Instructions

Read the pixel data of a texture resource.

Args: resource_id: The resource ID of the texture to read mip: Mip level to retrieve (default: 0) slice: Array slice or cube face index (default: 0) For cube maps: 0=X+, 1=X-, 2=Y+, 3=Y-, 4=Z+, 5=Z- sample: MSAA sample index (default: 0) depth_slice: For 3D textures only, extract a specific depth slice (default: None = full volume) When specified, returns only the 2D slice at that depth index

Returns texture pixel data as base64-encoded bytes along with metadata including dimensions at the requested mip level and format information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mipNo
sliceNo
sampleNo
depth_sliceNo
resource_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the full burden. It details behavioral aspects: can read specific mip levels, slices (with cube map index mapping), MSAA samples, and depth slices for 3D textures. It also mentions the return format (base64-encoded bytes with metadata). However, it lacks details on performance or side effects.

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 a single paragraph with clear 'Args' section. It is efficient and front-loaded, though slightly longer than ideal. Every sentence serves a purpose.

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?

Given the 5 parameters, no annotations, and an output schema mentioned, the description covers parameter semantics and return value adequately. However, it lacks usage guidelines and does not mention potential limitations (e.g., data size). It is mostly complete for a read operation.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must add meaning. It explains each parameter: 'resource_id', 'mip', 'slice' (with cube map index mapping), 'sample', and 'depth_slice' (for 3D textures, with behavior when specified). It also states defaults, adding significant value beyond the schema.

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 states 'Read the pixel data of a texture resource', providing a specific verb and resource. It distinguishes from siblings like 'get_texture_info' (which likely returns metadata) by focusing on pixel data retrieval.

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?

The description implies usage for reading pixel data but does not explicitly state when to use this tool over alternatives like 'get_texture_info' or 'find_draws_by_texture'. No when-not-to-use guidance is provided.

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/halby24/RenderDocMCP'

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