Skip to main content
Glama

AI Source of Truth Evidence Rooms

Create a folder

create_folder

Add a folder to a case, optionally inside another folder. Logged. Scope: cases:write. REST twin: POST /api/cases/:id/folders. Errors: unauthorized, insufficient_scope, not_found, forbidden, consent_required, read_only, validation_error.

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": {
      "case_id": "<case_id>",
      "name": "<name>"
    },
    "name": "create_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes1 to 200 characters.
case_idYesThe case id (cas_...).
parent_idNoThe fld_ id of the parent folder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and openWorldHint=false; the description goes further by disclosing the audit behavior ('Logged'), the required OAuth scope ('cases:write'), and a concrete error taxonomy including read_only, consent_required, and forbidden. These are real operational facts an agent cannot get from the annotations, though it doesn't say whether parent_id must belong to the same case.

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 purpose and nesting behavior, then terse metadata lines with zero filler. The error enumeration is dense but each token is a distinct failure mode, so it earns its space; the telegraphic style is slightly terse but never ambiguous.

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

Completeness3/5

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

For a creation tool with no output schema, the description never indicates what comes back (e.g., the new fld_ id), which is a meaningful gap for an agent that needs to nest children afterward. Safety, permissions, and errors are well covered, so the omission is the main shortfall.

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 is 100% and the schema already documents all three parameters with formats (cas_..., fld_..., 1-200 chars). The description adds only the semantic that parent_id represents a nesting location, which the schema's own field description largely covers, so 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?

States a specific verb and resource ('Add a folder to a case') plus the nesting capability ('optionally inside another folder'), which is enough to separate it from sibling creation tools like create_case or upload_item. It does not explicitly name an alternative folder-related tool, so it stops short of a 5.

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 'Scope: cases:write' line and the case-anchored phrasing imply when the tool applies, and the REST twin gives a mental model for API users. However, there is no explicit when-to-use versus when-not-to-use guidance and no named alternative for other ways of organizing case content.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources