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. The activity feed names this agent as the one who asked. 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. 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 is taken), 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 is taken, 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.

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": {
      "visitBriefId": "<visitBriefId>"
    },
    "name": "lnkdrp_write_visit_brief"
  }
}

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.8/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing credit cost (1 Standard, 3 Advanced, free-tier brief free), who is billed, that no email is sent, and the exact return payload (visit with brief, creditsCharged, creditsRemaining). The refusal taxonomy — out_of_credits, validation, not_found, upstream, forbidden — with which cases take no credits, is unusually thorough for a mutation tool. There is mild tension with idempotentHint=true since a repeat call is refused by validation, but state is unchanged and no credits are taken, so this is not a contradiction.

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 purpose and the input's provenance, then cost, returns, and refusals in a logical order; nearly every clause earns its place. The single dense paragraph makes the refusal list harder to scan than a short enumerated form would be, and the trailing untrusted-content note, while security-relevant, reads as appended boilerplate.

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?

For a one-parameter mutation with no output schema, the description supplies everything an agent needs: how to source the id, eligibility, cost and billing, the shape of the return value, and the full set of refusal conditions with recovery implications. Nothing material is left to inference.

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% and the pattern (24 hex chars) is already documented, so the schema carries the syntax burden. The description adds real value by explaining what the id refers to — a recentVisits row whose status is recap or failed — which the schema only partially restates. It does not add error-handling detail for malformed ids beyond the validation refusal.

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") plus the scoping condition ("that ended without one"), which cleanly separates it from the read-only siblings like lnkdrp_get_share_stats that only surface visits. The app-equivalence anchor ("the same as Write the brief on a reader's page") gives an agent a concrete mental model.

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 says which visits are eligible (status recap or failed) and exactly how to obtain the required id via lnkdrp_get_share_stats or lnkdrp_get_project_stats with includeVisits. It also states the negative case under validation: the call is refused if the visit already has its brief or one is being written, so the agent knows when not to call.

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