Skip to main content
Glama

APIMock

Create resource

create_resource

Declare a single new stateful CRUD collection with typed fields and initial seed records. Materializes live CRUD endpoints (list, get, create, patch, put, delete) immediately.

Input Schema

NameRequiredDescriptionDefault
slugYesResource slug (e.g. 'reviews').
fieldsYesOrdered typed fields.
folder_idNoOptional folder ID to nest under.
workspaceYesTarget workspace slug.
seed_recordsNoSeed data rows.
access_policyNoIntended access level. Stored with the resource and used for export; the mock runtime does not enforce it yet.public

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered structurally. The description adds genuinely useful behavioral context beyond that: the call immediately materializes six live CRUD endpoints (list, get, create, patch, put, delete), which tells the agent this has lasting side effects in the mock environment. It still omits whether creation is reversible or what permissions are needed.

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 tight sentences, no filler, with the creation intent front-loaded and the behavioral consequence immediately after. Every clause earns its place.

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 explains the main outcome (live CRUD endpoints) but never says what is returned or how to address the created resource afterwards, nor does it warn about slug collisions in the target workspace. Adequate but with clear gaps for an agent that must use the result.

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 the schema already fully documents slug, fields, workspace, folder_id, seed_records and access_policy. The description only loosely alludes to 'typed fields and initial seed records' and adds no syntax, format, or constraint detail beyond the schema, so the baseline 3 applies.

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: declaring a single stateful CRUD collection with typed fields and seed records, plus the side effect of materializing CRUD endpoints. It is clear what the tool creates, though it does not explicitly differentiate itself from siblings like create_endpoint, create_folder, or scaffold_backend.

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 purpose — you call this when you need a new CRUD collection — but there is no statement of when to prefer it over create_endpoint, import_openapi, or scaffold_backend, and no prerequisites or uniqueness constraints are mentioned. An agent must infer the selection criteria.

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