Skip to main content
Glama
RestDB

Codehooks.io MCP Server

by RestDB

query_collection

Query data from collections using URL-style, regex, or MongoDB-style JSON queries. Supports system collections like '_hooks' to discover API endpoints and deployment metadata.

Instructions

Query data from a collection. Supports URL-style, regex, and MongoDB-style JSON queries with comparison operators. Can also query system collections like '_hooks' which contains deployment metadata including available API endpoints. Using delete, update or replace is very powerful but also dangerous, so use with caution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collectionYesCollection name. Use '_hooks' to query deployment metadata and discover available API endpoints.
queryNoQuery expression. Supports multiple formats: URL-style ('name=Polly&type=Parrot'), regex ('name=/^po/'), or MongoDB-style JSON ('{"name": "Polly", "age": {"$gt": 5}}' for complex queries with operators like $gt, $lt, $gte, $lte, $ne, $in, $nin, $exists, $regex). To get the latest deployment info with API endpoints, use: collection='_hooks', limit=1, reverse=true (check the routehooks property for the available API endpoints)
countNoCount query results
deleteNoDelete all items from query result
updateNoPatch all items from query result with JSON string '{...}'
replaceNoReplace all items from query result with JSON string '{...}'
useindexNoUse an indexed field to scan data in query
startNoStart value for index scan
endNoEnd value for index scan
limitNoLimit query result. Use limit=1 and reverse to get latest deployment from _hooks collection
fieldsNoComma separated list of fields to include
sortNoComma separated list of fields to sort by. Use '_id' to sort by creation time
offsetNoSkip items before returning data in query result
enqueueNoAdd query result to queue topic
reverseNoScan index in reverse order. Use with sort='_id' to get newest records first
csvNoOutput data in CSV format
jsonlNoOutput data in JSONL format

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/RestDB/codehooks-mcp-server'

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