Skip to main content
Glama
openagentemail

openagentemail

Claim Email Task

task_claim

Claim a submitted task as its managed recipient for a bounded lease of 30–3600 seconds. Reclaim with an expired or released lease receipt to keep working within the 24-hour and seven-day limits.

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. 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])?)*\\.?$"
  2. Addedv0.6.0

TDQS

A3.9/5.0
Behavior4/5

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

With annotations present (readOnlyHint=false, idempotentHint=false), the description still adds meaningful behavioral detail: the 24-hour per-generation cap, the seven-day no-claim/renew boundary, and the receipt requirement for reclaim. It does not contradict the annotations, and it provides more lifecycle context than the structured fields alone.

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 front-loaded with the primary purpose and packs the constraints into two sentences without filler. It loses a point because the second sentence is dense and uses undefined terms like 'generation' and 'lease receipt', which reduces readability even though nothing is wasted.

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?

For a two-parameter tool with a full input schema and an output schema, the description covers the core behavior, the lease window, and the reclaim precondition. It is slightly incomplete about what happens when a claim fails (e.g., already held lease) or how the authenticated receipt is supplied to the API, but the essentials are present.

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 description coverage is 100% and both id and leaseSec already have descriptive text, so the baseline applies. The description's lease/reclaim context loosely reinforces the meaning of leaseSec but does not add parameter-level detail beyond the schema.

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 first sentence uses a concrete verb ('Claim') and a resource ('a submitted task') plus the bounded-lease framing, which makes the core action identifiable and separates it from lifecycle siblings like task_renew and task_release. It is not a 5 because the domain terms 'managed recipient' and 'generation' are left undefined, and no sibling is explicitly named for contrast.

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 clear usage constraints: leases are bounded, capped at 24 hours, and barred after seven days from first claim, and it states the precondition that a working task may be reclaimed only with an authenticated expired or released lease receipt. It does not explicitly say when to prefer task_renew or task_release instead, so it falls short of explicit when/when-not guidance.

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