Skip to main content
Glama

add_function

Add one low-risk function page to an editor app: radio (radio), YouTube (youtube), content page (content-page), contact form (forms), photo gallery (gallery), framed website (frame-website), RSS/podcast feed (rss-feed) or document library (pdf-library). For every other Add Page feature (Contact Us, Messages, Events, FAQs, Coupons and so on) use add_feature. Use forms only for structured requests; for "message us" use add_feature messages. Reads the app back and returns the page exactly as saved.

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": {
      "appId": "<appId>",
      "functionType": "<functionType>"
    },
    "name": "add_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
appIdYesThe editor app id (UUID).
titleNoPage title shown in the app. Defaults to the function name.
configNoSettings for the function. Required keys: radio needs streamUrl; youtube needs channelId (or playlistId with sourceType "playlist"); rss-feed needs feedUrl; frame-website needs websiteUrl; content-page accepts html; forms accepts recipientEmail; gallery and pdf-library need nothing.
allowWebsiteNoOnly when the person explicitly asked for this page as a website link instead of the native feature (menus, bookings, events, FAQs, etc.).
functionTypeYesOne of: radio, youtube, content-page, forms, gallery, frame-website, rss-feed, pdf-library. For every other Add Page feature use add_feature.
allowWebsiteMenuNoLegacy alias of allowWebsite.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does useful work: it labels the operation "low-risk," discloses the side effect (a page is added to the app), and states that it reads the app back and returns the page exactly as saved. It stops short of covering permissions, whether a rebuild/publish is needed, or what happens on invalid config.

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 routing constraint and the supported type list are front-loaded and every sentence carries routing or behavioral information. The type enumeration is repeated from the functionType schema field, which is mild redundancy but also serves as the scannable core of the definition.

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?

For a mutating tool with a nested config object and no output schema, the definition covers the supported types, the required config keys per type, the fallback sibling, and the return behavior. The remaining gap, error/permission behavior and whether the change needs a subsequent build, is a reasonable omission given the schema's thorough coverage.

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 the config keys per function type, the appId/title semantics, and the allowWebsite caveat are already documented in the schema and the description largely echoes them. The one genuinely additive note is the forms-vs-messages distinction, which is more usage than parameter semantics, so the baseline 3 applies.

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?

"Add one low-risk function page to an editor app" gives a specific verb, resource, and scope, then enumerates the eight supported function types. It explicitly separates itself from the sibling add_feature, so an agent can distinguish the two without opening either schema.

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?

It states explicit routing rules: everything outside the eight listed types goes to add_feature, and "message us" requests go to add_feature messages while forms is only for structured requests. These are concrete when-to-use and when-not-to-use instructions naming the alternatives.

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