Skip to main content
Glama
Official Porkbun MCP Server

Official Porkbun MCP Server

Read Hosting File

read_hosting_file
Read-onlyIdempotent

Reads text or binary files from a domain's Secure Static Hosting so you can edit pages without rebuilding, then republish the changes.

Instructions

Read files back from a domain's Secure Static Hosting, so you can change a page without rebuilding it: read index.html, edit only what the user asked (e.g. the opening hours), show them the change, then publish it with deploy_site. Text files come back as text (the exact source, HTML and all, unlike fetching the live page), others as base64 content. Up to 20 paths per call; list_hosting_files shows what is there.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "domain": "<domain>",
      "paths": "<paths>"
    },
    "name": "read_hosting_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYesFile paths, e.g. ["index.html", "style.css"].
domainYesDomain whose hosting files to read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.64.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description still adds real behavioral detail beyond them: text files return as `text` (exact source), binaries as base64 `content`, and the 20-path cap. What happens for a missing or invalid path is not stated.

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 purpose is front-loaded in the first clause, and the workflow narrative is compressed into one long sentence with no filler. It is a bit dense but every clause carries information about usage or return shape.

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 two-parameter read tool with no output schema, the description covers the gap by explaining the return shape (`text` vs base64 `content`) and the batching limit. Combined with annotations and a fully described schema, an agent has everything needed 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 coverage is 100% and both parameters (domain, paths) are fully documented with an example, so the schema does most of the work. The description only restates the 20-path limit already encoded as maxItems; it adds no format conventions such as leading slashes or path case sensitivity.

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 specific verb and resource ('Read files back from a domain's Secure Static Hosting') plus the exact scope of what is read. It also distinguishes itself from two relatives by name: fetching the live page (which it is not) and list_hosting_files/deploy_site as the surrounding steps.

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?

Gives an explicit workflow for when to use it (read index.html, edit only the requested change, show it, then deploy_site) and points to list_hosting_files for discovering paths. The alternative of fetching the live page is explicitly ruled out as a source of exact source text.

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