Skip to content

Conversation

@jirispilka
Copy link
Collaborator

@jirispilka jirispilka commented Jul 29, 2025

  • fix: standardize tool description formatting with string concatenation
  • feat: Return markdown from get-actor-details.ts
  • feat: Return markdown search-actors tools
  • feat: Improve search tool description

close: #181

@github-actions github-actions bot added the t-ai Issues owned by the AI team. label Jul 29, 2025
@jirispilka jirispilka requested a review from Copilot July 29, 2025 13:33
@jirispilka
Copy link
Collaborator Author

image image

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors Actor search and detail tools to return markdown-formatted Actor cards instead of JSON objects, improving user-friendliness and readability. The changes standardize tool description formatting using string concatenation and introduce a new utility for creating Actor cards in markdown format.

  • Replaces JSON responses with markdown Actor cards for better user experience
  • Standardizes tool descriptions using string concatenation for consistency
  • Creates new utility functions for formatting Actor information as markdown cards

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/utils/actor-card.ts New utility file for formatting Actor information into markdown cards
src/tools/store_collection.ts Updated search actors tool to return markdown cards instead of JSON
src/tools/get-actor-details.ts Updated get actor details tool to return markdown cards instead of JSON
src/tools/search-apify-docs.ts Standardized tool description formatting with string concatenation
src/tools/run_collection.ts Standardized tool description formatting with string concatenation
src/tools/helpers.ts Standardized tool description formatting with string concatenation
src/tools/actor.ts Standardized tool description formatting and removed unused code
src/const.ts Added Apify Store URL constant
tests/integration/suite.ts Removed type import that's no longer needed
README.md Updated documentation sections for MCP server setup

jirispilka and others added 3 commits July 29, 2025 16:09
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jirispilka jirispilka requested review from MQ37 and MichalKalita July 29, 2025 14:12
Copy link
Contributor

@MQ37 MQ37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add back the failed number of runs stats that was in the original implementation. Otherwise LGTM 👍

description: `Gets a paginated list of Actor runs with run details, datasetId, and keyValueStoreId.
Filter by status: READY (not allocated), RUNNING (executing), SUCCEEDED (finished), FAILED (failed),
TIMING-OUT (timing out), TIMED-OUT (timed out), ABORTING (being aborted), ABORTED (aborted).`,
description: `Gets a paginated list of Actor runs with run details, datasetId, and keyValueStoreId.\n`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we use the + to join the strings if we can just use single multiline ``` string?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other tools already used that. I find noindent ugly. I'm sorry. If we agree on using template literals with noindent across the codebase, I'll adapt.

So what do you say @MQ37 @MichalKalita

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also like how the + looks but updating that and splitting the lines is a hassle. Let's keep that for now 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually prefer ``` because of simplicity. It's easier to copy/paste content.
But there is no need to refactor all places and update them.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I've created issue for that: #197

@jirispilka jirispilka requested a review from MQ37 July 29, 2025 20:11
Copy link
Contributor

@MQ37 MQ37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@jirispilka jirispilka merged commit bfd9016 into master Jul 30, 2025
2 checks passed
@jirispilka jirispilka deleted the feat/actor-markdown-output branch July 30, 2025 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-ai Issues owned by the AI team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Present search and Actor details in human readable format

3 participants