Skip to main content
Glama

Add site

add_site

Add a publishing target to your site configuration. Store secret credentials as .env references to keep them out of config files.

Instructions

Add a publishing target to config/sites.yaml. Secret credential fields are recorded as a reference to a .env variable name; the value itself goes in .env, never in config.yaml.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
slugYesShort name used when publishing, e.g. "indianic". Lowercase letters, digits, and hyphens only.
platformYesOne of: ghost, wordpress
credentialsYesKeyed by this platform's credential field names. For a secret field pass the NAME of the .env variable holding the value; for a non-secret field pass the value itself. Call list_sites or read the error from a wrong platform to see the field names.
default_authorNo
Behavior3/5

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

With no annotations, the description takes on the burden of disclosure. It reveals that secret credential fields are stored as .env variable references rather than literal values, which is important behavioral context. However, it does not mention other traits such as overwrite behavior, validation, or required permissions.

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 compact, with the main purpose stated in the first sentence and a security-relevant caveat in the second. While the caveat repeats schema content, it's relevant and doesn't bloat the description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple add operation, the description covers the core purpose and secret handling, but lacks specifics on outcomes, error scenarios, or integration with other site-management tools. The presence of nested objects and no output schema suggests more detail could be helpful.

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 does not add meaning beyond the schema; the secret-field behavior it mentions is already stated in the credentials parameter description. It also does not clarify the url or default_author parameters, leaving 40% of the schema without additional explanation.

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 the tool's function with a specific verb and resource ('Add a publishing target to config/sites.yaml'). This distinguishes it from sibling tools like remove_site and list_sites.

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 (adding a publishing target) but does not explicitly provide when-to-use guidance or contrast with alternatives. The secret-handling caveat offers a directive but not usage context.

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/indianic/byline'

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