Skip to main content
Glama

Assign substitute

assign_substitute

Assign a substitute to a substitution request (marks it filled). Refuses if a required_specialty applies and the substitute lacks a matching active credential.

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": {
      "substitution_id": "<substitution_id>",
      "substitute_instructor_id": "<substitute_instructor_id>"
    },
    "name": "assign_substitute"
  }
}

Input Schema

NameRequiredDescriptionDefault
substitution_idYes
required_specialtyNoOverride/confirm the specialty to enforce; defaults to the request's.
substitute_instructor_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive mutation, and the description adds genuine value beyond that: it discloses the side effect (request becomes filled) and a concrete business-rule failure mode involving credential checks. It stops short of saying what happens on a second call to an already-filled request or what error/return shape is produced on refusal.

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?

Two sentences, both front-loaded: the action and its effect first, then the refusal condition. Nothing is repeated from the title or the schema, and there is no filler.

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 three-parameter mutation with annotations covering the safety profile and no output schema, the description supplies the essential side effect and the one blocking rule. It is slightly thin on prerequisite state (must the request still be unfilled?) and on the error/return surface when the credential check fails, but nothing critical to invoking it correctly is missing.

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 only 33%, with only required_specialty documented in the schema, and the description adds no meaning for substitution_id or substitute_instructor_id beyond their names. The description does clarify the consequence of required_specialty (it is enforced, and failure blocks the assignment), which is the most valuable clarification available, but the coverage gap is not fully compensated.

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 description pairs a specific verb and resource ("Assign a substitute to a substitution request") with the resulting state change ("marks it filled"), so an agent knows this mutates a request rather than creating one. It does not explicitly contrast with the sibling request_substitute, so the distinction between creating and filling a request must be inferred.

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?

The precondition for invocation is stated clearly: the tool refuses when a required_specialty applies and the substitute lacks a matching active credential. However, there is no guidance on when to call this versus request_substitute, nor on the state a request must be in (open/pending) before assignment makes sense.

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