Skip to main content
Glama

likePost

Like a feed post as the administrator who connected, never on behalf of a member. Returns the like. Fails when the administrator already likes the post, so check getPostLikes before calling again after a failure or timeout. Get postId from getPosts. Never invent UUIDs; only use values from prior tool responses.

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": {
      "postId": "<postId>"
    },
    "name": "likePost"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYesThe id of the feed post.

Output Schema

NameRequiredDescriptionDefault
likeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / like / properties / membership / properties / user / properties / type
      Added value: +{
      +  "description": "Whether the user is a person or an AI agent.",
      +  "enum": [
      +    "user",
      +    "agent"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / like / properties / membership / properties / user / required
      Previous value: -[
      -  "id"
      -]New value: +[
      +  "id",
      +  "type"
      +]
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

With annotations only declaring readOnlyHint=false and destructiveHint=false, the description adds the failure mode (fails when the administrator already likes the post), the return behavior ('Returns the like'), and the identity scoping that prevents the agent from acting on behalf of a member. These are non-obvious behavioral facts not derivable from the structured fields.

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?

Four short sentences, front-loaded with the operation and identity scope, then error recovery, then input sourcing. No filler; every clause either prevents a specific misuse or explains a failure state.

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?

An output schema exists, so return values need no elaboration, and the single required parameter is fully documented in the schema. The description covers the remaining gaps an agent needs: acting identity, duplicate-like failure, retry-safe workflow, and ID provenance.

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% for the single postId parameter, so the baseline is 3; the description adds provenance meaning by requiring the value come from getPosts rather than being fabricated. It stops short of describing UUID format or validation, but that is already in the schema pattern.

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 ('Like a feed post') plus the acting identity ('as the administrator who connected, never on behalf of a member'), which distinguishes it from the read-only sibling getPostLikes. An agent can identify exactly what the tool does without opening the 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?

Gives explicit before-call guidance ('check getPostLikes before calling again after a failure or timeout'), a source for the required input ('Get postId from getPosts'), and a prohibition with rationale ('Never invent UUIDs'). It also implicitly names the read alternative, so the when/when-not conditions are covered.

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