Skip to main content
Glama

generate_labels

Generate Docker Compose Traefik labels for a new project from its name, domain, internal port, and optional middlewares.

Instructions

Generate docker-compose traefik labels for a new project

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": {
      "name": "<name>",
      "domain": "<domain>",
      "port": "<port>"
    },
    "name": "generate_labels"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesProject/router name (e.g., myapp)
portYesInternal container port
domainYesDomain to use (e.g., myapp.localhost)
middlewaresNoOptional array of middleware names (e.g., secure-headers@file)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and does not meet it: it never says whether labels are returned as text for the caller to paste or written into a compose file, whether an existing project is modified, or whether the call is idempotent/safe to repeat. That ambiguity matters for a generation tool operating on project configuration.

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

Conciseness5/5

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

A single front-loaded sentence with no filler or redundancy; the key action leads immediately. Brevity is not achieved by padding or hedging.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no annotations and no output schema, the definition omits the two things an agent most needs: the form of the result (raw label text vs. file mutation) and any dependency on prior stack setup. The one-liner is too thin relative to the tool's role in the workflow.

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 all four parameters (name, domain, port, middlewares) are already documented with examples in the schema. The description adds nothing about how those values shape the emitted labels, so the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Generate docker-compose traefik labels') plus a scope qualifier ('for a new project'). This distinguishes it as a code/label-emission helper rather than a stack mutator like add_domain_route or add_middleware, though it never explicitly contrasts with those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'For a new project' is the only contextual cue about when to reach for this tool; there is no statement of prerequisites (e.g., an initialized stack) or of when to use add_domain_route/add_middleware instead. An agent must infer the workflow position from the phrase alone.

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