Skip to main content
Glama

generate_crud_requests

Generate a complete CRUD request set for a REST resource, creating a folder with GET list, GET by ID, POST, PUT, PATCH, and DELETE requests.

Instructions

Auto-generate a complete CRUD set of requests for a REST resource (e.g. 'users' → GET list, GET by ID, POST, PUT, PATCH, DELETE). Creates a folder containing all 6 requests.

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": {
      "parent_id": "<parent_id>",
      "resource": "<resource>"
    },
    "name": "generate_crud_requests"
  }
}

Input Schema

NameRequiredDescriptionDefault
id_varNoVariable name to use for the resource ID placeholderid
resourceYesResource name, e.g. 'users', 'orders', 'products'
parent_idYesWorkspace or folder to create the CRUD folder in
base_url_varNoEnvironment variable name for the base URLbase_url
include_body_templateNoInclude a sample JSON body in POST/PUT/PATCH requests

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden; it does disclose the key side effect (a folder plus six requests are created). It omits important behavior for a mutation tool: what happens if the folder or names already exist, whether anything is overwritten, and what permissions are required.

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?

Two sentences, front-loaded with the core purpose, and the parenthetical enumeration earns its space by showing the exact artifact set. No redundant or filler wording.

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 five-parameter generator with no output schema and no annotations, the definition should say what is returned (e.g. folder ID or created request IDs) and how failures are handled. It fully explains what gets created but leaves the calling contract incomplete.

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 five parameters are already documented, establishing a baseline of 3. The description adds only the mapping from resource name to generated requests; it does not clarify how id_var/base_url_var affect the generated content or how include_body_template changes output.

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 and resource ('Auto-generate a complete CRUD set of requests for a REST resource') and enumerates exactly what is produced (GET list, GET by ID, POST, PUT, PATCH, DELETE). The phrase 'Creates a folder containing all 6 requests' clearly distinguishes this from single-request creation siblings like create_request.

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?

Usage is implied by the scaffolding scenario (you have a new resource and want all six requests at once), but there is no explicit when-to-use/when-not or named alternative such as create_request or create_folder. An agent must infer that it should use this instead of creating requests one by one.

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