Skip to main content
Glama

coda_resolve_link

Extract metadata from a Coda object URL to enable AI assistants to interact with Coda documents effectively, supporting operations like reading and updating content.

Instructions

Resolve metadata given a browser link to a Coda object

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to resolve

Implementation Reference

  • Executes the tool logic by calling resolveBrowserLink SDK function with the provided URL and returning the resolved metadata as JSON or an error.
    async ({ url }): Promise<CallToolResult> => {
      try {
        const resp = await resolveBrowserLink({
          query: { url },
          throwOnError: true,
        });
    
        return { content: [{ type: "text", text: JSON.stringify(resp.data) }] };
      } catch (error) {
        return { content: [{ type: "text", text: `Failed to resolve link: ${error}` }], isError: true };
      }
    },
  • Zod schema for input validation: requires a 'url' string parameter.
    {
      url: z.string().describe("The URL to resolve"),
    },
  • src/server.ts:272-290 (registration)
    Registers the 'coda_resolve_link' MCP tool with the server, specifying name, description, input schema, and handler function.
    server.tool(
      "coda_resolve_link",
      "Resolve metadata given a browser link to a Coda object",
      {
        url: z.string().describe("The URL to resolve"),
      },
      async ({ url }): Promise<CallToolResult> => {
        try {
          const resp = await resolveBrowserLink({
            query: { url },
            throwOnError: true,
          });
    
          return { content: [{ type: "text", text: JSON.stringify(resp.data) }] };
        } catch (error) {
          return { content: [{ type: "text", text: `Failed to resolve link: ${error}` }], isError: true };
        }
      },
    );
Install Server

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/orellazri/coda-mcp'

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