box_metadata_template_get_by_name_tool
Retrieve metadata templates by name using the MCP Server Box API, enabling structured data access and integration for Box files and folders.
Instructions
Retrieve a metadata template by its name.
Args: ctx (Context): The context object containing the request and lifespan context. template_name (str): The name of the metadata template to retrieve.
Returns: dict: The metadata template associated with the provided name.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_name | Yes |
Implementation Reference
- src/tools/box_tools_metadata.py:112-126 (handler)The handler function that implements the core logic of the 'box_metadata_template_get_by_name_tool'. It retrieves the Box client from context and calls the underlying box_metadata_template_get_by_name function.async def box_metadata_template_get_by_name_tool( ctx: Context, template_name: str ) -> dict: """ Retrieve a metadata template by its name. Args: ctx (Context): The context object containing the request and lifespan context. template_name (str): The name of the metadata template to retrieve. Returns: dict: The metadata template associated with the provided name. """ box_client = get_box_client(ctx) return box_metadata_template_get_by_name(box_client, template_name)
- src/tool_registry/metadata_tools.py:19-19 (registration)The registration of the tool using the mcp.tool() decorator within the register_metadata_tools function.mcp.tool()(box_metadata_template_get_by_name_tool)
- src/tool_registry/metadata_tools.py:9-9 (registration)The import statement in the tool registry that brings in the handler function for registration.box_metadata_template_get_by_name_tool,