Skip to main content
Glama

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
NameRequiredDescriptionDefault
template_nameYes

Implementation Reference

  • 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)
  • 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)
  • The import statement in the tool registry that brings in the handler function for registration.
    box_metadata_template_get_by_name_tool,

Other Tools

Related Tools

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/box-community/mcp-server-box'

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