Skip to main content
Glama
openagentemail

openagentemail

Claim Email Task

task_claim

Claim a submitted task as its managed recipient for a bounded lease, letting agents lock work safely and reclaim it with an expired or released lease receipt.

Instructions

Claim a submitted task as its managed recipient for a bounded lease. Each generation is capped at 24 hours and the task cannot claim or renew at or after its first claim plus seven days; a working task may otherwise be reclaimed with an authenticated expired or released lease receipt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesTask UUID
leaseSecNoLease duration in seconds (30..3600; default 300)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYes
leaseTokenYes
claimedUntilYes
leaseGenerationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.10.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed21 schema fields changedv0.7.2
    • removedOutput schema / properties / task / properties / approval / properties / reviewer / format
      Removed value: -"email"
    • addedOutput schema / properties / task / properties / approval / properties / reviewer / maxLength
      Added value: +320
    • changedOutput schema / properties / task / properties / approval / properties / reviewer / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^[a-z0-9][a-z0-9._-]{0,62}@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*\\.?$"
    • addedOutput schema / properties / task / properties / expiryProjection
      Added value: +{
      +  "const": "past-deadline-unmaterialized",
      +  "type": "string"
      +}
    • removedOutput schema / properties / task / properties / from / format
      Removed value: -"email"
    • addedOutput schema / properties / task / properties / from / maxLength
      Added value: +320
    • changedOutput schema / properties / task / properties / from / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^[a-z0-9][a-z0-9._-]{0,62}@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*\\.?$"
    • removedOutput schema / properties / task / properties / id / format
      Removed value: -"uuid"
    • removedOutput schema / properties / task / properties / id / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • changedOutput schema / properties / task / properties / messages / items / properties / approval / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "snapshot": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "action": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "arguments": {},
      -              "name": {
      -                "type": "string"
      -              },
      -              "type": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "type",
      -              "name",
      -              "arguments"
      -            ],
      -            "type": "object"
      -          },
      -          "digest": {
      -            "type": "string"
      -          },
      -          "expiresAt": {
      -            "type": "string"
      -          },
      -          "reviewer": {
      -            "format": "email",
      -            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "action",
      -          "reviewer",
      -          "expiresAt",
      -          "digest"
      -        ],
      -        "type": "object"
      -      },
      -      "type": {
      -        "const": "request",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "snapshot"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "decision": {
      -        "enum": [
      -          "approved",
      -          "rejected"
      -        ],
      -        "type": "string"
      -      },
      -      "digest": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "decision",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "digest",
      -      "decision"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "digest": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "expired",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "digest"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "snapshot": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "action": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "arguments": {},
      +              "name": {
      +                "type": "string"
      +              },
      +              "type": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type",
      +              "name",
      +              "arguments"
      +            ],
      +            "type": "object"
      +          },
      +          "digest": {
      +            "type": "string"
      +          },
      +          "expiresAt": {
      +            "type": "string"
      +          },
      +          "reviewer": {
      +            "maxLength": 320,
      +            "pattern": "^[a-z0-9][a-z0-9._-]{0,62}@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*\\.?$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "action",
      +          "reviewer",
      +          "expiresAt",
      +          "digest"
      +        ],
      +        "type": "object"
      +      },
      +      "type": {
      +        "const": "request",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "snapshot"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "decision": {
      +        "enum": [
      +          "approved",
      +          "rejected"
      +        ],
      +        "type": "string"
      +      },
      +      "digest": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "decision",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "digest",
      +      "decision"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "digest": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "expired",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "digest"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / task / properties / messages / items / properties / from / format
      Removed value: -"email"
    • addedOutput schema / properties / task / properties / messages / items / properties / from / maxLength
      Added value: +320
    • changedOutput schema / properties / task / properties / messages / items / properties / from / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^[a-z0-9][a-z0-9._-]{0,62}@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*\\.?$"
    • removedOutput schema / properties / task / properties / messages / items / properties / to / format
      Removed value: -"email"
    • addedOutput schema / properties / task / properties / messages / items / properties / to / maxLength
      Added value: +320
    • changedOutput schema / properties / task / properties / messages / items / properties / to / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^[a-z0-9][a-z0-9._-]{0,62}@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*\\.?$"
    • removedOutput schema / properties / task / properties / parentTaskId / format
      Removed value: -"uuid"
    • removedOutput schema / properties / task / properties / parentTaskId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedOutput schema / properties / task / properties / to / format
      Removed value: -"email"
    • addedOutput schema / properties / task / properties / to / maxLength
      Added value: +320
    • changedOutput schema / properties / task / properties / to / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^[a-z0-9][a-z0-9._-]{0,62}@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*\\.?$"
  3. Addedv0.6.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already mark this as a non-idempotent, non-destructive, open-world mutation, so the baseline burden is lower. The description still adds substantial behavioral context the annotations lack: the 24-hour generation cap, the 7-day hard ceiling, and the lease-receipt reclaim rule. It reads like genuine lifecycle documentation rather than restating 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?

Two sentences, front-loaded with the core action before the caps and reclaim conditions. Dense but every clause carries distinct lifecycle information; the trailing lease-receipt clause is the only mildly heavy phrasing.

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?

An output schema exists, so return values need no explanation here, and the description covers the tricky lease/reclaim/expiry semantics an agent needs to call this correctly. It stops just short of naming sibling tools for renew/release, which is the remaining gap.

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

Parameters3/5

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

Schema coverage is 100% (both id and leaseSec carry descriptions including range and default), so the schema already does the heavy lifting and baseline 3 applies. The description adds the concept of a 'bounded lease' but no syntax or unit detail for leaseSec beyond what the schema states.

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?

States a specific verb and resource ('Claim a submitted task as its managed recipient for a bounded lease'), making the operation clear. It hints at the task_renew sibling ('cannot claim or renew') but never explicitly names the alternatives, so sibling differentiation is only partial.

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

Usage Guidelines3/5

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

It gives real when-conditions (24h per-generation cap, 7-day first-claim ceiling, reclaim allowed with an expired or released lease receipt), which is more than implied usage. However, it never routes the agent to task_renew, task_release, or task_decide for the adjacent operations, leaving alternative selection to inference.

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