Skip to main content
Glama

phone_flow_publish

Destructive

Publish a verified flow to the official registry by preparing a GitHub fork, branch, index rebuild, and public pull request. Set confirm only after user approval.

Instructions

Publish a working flow to the official registry through the user's GitHub CLI: fork if needed, write the flow and any new app.json, rebuild index.json, push a branch, open a public PR. confirm=true only after the user agreed to that publication. Draft with phone_flow_draft and prove with phone_flow_run first; phone_flow_report is for problems in existing flows. verified_on takes device/iOS/date; unverified flows open a draft PR. Returns id, repo, branch, head, pr_url; inspect it before retrying.

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": {
      "source": "<source>",
      "id": "<id>"
    },
    "name": "phone_flow_publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRegistry id to publish as, `<app>/<flow>` lowercase slugs.
noteNoWhat was verified, where, and anything a reviewer should know.
sourceYesFlow file path, or an id installed with `flow add`.
aliasesNoForeground-app labels per language (e.g. ["Health","健康"]).
confirmNoMust be true; set only after the user agreed to open a public PR.
app_nameNoHuman app name, used only when the app is new to the registry.
instanceNodaemon instance name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.29.2
    • removedInput schema / description
      Removed value: -"Parameters for [`phone_flow_publish`]."
  2. Changed6 schema fields changedv0.29.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / app_name / default
      Removed value: -null
    • changedInput schema / properties / app_name / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedInput schema / properties / instance / description
      Previous value: -"Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure."New value: +"daemon instance name"
    • removedInput schema / properties / note / default
      Removed value: -null
    • changedInput schema / properties / note / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
  3. Changed1 schema field changedv0.27.3
    • addedInput schema / properties / instance
      Added value: +{
      +  "description": "Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure.",
      +  "type": "string"
      +}
  4. First observedv0.21.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and idempotentHint=false, but the description still adds real value: the action is public (opens a public PR against the official registry), it depends on the user's GitHub CLI, unverified flows get a draft PR instead of a live one, and it returns id/repo/branch/head/pr_url to inspect before retrying. It does not say what a failed mid-publish leaves behind (fork created, branch pushed), so it stops short of 5.

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?

Front-loaded with the action and its steps, then the sequencing and the return contract, with no filler. The telegraphic phrasing ('fork if needed', 'verified_on takes device/iOS/date') is dense enough to occasionally read ambiguously, but nothing is wasted.

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 7-parameter, non-idempotent, publicly-visible write operation with no output schema, the description covers mechanism, prerequisites, consent, verification tier, and return fields, which is nearly everything needed. The one gap is the dangling verified_on reference, a parameter the schema does not define.

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%, so the baseline is 3; the description earns an extra point by explaining consequences the schema does not, notably that confirm carries a consent gate and that missing verification downgrades the result to a draft PR. However it references 'verified_on takes device/iOS/date', and no verified_on parameter exists in the input schema, which will confuse an agent about how to supply verification.

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 (publish) and resource (a flow to the official registry) and spells out the concrete mechanism step by step: fork if needed, write the flow and app.json, rebuild index.json, push a branch, open a public PR. That level of mechanism makes it unmistakable against siblings like phone_flow_draft or phone_flow_run.

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?

Explicit routing: draft with phone_flow_draft, prove with phone_flow_run, and use phone_flow_report for problems in existing flows. It also gates the call on user consent via confirm=true 'only after the user agreed to that publication', which is exactly the when-to-use condition an agent needs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.