Skip to main content
Glama

getPostLikes

Read-only

List who liked one feed post by postId, newest like first. 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": "getPostLikes"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYesThe id of the feed post.

Output Schema

NameRequiredDescriptionDefault
likesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / likes / items / 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 / likes / items / properties / membership / properties / user / required
      Previous value: -[
      -  "id"
      -]New value: +[
      +  "id",
      +  "type"
      +]
  2. 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 readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior beyond them: result ordering (newest like first) and the ID-provenance rule, which prevents fabricated identifiers. No pagination behavior is mentioned.

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 short sentences, zero filler. The core action and ordering come first, with the sourcing caveat second, so the most important information is front-loaded.

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 read tool with annotations and an output schema, the description covers everything an agent needs: what is returned, the sort order, and where the required ID must come from. Return-value details are correctly left to the output schema.

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 single postId field is already documented with a UUID format and pattern, so the baseline is 3. The description adds meaning on top by telling the agent where to obtain a valid postId and forbidding invented UUIDs.

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?

The description gives a specific verb and resource ('List who liked one feed post') plus the lookup key (postId) and the ordering ('newest like first'). That is enough to separate it from getPostComments (comments) and likePost (a mutation) without opening any schema.

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?

It states the prerequisite for the one input ('Get postId from getPosts') and a hard constraint ('Never invent UUIDs; only use values from prior tool responses'). It does not name an alternative tool or state when not to use it, so it falls short of a full 5.

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