Skip to main content
Glama

codesweep_create

Create a new sweep for batch iteration over items, defining lifecycle states, terminal states, and batch size to track progress through customizable workflows.

Instructions

Create a new sweep for batch iteration over items.

Args:

  • name: Optional human-readable name (must be unique)

  • description: What this sweep is for

  • default_batch_size: Default items per batch (default: 10)

  • lifecycle: Ordered list of allowed states (default ["pending","done"]). For retro-style workflows: ["DETECTED","CONFIRMED","ESCALATED", "POSTPONED","RESOLVED","DROPPED"].

  • terminal_states: States that count as "processed" (default ["done"]).

  • transitions: Optional dict[state, list[allowed_next_state]] for DAG-constrained lifecycles. None = unconstrained transitions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
lifecycleNo
descriptionNo
transitionsNo
terminal_statesNo
default_batch_sizeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.2.2

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden of disclosing behavior. It does explain creation semantics and important defaults/constraints like lifecycle defaults, terminal_states meaning 'processed', and transitions as an optional DAG constraint. However, it does not disclose side effects, error behavior on duplicate names, idempotency, or persistence details beyond the act of creating.

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?

The description is front-loaded with a one-sentence purpose, followed by a compact, well-organized Args list. Every line adds useful information about a parameter or default, with no filler or redundancy. The retro lifecycle example is valuable rather than decorative.

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 creation tool with six optional parameters and non-trivial lifecycle semantics, the description covers all parameters and gives enough context to call it correctly. An output schema exists, so return-value documentation is not required. The main gap is the lack of guidance on what happens after creation or how creation relates to codesweep_add, but this is not essential for invoking this specific tool.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it does thoroughly. Every parameter is explained with its meaning, default value, and relevant examples — for instance, lifecycle includes a concrete retro-style workflow and transitions explicitly explains that None means unconstrained. This adds substantial semantic value beyond the raw 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 description opens with a specific verb and resource: 'Create a new sweep for batch iteration over items.' This clearly identifies the tool's action and domain, and distinguishes it from sibling tools like codesweep_add, codesweep_next, and codesweep_mark that operate on existing sweeps rather than creating new ones.

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

Usage Guidelines3/5

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

The description provides context about when this is relevant (setting up a sweep for batch iteration, with retro-style lifecycles as a notable use case). However, it never explicitly says when NOT to use it or points to alternatives such as codesweep_add for adding items to an existing sweep. Usage is implied rather than directly guided.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/faxik/codebugs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server