Skip to main content
Glama

Add a feature

add_feature

Adds one ready-made feature to the site, like Add on its card in Xodia. contact-form (Xodia Forms) writes no code: it connects the site's own form to Xodia Forms (as connect_form does; a contact page's form first), or, when the site has no form, says so: then put a contact form on a page (a with named fields) and connect it with connect_form. online-shop, buy-button, donations, paid-booking and memberships are Xodia's shop service (paid-booking and memberships also need the Xodia database): they write no server code and need no keys (the Products collection is made when missing), and the owner connects Stripe in Xodia. ai-answer by default runs on the workspace's bought Xodia AI credits: no server code and no key, Xodia answers at /api/_xodia/ai/answer on the site (preview and live alike). It also places Xodia's answer box on the home page by default (AnswerBox in an AskBox section on React sites, the site helper's data-xodia-ask form on plain HTML), after the page's questions part, else before its contact or call to action part, else at the end (the answer says where): pass page with another page's path, or page false to add it without placing it. Then move or restyle that piece with small edits, never a question form of your own. Pass ownKey true only when the owner asks to use their own AI service's key instead: that writes the older server code (api/ai-reply.ts) and needs their AI key in Keys and secrets. members-sign-in (React sites with the Xodia database) turns on visitors' sign-in with Google and, when the site can send email, a code by email; only workspace owners and admins can add it (forbidden otherwise: tell the user who can); a site without the Xodia database or on Supabase gets the step it needs first. Every other feature writes its finished server code into api/ as new files (never over a file: a taken name gets -2), turns server tasks on for the site when they are off (within the plan), and updates the preview copy. Answers the addresses it answers on the site, how a page calls each one, the keys and settings the owner adds in Project settings, Keys and secrets (names and where to find them, never values), and the next steps, saying which are the owner's in Xodia, with the Studio link. Use it instead of writing these files by hand: the ready-made code is trusted by Xodia's safety check, so it never waits for a review. After it: wire the page to the address (skill app-server-tasks), run_check typecheck, and tell the owner the keys to add. Refusals say why in plain words: feature_site_kind (works on React sites only), plan_limit (a paid plan, or no room for server tasks on one more site: tell the owner the hint's next step), feature_already_added (it's there: finish its steps instead), server_tasks_off (Xodia has server features switched off for now: don't retry in this task). Takes the feature id, and ownKey and page for ai-answer only. Keys are the owner's: they add each value in Project settings, Keys and secrets. No tool takes or shows a key's value, so never ask for one in the chat or put one in a file or a call; if the owner pastes one, write it nowhere and ask them to add it there and make a new key at the service.

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": {
      "featureId": "<featureId>",
      "projectId": "<projectId>"
    },
    "name": "add_feature"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoOnly for ai-answer on Xodia AI credits: the page's path the answer box goes on (default the home page, /), or false to add it without placing it.
ownKeyNoOnly for ai-answer, and only when the owner asks to use their own AI service's key: true writes the older server code that calls their AI service. Leave it out to answer on Xodia AI credits (no key, no code).
featureIdYesThe feature to add, from list_features: online-shop, contact-form, thank-you-email, ai-answer, buy-button, donations, call-service, daily-check, members-sign-in, paid-booking, memberships, newsletter, form-to-sheet, team-chat.
projectIdYesProject id from list_projects

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only tell us it is a non-read-only, non-destructive, closed-world mutation. The description goes far beyond that: it writes finished files into api/ and never overwrites (a taken name gets -2), turns on server tasks within the plan, updates the preview copy, skips safety review, and enumerates refusal codes with their meanings. Key-handling and no-key-write policy are spelled out, which is exactly the extra context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the purpose, but the body is a dense, run-on block with stacked parentheticals that is hard to scan for a single feature's rules. Much of the content earns its place given 14 feature variants, yet the same information could be structured more compactly and readably.

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 4-parameter mutation tool with no output schema, it covers writes, plan limits, refusals, and follow-up steps thoroughly. The gap is that only a subset of the enum values are described (thank-you-email, call-service, daily-check, newsletter, form-to-sheet, team-chat get no behavior note), though it defers to list_features for the catalog.

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

Parameters4/5

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

Schema coverage is 100% and the schema already documents featureId's enum, page, and ownKey. The description still adds real meaning: page is 'the page's path the answer box goes on' with a default of / and false meaning add-without-placing, and ownKey switches to the older api/ai-reply.ts code path requiring the owner's key. That is genuine behavioral semantics beyond the field text, though it largely rephrases 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 opening sentence names a specific verb and resource ('Adds one ready-made feature to the site') and immediately frames it against the manual alternative ('Use it instead of writing these files by hand') as well as a sibling ('as connect_form does'). An agent can tell what this does and what it replaces without opening the 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 gives per-feature guidance for contact-form, shop features, ai-answer, and members-sign-in, plus explicit when-not conditions (ownKey true only when the owner asks to use their own key; members-sign-in only for owners/admins). It also names alternatives and post-call steps (wire the page, run_check typecheck), so selection and sequencing are covered.

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