Skip to main content
Glama

SalesHookAI

Reject timesheet

rejectTimesheet
Idempotent

Rejects a submitted timesheet by its id, as listed in the time tracking summary (owner/admin only).

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": {
      "timesheetId": "<timesheetId>"
    },
    "name": "rejectTimesheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoOptional reason for rejection
timesheetIdYesID of the timesheet to reject

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the description's added value is the authorization requirement (owner/admin only) and the status precondition, neither of which appears in structured fields. It does not say whether the rejection can be undone or whether the submitter is notified, but nothing contradicts the annotations.

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 carrying verb, resource, key parameter source and permission gate with no filler. Every clause earns its place.

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 mutation with no output schema, the definition covers precondition, authorization and id provenance; annotations cover the safety profile. Only the post-rejection state and effect on the submitter are left unstated, a minor gap.

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 the required timesheetId and optional notes are already documented. The description adds provenance for the id (it appears in the time tracking summary), which is meaning beyond the schema's 'ID of the timesheet to reject'.

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?

A concrete verb-plus-resource statement ('Rejects a submitted timesheet by its id') that an agent can distinguish from approveTimesheet by the verb alone. It does not name the sibling explicitly, so it stops just short of full differentiation.

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?

Supplies the key preconditions: the timesheet must be 'submitted' and the caller must be owner/admin. It also points to where the id comes from ('time tracking summary'). It lacks an explicit when-not or a pointer to an alternative flow (e.g. approving, or re-opening a rejected sheet).

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