Skip to main content
Glama

Update server tasks

update_server_tasks

Builds the site's server tasks (the api/ folder) now and updates the preview copy, so /api/... in the preview runs the new code. Xodia also does this by itself a few seconds after a change to api/ or package.json; call it after writing or fixing a task to see at once whether it builds. The answer reads like run_check: "server tasks build passed" with the tasks and any key names not set yet, or "server tasks build failed" with each problem at file:line; fix every problem and call it again. It never touches the live site (that updates when the owner goes live). When the answer says the version would wait for a safety check, tell the user: Xodia checks some new server code before it goes live, usually within a day, and the preview works meanwhile; don't change the code to get around it. Answers server_tasks_off or server_tasks_not_on when tasks aren't on for the site: tell the owner they turn them on in Features (top menu), and don't call it again in this task. Keys and schedules are the owner's: they add each key's value in Project settings, Keys and secrets, set a schedule with Run on a schedule on the task in Features (top menu), and pause or remove it in Project settings, Server tasks. A schedule runs at an interval (every hour, 15 or 5 minutes, within the plan), every day at a time, on chosen weekdays at a time, or on a day of each month at a time, each in the time zone the owner picks. No tool sets or reads a key's value or a schedule; tell the owner the key name or the address and when it should run (for example every day at 9:00, or Mondays and Thursdays at 18:30, and the time zone).

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

Input Schema

NameRequiredDescriptionDefault
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 say it is a non-destructive, non-open-world write; the description adds the behavior that matters: it never touches the live site, the live update happens when the owner goes live, and a safety-check queue can delay the live version. It also discloses both response shapes (pass with unset key names, or fail with file:line problems), the fix-and-retry loop, and that it neither reads nor sets key values or schedules.

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 and the build-and-retry loop are front-loaded in the first two sentences, and each subsequent paragraph addresses a distinct decision point. It is long for a one-parameter tool, and the keys-and-schedules passage is dense and somewhat tangential to the build action, though it does preempt wasted attempts to configure keys or schedules through a tool.

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?

Covers everything an agent needs across the call lifecycle: when to invoke, what the two response shapes mean and how to react, what the tool never affects, and the off-state message to relay to the owner. With no output schema and a single fully documented parameter, nothing material is left unexplained.

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?

The sole parameter, projectId, is fully documented in the schema (100% coverage, 'Project id from list_projects'), so the schema carries the semantics. The description adds no project-scoping or identifier guidance beyond that, which is the baseline-3 case when schema coverage is complete.

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 — builds the site's server tasks from the api/ folder and updates the preview copy — and clarifies the concrete effect ('/api/... in the preview runs the new code'). It explicitly distinguishes itself from the automatic build Xodia performs and from run_check by describing the answer format as 'like run_check', so an agent can place it without opening another 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?

Gives an explicit trigger ('call it after writing or fixing a task to see at once whether it builds') and an explicit no-call state ('Answers server_tasks_off or server_tasks_not_on ... don't call it again in this task'). It also names the alternative behavior — the automatic build a few seconds after a change to api/ or package.json — so the agent knows when a manual call is redundant versus useful.

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