get_form
Retrieve detailed information about specific form templates to examine their structure, field specifications, and layout before creating documents or new forms.
Instructions
Retrieves detailed information about a specific form template
Usage: Examine form structure before creating documents or new forms Returns: Complete form definition including field specifications
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes |
Implementation Reference
- main.py:489-498 (handler)The main handler function for the 'get_form' MCP tool. It is decorated with @mcp.tool which registers it automatically as a tool named 'get_form'. The function retrieves a specific form template by ID using the eln_cli client.@mcp.tool(tags={"rspace"}) def get_form(form_id: int | str) -> dict: """ Retrieves detailed information about a specific form template Usage: Examine form structure before creating documents or new forms Returns: Complete form definition including field specifications """ return eln_cli.get_form(form_id)
- main.py:489-489 (registration)The @mcp.tool decorator registers the get_form function as an MCP tool with tag 'rspace'. FastMCP automatically uses the function name as the tool name.@mcp.tool(tags={"rspace"})
- main.py:490-496 (schema)Input schema defined by type hints: form_id as int or str. Output: dict. Docstring provides description for MCP tool schema generation.def get_form(form_id: int | str) -> dict: """ Retrieves detailed information about a specific form template Usage: Examine form structure before creating documents or new forms Returns: Complete form definition including field specifications """