Skip to main content
Glama

manage_state

Manage stateful mock resources with CRUD operations to persist data across requests. Create collections, browse items, retrieve specific data, add new entries, or restore seed data.

Instructions

Manage stateful mock resources — CRUD collections that persist data across requests. Use 'overview' to see all resources, 'add_resource' to create a new resource, 'list_items' to browse items in a resource, 'get_item' for a specific item, 'create_item' to add data, or 'reset' to restore seed data.

Examples: Overview: {"action":"overview"} Add resource:{"action":"add_resource","resource":"users","path":"/api/users"} List items: {"action":"list_items","resource":"users","limit":10} Get item: {"action":"get_item","resource":"users","item_id":"abc123"} Create item: {"action":"create_item","resource":"users","data":{"name":"Alice"}} Reset: {"action":"reset","resource":"users"}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesOperation to perform
dataNoItem data (required for create_item)
id_fieldNoCustom ID field name (default: 'id', for add_resource)
item_idNoItem ID (required for get_item)
limitNoMax items for list_items
offsetNoPagination offset for list_items
orderNoSort order: asc or descdesc
pathNoURL base path for the resource (e.g., /api/users). Omit for bridge-only mode (for add_resource)
resourceNoResource name (required for add_resource/list_items/get_item/create_item/reset)
sortNoSort field for list_itemscreatedAt

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/getmockd/mockd'

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