Skip to main content
Glama
MAG-Cie

MCP for Microsoft To Do

create_linked_resource

Attach a web URL or external reference to a task in a Microsoft To Do list, enabling task linking to relevant resources.

Instructions

Attach a linked resource (URL or external ref) to a task.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
list_idYes
task_idYes
web_urlNo
application_nameNo
display_nameNo
external_idNo
verboseNoIf true: returns full JSON. Otherwise: compact text format (default, saves tokens).

Implementation Reference

  • Core handler that sends a POST request to Microsoft Graph API to create a linked resource on a task. It takes listId, taskId, and resource fields (webUrl, applicationName, displayName, externalId) and returns the created LinkedResource.
    export async function createLinkedResource(
      listId: string,
      taskId: string,
      resource: {
        webUrl?: string;
        applicationName?: string;
        displayName?: string;
        externalId?: string;
      }
    ): Promise<LinkedResource> {
      return graphFetch<LinkedResource>(
        `/me/todo/lists/${enc(listId)}/tasks/${enc(taskId)}/linkedResources`,
        {
          method: "POST",
          body: JSON.stringify(resource),
        }
      );
    }
  • Zod schema for create_linked_resource tool input validation. Defines list_id, task_id, web_url, application_name, display_name, external_id, and verbose fields.
    create_linked_resource: z.object({
      list_id: z.string(),
      task_id: z.string(),
      web_url: z.string().url().optional(),
      application_name: z.string().optional(),
      display_name: z.string().optional(),
      external_id: z.string().optional(),
      ...verboseField,
    }),
  • MCP tool dispatch handler for 'create_linked_resource'. Parses args with Zod schema, calls createLinkedResource from graph.ts, and formats output via formatLinkedCompact.
    case "create_linked_resource": {
      const a = schemas.create_linked_resource.strict().parse(args);
      const r = await createLinkedResource(a.list_id, a.task_id, {
        webUrl: a.web_url,
        applicationName: a.application_name,
        displayName: a.display_name,
        externalId: a.external_id,
      });
      return out(r, a.verbose, formatLinkedCompact);
    }
  • src/index.ts:732-748 (registration)
    Tool registration for 'create_linked_resource' in the ListTools handler, advertising the tool name, description, and JSON input schema to MCP clients.
    {
      name: "create_linked_resource",
      description: "Attach a linked resource (URL or external ref) to a task.",
      inputSchema: {
        type: "object",
        properties: {
          list_id: { type: "string" },
          task_id: { type: "string" },
          web_url: { type: "string" },
          application_name: { type: "string" },
          display_name: { type: "string" },
          external_id: { type: "string" },
          ...verboseJsonProp,
        },
        required: ["list_id", "task_id"],
      },
    },
  • Compact text formatter for LinkedResource. Concatenates id, applicationName, displayName, webUrl, and externalId into a one-line string.
    export function formatLinkedCompact(r: LinkedResource): string {
      const parts = [r.id];
      if (r.applicationName) parts.push(`app:${r.applicationName}`);
      if (r.displayName) parts.push(`name:${JSON.stringify(r.displayName)}`);
      if (r.webUrl) parts.push(`url:${r.webUrl}`);
      if (r.externalId) parts.push(`ext:${r.externalId}`);
      return parts.join(" ");
    }
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate readOnlyHint=false, destructiveHint=false, and openWorldHint=true. The description adds minimal context beyond stating the action, but does not contradict annotations. It does not disclose side effects, auth needs, or rate limits, which are partially covered by annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that gets straight to the point. It is concise and front-loaded, but might benefit from slightly more detail without becoming verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 7 parameters (2 required), no output schema, and a minimal description, the agent lacks sufficient context to understand the full operation, especially parameter roles and expected return format. The description is too sparse for a tool of this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 14% (only 'verbose' described). The description does not mention any parameters, leaving the agent with no added meaning for the six undocumented parameters. This is a significant gap given the low coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Attach a linked resource') and target ('to a task'), with an additional hint about resource type (URL or external ref). However, it does not differentiate from sibling tools like list_linked_resources or delete_linked_resource, which would benefit from explicit alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, nor does it mention any prerequisites or context for usage. The agent is left without information about scenarios where this tool is appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/MAG-Cie/mcp-microsoft-todo'

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