Skip to main content
Glama

apply_mail_setup

Carry out a mail setup plan for a client, requiring approval when the plan changes an existing setup.

Instructions

Carry out a plan from plan_mail_setup.

approved is required when the plan would replace or combine a record somebody put there on purpose. Creating one that does not exist is not a judgement call; changing one that does is, and it is someone else's live mail. Show the plan to the operator, then call this.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clientYesThe client to act on, by the name you registered them under. A write resolves this one client's credentials and no other.
plan_idYesThe plan_id that plan_mail_setup returned. A plan made for a different client is refused.
approvedNoRequired only when the plan would replace a record that already exists. That is the client's decision, so show them the plan before setting this.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed3 schema fields changedv0.5.0
    • addedInput schema / properties / approved / description
      Added value: +"Required only when the plan would replace a record that already exists. That is the client's decision, so show them the plan before setting this."
    • addedInput schema / properties / client / description
      Added value: +"The client to act on, by the name you registered them under. A write resolves this one client's credentials and no other."
    • addedInput schema / properties / plan_id / description
      Added value: +"The plan_id that plan_mail_setup returned. A plan made for a different client is refused."
  2. First observedv0.4.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description bears full responsibility for disclosing effects. It warns that the action may replace or combine an existing record, emphasizes that modifying existing data affects someone else's live mail, and indicates that explicit operator approval is needed in those cases. This is adequate though not exhaustive.

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 concise and front-loads the core purpose, then adds necessary approval caveats. Some phrasing is a bit cryptic ('somebody put there on purpose', 'someone else's live mail') but it does not waste words and remains understandable.

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

Completeness4/5

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

Given the tool's mutation-like nature and the absence of an output schema, the description provides enough context about when to call it, what it may change, and the approval requirement. It does not describe return values or failure modes, but these are not essential for an agent to invoke it correctly.

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

Parameters4/5

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

Schema coverage is 100%, and the descriptions add useful constraints beyond basic types: `client` specifies the registered name and credential resolution, `plan_id` ties to the planning output and cross-client rejection, and `approved` clarifies default behavior and when it is required. This exceeds the baseline given full schema coverage.

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

Purpose5/5

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

The description clearly identifies the tool's action as carrying out a plan produced by `plan_mail_setup`, which distinguishes it from the planning sibling tool. It names the specific resource (a mail setup plan) and the operation (apply/execute).

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

Usage Guidelines4/5

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

The description gives explicit guidance to show the plan to the operator before calling, and states when `approved` is required (when the plan would replace or combine an existing record). It could more explicitly contrast with `plan_mail_setup`, but the instruction to call only after showing the plan is clear.

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

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/vishalsg42/munim'

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