Skip to main content
Glama

Get daily draft

get_daily_draft
Read-only

Read a daily draft and all its immutable revisions by draft ID to review changes and support approval decisions.

Instructions

Read a daily draft and all of its immutable revisions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "draftId": "<draftId>"
    },
    "name": "get_daily_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftIdYes

Output Schema

NameRequiredDescriptionDefault
okYes
codeNo
draftNo
messageNo
revisionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv0.5.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / draftId / pattern
      Added 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 / draft / properties / approvedAt / anyOf
      Previous value: -[
      -  {
      -    "format": "date-time",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "date-time",
      +    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / draft / properties / approvedVersion / anyOf
      Previous value: -[
      -  {
      -    "exclusiveMinimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "maximum": 9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / draft / properties / createdAt / pattern
      Added value: +"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
    • addedOutput schema / properties / draft / properties / draftId / pattern
      Added 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)$"
    • addedOutput schema / properties / draft / properties / updatedAt / pattern
      Added value: +"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
    • addedOutput schema / properties / draft / properties / version / maximum
      Added value: +9007199254740991
    • removedOutput schema / properties / revisions / items / $ref
      Removed value: -"#/properties/draft"
    • addedOutput schema / properties / revisions / items / additionalProperties
      Added value: +false
    • addedOutput schema / properties / revisions / items / properties
      Added value: +{
      +  "approvalMethod": {
      +    "anyOf": [
      +      {
      +        "enum": [
      +          "MCP_ELICITATION",
      +          "EXPLICIT_CONFIRMATION_FALLBACK"
      +        ],
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "approvalWarnings": {
      +    "items": {
      +      "enum": [
      +        "SOURCE_CHANGED_AFTER_DRAFT"
      +      ],
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "approvedAt": {
      +    "anyOf": [
      +      {
      +        "format": "date-time",
      +        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "approvedVersion": {
      +    "anyOf": [
      +      {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "createdAt": {
      +    "format": "date-time",
      +    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +    "type": "string"
      +  },
      +  "draftId": {
      +    "format": "uuid",
      +    "pattern": "^([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)$",
      +    "type": "string"
      +  },
      +  "nextActions": {
      +    "items": {
      +      "maxLength": 1000,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "maxItems": 100,
      +    "type": "array"
      +  },
      +  "sourceEventIds": {
      +    "items": {
      +      "pattern": "^[0-9a-f]{64}$",
      +      "type": "string"
      +    },
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  "sourceFingerprint": {
      +    "pattern": "^[0-9a-f]{64}$",
      +    "type": "string"
      +  },
      +  "status": {
      +    "enum": [
      +      "PENDING",
      +      "APPROVED",
      +      "REJECTED"
      +    ],
      +    "type": "string"
      +  },
      +  "summary": {
      +    "maxLength": 20000,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "timezone": {
      +    "type": "string"
      +  },
      +  "updatedAt": {
      +    "format": "date-time",
      +    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +    "type": "string"
      +  },
      +  "version": {
      +    "exclusiveMinimum": 0,
      +    "maximum": 9007199254740991,
      +    "type": "integer"
      +  },
      +  "workDate": {
      +    "type": "string"
      +  },
      +  "workItems": {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "details": {
      +          "maxLength": 10000,
      +          "type": "string"
      +        },
      +        "repositoryId": {
      +          "pattern": "^[0-9a-f]{64}$",
      +          "type": "string"
      +        },
      +        "sourceEventIds": {
      +          "items": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          },
      +          "minItems": 1,
      +          "type": "array"
      +        },
      +        "title": {
      +          "maxLength": 500,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "verificationStatus": {
      +          "enum": [
      +            "REMOTE_MATCH",
      +            "UNCONFIRMED"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "repositoryId",
      +        "title",
      +        "details",
      +        "sourceEventIds",
      +        "verificationStatus"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 100,
      +    "minItems": 1,
      +    "type": "array"
      +  }
      +}
    • addedOutput schema / properties / revisions / items / required
      Added value: +[
      +  "draftId",
      +  "workDate",
      +  "timezone",
      +  "summary",
      +  "workItems",
      +  "nextActions",
      +  "sourceEventIds",
      +  "sourceFingerprint",
      +  "version",
      +  "status",
      +  "createdAt",
      +  "updatedAt",
      +  "approvedAt",
      +  "approvedVersion",
      +  "approvalMethod",
      +  "approvalWarnings"
      +]
    • addedOutput schema / properties / revisions / items / type
      Added value: +"object"
  2. First observedv0.4.1

TDQS

B3.4/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a non-mutating read, so the description's job is lighter; it adds one useful behavioral fact — that revisions are immutable and are returned as part of the read. It says nothing about behavior when the draftId does not exist, ordering of revisions, or whether revisions are paginated or truncated.

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

Conciseness5/5

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

A single front-loaded sentence with the verb first and no filler. For a one-parameter read with annotations and an output schema present, this is an appropriate length.

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?

Output schema exists, so return value detail and annotations cover safety, leaving little the description must carry. The main remaining gap is the absence of any guidance on the sole parameter and on failure behavior for an unknown draftId.

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

Parameters2/5

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

There is one required parameter (draftId) with 0% schema description coverage, so the description should compensate by clarifying what identifier is expected or where it comes from; it does not mention the parameter at all. The schema's uuid format/pattern makes the type self-evident, which limits the damage but does not fill the documentation gap.

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 (Read) and resource (a daily draft) plus a scope qualifier: it returns the draft together with all of its immutable revisions. This differentiates it implicitly from list_daily_drafts (a collection listing) and get_daily_activity, though no sibling is named explicitly.

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?

Usage is implied rather than stated: the agent can infer it should call this when it needs one specific draft plus its revision history, not a listing. There is no explicit when/when-not guidance and no alternative tool is named (e.g., versus list_daily_drafts or get_daily_activity).

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