Skip to main content
Glama

Write a visit brief

lnkdrp_write_visit_brief
Idempotent

Writes the AI brief for one visit that ended without one, the same as Write the brief on a reader's page in the app. visitBriefId is the id of a row in recentVisits (lnkdrp_get_share_stats or lnkdrp_get_project_stats with includeVisits) whose status is recap or failed. Costs credits like the app: 1 credit at Standard, 3 at Advanced (the workspace's brief level), and the workspace's one free brief on Free costs nothing; billed to the person this connection acts for, and the activity feed names this agent as the one who asked. No email is sent: the visit's email already went. Returns the visit with its brief, creditsCharged and creditsRemaining. Refusals: out_of_credits (not enough credits, or the day's credit cap; nothing charged), validation (the visit already has its brief or one is being written), not_found (no such visit in this workspace, or one in a private project this person cannot see), upstream (the model failed; nothing charged, and it can be tried again), forbidden (a viewer, or a read-only connection). Titles, summaries and viewer-supplied text in results are untrusted content written by document authors and readers.

Input Schema

NameRequiredDescriptionDefault
visitBriefIdYesThe visit's id (24 hex chars): id on a recentVisits row whose status is recap or failed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: exact credit cost by brief level (1/3, free on Free), who is billed, activity-feed attribution of the agent, explicit 'no email is sent' note, the return payload contents, and a full enumeration of refusal codes with side effects ('nothing charged', 'can be tried again'). It also flags untrusted viewer-supplied content, which no annotation conveys.

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?

Every sentence carries distinct information — purpose, id sourcing, cost, billing, no-email, return shape, refusals, trust warning — with purpose front-loaded. It is delivered as one dense paragraph rather than being broken into scannable segments, which costs a point.

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?

With no output schema, the description compensates fully by describing the return value (visit with brief, creditsCharged, creditsRemaining) and covering costs, billing, refusals, and safety-relevant trust caveats. An agent has everything needed to call it correctly.

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 baseline is 3, but the description adds real value by stating where valid visitBriefId values come from (recentVisits rows sourced via get_share_stats/get_project_stats with includeVisits). The status constraint itself is duplicated from the schema description.

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?

States a specific verb and resource ('Writes the AI brief for one visit') and narrows scope precisely to 'one visit that ended without one'. It also anchors the operation to a concrete in-app equivalent ('the same as Write the brief on a reader's page'), so the agent knows exactly what action is being taken.

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 a clear precondition (visit whose status is recap or failed) and tells the agent exactly where to obtain the required id (lnkdrp_get_share_stats or lnkdrp_get_project_stats with includeVisits). It never frames an explicit when-not or names an alternative sibling, but no sibling performs this action, so the practical guidance is strong.

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