Skip to main content
Glama

er_record_create

Generate a new Edge Routine (ER) record by specifying the routine name, site ID, and record name, enabling effective management of AI model integrations via the ESA MCP Server.

Instructions

Create a new record associated with an Edge Routine (ER)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the routine
recordNameYesThe name of the record
siteIdYesThe ID of the site

Implementation Reference

  • The main handler function for the 'er_record_create' tool. It calls the API to create a routine-related record and returns the result as JSON.
    export const er_record_create = async (request: CallToolRequest) => { const res = await api.createRoutineRelatedRecord( request.params.arguments as CreateRoutineRelatedRecordRequest, ); return { content: [{ type: 'text', text: JSON.stringify(res) }], success: true, }; };
  • The tool definition object providing the name, description, and input schema for 'er_record_create'.
    export const ER_RECORD_CREATE_TOOL: Tool = { name: 'er_record_create', description: 'Create a new record associated with an Edge Routine (ER)', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'The name of the routine', }, siteId: { type: 'number', description: 'The ID of the site', }, recordName: { type: 'string', description: 'The name of the record', }, }, required: ['name', 'siteId', 'recordName'], }, };
  • Registration of the er_record_create handler in the esaHandlers object used for tool dispatching.
    er_record_create,
  • Inclusion of the ER_RECORD_CREATE_TOOL schema in the ESA_OPENAPI_ER_LIST array for tool listing and discovery.
    ER_RECORD_CREATE_TOOL,
  • Import of the er_record_create handler and ER_RECORD_CREATE_TOOL from './er/record'.
    er_record_create, ER_RECORD_CREATE_TOOL,

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/aliyun/mcp-server-esa'

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