Skip to main content
Glama

Create problem statement

create_prb

Creates a new Problem Statement document with a unique ID and validated content, returning frontmatter upon success. On validation failure, returns errors without writing.

Instructions

Create a new Problem Statement: assigns a fresh id, derives a filename from the body's H1 title, validates the submitted body-only content, and writes the new document to the problem statement base directory. A content-validation failure of the submitted body returns a non-raising ValidateResult (valid=False, a single errors[].message capped at 300 chars as the generic validate tool caps it, feat-110) instead of raising AssertionError/pydantic.ValidationError (ADR f14f125e-eaad-4f4f-a6fd-3c931bed726e, GitHub issue #204 -- case 5 of the ADR 519d1206 non-raising-structured-result workaround chain); nothing is written in that case. Returns the newly created document's frontmatter only (no body); use the corresponding get_prb tool to fetch the full document afterward.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.36.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so richly: it discloses that validation failures return a non-raising ValidateResult (valid=False, errors[].message capped at 300 chars) rather than raising AssertionError/pydantic.ValidationError, and that nothing is written in that case. It also discloses the return shape (frontmatter only, no body).

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 primary action and effect chain, then behavior on failure, then return contract. Dense but largely earn-its-place; the internal ADR/issue/feat references are verbose and add noise for an agent deciding whether to call it.

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 single-input create tool with an output schema, the description is nearly complete: it covers effects, failure semantics, and return contract. The remaining gap is authoring guidance (no mention of get_prb_template/get_prb_example for body structure), which an agent would likely want.

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 0% and there is a single parameter, so the description must compensate. It clarifies that content is body-only and that its H1 title is used to derive the filename, which adds real meaning beyond the bare 'content: string' schema. It stops short of specifying expected body format or required sections.

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 + resource ('Create a new Problem Statement') and enumerates the concrete effects: fresh id, filename derivation, validation, and write to the base directory. An agent can distinguish it from sibling create_* tools and from get_prb/parse_prb/list_prb without opening any schema.

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 only routing guidance is a follow-up pointer: use get_prb to fetch the full document afterward. There is no explicit when-to-use versus edit/update/update_frontmatter, nor a pointer to get_prb_template for authoring the body, so context is implied rather than stated.

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