Skip to main content
Glama

Write a repo's launchpad file

write_repo_contribution
DestructiveIdempotent

Validate and write a repository's .cohors/repo.json, replacing the whole document. Blocks invalid writes and returns every validation error at once, so you can fix them in one pass.

Instructions

Validate and write one repo's .cohors/repo.json (its flows, agents, tasks). REPLACES the whole document: read the current one with launchpad first and pass back everything you mean to keep, especially tasks the user is part-way through. Writes nothing when invalid and returns every error at once. Declare a flow only when it adds what detection cannot infer (a label, port, primary, composite command, cwd) — an empty flows array is a correct answer. Never set a task done without evidence. Nothing machine-specific: this file is committed. Also gitignores .cohors/local.json. Requires --allow-launchpad; dry_run validates without it.

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": {
      "repo": "<repo>",
      "name": "<name>"
    },
    "name": "write_repo_contribution"
  }
}

Input Schema

NameRequiredDescriptionDefault
iconNo
nameYesDisplay name.
repoYesRepo id, name/alias, or path, named exactly (no prefixes: this write replaces the file), and inside the fleet.
flowsNo
groupNoFree text; groups repos on the launchpad.
linksNo
tasksNo
agentsNo
dry_runNoValidate and report without writing (works without --allow-launchpad).
summaryNoOne line: what this repo IS.
generatedFromNoShort SHA of the commit you read, so staleness can be shown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.21
    • changedInput schema / properties / repo / description
      Previous value: -"Repo id, name/alias, or path (must be inside the fleet)."New value: +"Repo id, name/alias, or path, named exactly (no prefixes: this write replaces the file), and inside the fleet."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations: the destructiveHint is explained as a full document replacement, invalid input writes nothing and returns every error at once, the write also gitignores .cohors/local.json, the file is committed so nothing machine-specific belongs in it, and it requires --allow-launchpad unless dry_run is set. That is materially more than the structured flags convey.

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-loads the highest-risk fact (whole-document replacement) in the second sentence and keeps each follow-on sentence to one rule. It is dense but nearly every clause carries a decision the caller needs; only the local.json gitignore note sits slightly outside the core task.

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 an 11-parameter destructive write with no output schema, it covers validation behavior, error aggregation, permission gating, and the replacement hazard. What remains thin is the success response shape after a successful write, which the agent can only infer.

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 coverage sits at 55%, and the description compensates for the important parts: flow entries should only exist when they add what detection can't infer, and task status has an evidence bar. It says nothing about icon, links, group, supports, or generatedFrom, so half the surface still relies on the schema descriptions alone.

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 (validate and write) plus the exact resource (.cohors/repo.json) and its contents (flows, agents, tasks). The read sibling `launchpad` is named, so the agent can distinguish this write tool from the read path 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?

Explicit routing: read the current document with `launchpad` first and pass back everything you mean to keep. It also gives a when-to-declare rule for flows (only when adding what detection can't infer, empty array is valid) and a when-not rule for task status (never mark done without evidence).

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