Skip to main content
Glama

Add time

add_time

Add a time entry to a ticket. Provide duration_min, or provide start_time + end_time to auto-calculate it. date defaults to today. Pass user_id to book the time FOR ANOTHER PERSON of your tenant (admin/team lead, or the project lead from the project's funding data only): the entry is marked as entered by you and unconfirmed; the person sees it in /app/timesheets, can change it, and confirms it by signing the monthly timesheet. Works in batch_tools (up to 200 entries).

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": {
      "ticket_id": "<ticket_id>"
    },
    "name": "add_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDate of the work in YYYY-MM-DD format (default: today)
user_idNoOptional: support_users.id of the person the time belongs to (same tenant). Omit for yourself. Booking for someone else requires admin/team lead or the project lead role.
categoryNoEffort category for plan-vs-actual: work = human work (default), steering = human time spent briefing/steering Claude, agent = Claude's own runtime
end_timeNoEnd time in HH:MM format (e.g. 11:30). Used with start_time to auto-calculate duration_min.
ticket_idYesTicket UUID
commit_shaNoOptional git commit SHA to link to this time entry
start_timeNoStart time in HH:MM format (e.g. 09:00). Used with end_time to auto-calculate duration_min.
descriptionNoOptional description of the work done
duration_minNoTime spent in minutes. Required unless start_time and end_time are both provided.
commit_repo_full_nameNoGitHub repo (owner/repo) the commit_sha belongs to — must already be linked to the ticket's project. Omit to use the project's default repo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, non-idempotent, non-destructive write. The description goes well beyond that: an on-behalf entry is marked as entered by the caller and left unconfirmed, the person sees it in /app/timesheets, may change it, and confirms by signing the monthly timesheet. It also discloses the 200-entry batch_tools limit, which is exactly the side-effect detail an agent needs.

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?

Front-loaded with the core action and the duration alternative before the more specialized on-behalf booking flow. Dense but each sentence carries information; the final sentence about batch_tools feels appended rather than integrated, and the user_id sentence is a long run-on.

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 10-parameter mutation tool with no output schema, the description covers the important gaps: how duration is supplied, who may book for whom, the confirmation lifecycle, and batch limits. It does not address failure modes such as invalid ticket_id or duplicate entries, which the annotations (idempotentHint=false) make relevant.

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%, so baseline is 3; the description earns an extra point by surfacing the cross-parameter rule (duration_min versus start_time + end_time), the date default, and the permission implications of user_id that the schema only states tersely. commit_sha and commit_repo_full_name semantics are left entirely to 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?

Opens with a specific verb and resource: 'Add a time entry to a ticket.' That is unambiguous and clearly a creation tool, distinct from update_time or add_plan_time by implication, though no sibling is named explicitly to route the agent.

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?

Gives concrete conditional guidance: supply duration_min, or start_time + end_time to auto-calculate; date defaults to today; pass user_id only for booking on behalf of someone else, with the required roles spelled out (admin/team lead, or project lead from the project's funding data). It lacks explicit when-not-to-use or a named alternative such as update_time.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources