Skip to main content
Glama

Check who a teaching share would reach

preview_share_recipient
Read-onlyIdempotent

Read-only, for teachers: the check before share_teaching_course. It looks up who an email address belongs to and whether the course is ready, and changes or sends nothing. recipient.kind 'existing': the address belongs to a saved student (forThePerson.recipientName holds the saved name). 'new': the address is new to the teacher, and a preview with recipientName (the student's name from the teacher) gives the token. 'ambiguous' or 'inactive': it cannot be shared; the teacher sorts it out in soclever. previewToken ties a share to exactly this preview (this course, this address, this saved student or this new name) for 5 minutes, and share_teaching_course accepts it with the same courseId, recipientEmail, and studentId (existing) or recipientName (new). The share is meant to follow the teacher's yes to the name and address shown here; after 5 minutes, or any wait, a fresh preview gives a new token. readiness says what the student would see: how many lessons are published and which are not visible yet. Teaching lesson counts: published is what a new student sees now. unpublished lessons are "taken down by the teacher"; held and notPublished lessons are "held for review / not published yet", which is different from taken down. In notYetAvailable, lessons_unpublished means taken down by the teacher; lessons_held and lessons_not_published mean held for review / not published yet.

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": {
      "courseId": "<courseId>",
      "recipientEmail": "<recipientEmail>"
    },
    "name": "preview_share_recipient"
  }
}

Input Schema

NameRequiredDescriptionDefault
courseIdYesThe teaching course's id (from list_courses).
recipientNameNoA new student's name, as the teacher gave it (a preview with it gives the token once the address is new).
recipientEmailYesThe student's email address exactly as the person gave it.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description still adds real substance beyond them: the previewToken is bound to this course, address, and student for 5 minutes, that waiting or expiry requires a fresh preview, and that the share_teaching_course call must reuse courseId/recipientEmail plus studentId or recipientName. Minor redundancy in "changes or sends nothing," which restates readOnlyHint, keeps it from a 5.

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

Conciseness3/5

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

Front-loaded well with the read-only/teacher framing and the follow-up tool up top, but the lesson-count glossary is stated twice — once as prose and again as "In notYetAvailable, lessons_unpublished means..." — which is roughly 300 words for a 3-parameter read tool. The repetition of the taken-down vs held distinction is the main thing an editor would cut.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Even though an output schema exists and return values need not be spelled out, the description still explains the recipient.kind branches and the readiness/lesson-count vocabulary an agent needs to interpret results correctly. Nothing an agent needs in order to call this safely and read the outcome is missing.

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 already 100%, yet the description adds conditional semantics the schema does not: recipientName only matters when the address is new, and existing addresses instead resolve to studentId on the follow-up share call. Slight cost: studentId is described as if it belonged to this call's inputs when it is an argument of share_teaching_course, which could momentarily confuse the agent.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Read-only, for teachers: the check before share_teaching_course" names the operation, audience, and the sequencing relative to the sibling that performs the write. "It looks up who an email address belongs to and whether the course is ready" gives the specific lookups performed, so an agent can distinguish it from share_teaching_course without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly positions itself as the mandatory pre-flight for share_teaching_course and states that it "changes or sends nothing." It also gives the terminal branches: 'ambiguous' or 'inactive' means it cannot be shared and the teacher must resolve it in soclever, which tells the agent when to stop rather than retry.

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