Skip to main content
Glama

Fabrement

Get block source

fabrement-get-block-source
Read-only

Read one block's CURRENT source for an update: its tokenised file bodies, registered name, shorthand attributes, backgroundColor, skills, description, tags and hash. Edit minimally (keep data-ui-id stable) and submit-version only what changes — edits per file + expectedHash. Rules: get-skill-doc {id:"block-contract"} for a content block; a header follows {id:"header-contract"}, a footer {id:"footer-contract"} — read the one for the block's type before the first call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidNoFor a block the project has and this site does not (list-blocks installed:false, which has no blockId): read its code before deciding whether to import it. Pass one of the two.
blockIdNoWordPress block id from list-blocks — for a block installed on this site.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hashNoexpectedHash for submit-version.
nameYesRegistered block name — what save-content and set-post-type-starter-blocks take.
tagsYes
typeYesWhich contract governs this block.
filesYesSOURCE form — the block's name is the literal {{nameKebab}} token. Send the token back; never substitute the real name. Empty string = the block has no such file.
iconsNoLibrary icon ids this version uses (fabrement_icon literals + iconPicker options).
skillsYesResubmit these with submit-version or the runtime they provide is dropped.
summaryYes
attributesYesShorthand attribute contract; its keys are what save-content prefills by name.
descriptionYes
backgroundColorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description is consistent, adding real context: the source is 'CURRENT', it includes a hash used for optimistic concurrency (expectedHash), and editing must keep data-ui-id stable. It does not cover auth/rate-limit concerns, but the read-only nature plus the workflow detail is solid beyond the annotation.

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?

Front-loaded with the purpose and return payload, followed by the editing guidance and contract rules. Dense but every clause earns its place; slightly jargon-heavy with tokenisation/hash references but still efficient.

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?

Since an output schema exists, return values need not be explained, yet the description helpfully summarizes them anyway. It also supplies the workflow (edit minimally, submit only changes) and the required contract read, leaving little for an agent to infer about how to call it correctly.

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?

Schema description coverage is 100%, so uuid/blockId are already fully documented in the schema. The description mentions `edits` and expectedHash, but those belong to submit-version, not this tool's parameters, so it adds little parameter meaning. Baseline 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?

States a precise verb+resource ('Read one block's CURRENT source') and enumerates exactly what is returned (tokenised file bodies, registered name, shorthand attributes, backgroundColor, skills, description, tags, hash). It also names a related tool (get-skill-doc) so an agent can separate the source-read from the contract-read. This is far more specific than a sibling like list-blocks.

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?

Clear usage context: read the current source in order to update it, then edit minimally and submit-version only changes. It also directs the agent to read the relevant block-contract via get-skill-doc before the first call. No explicit 'when not to use', so 4 rather than 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.

Resources