Skip to main content
Glama

list_own_publications

List the publications you can publish to on Medium, returning each publication's id and name to use with publish_post.

Instructions

Read-only. Publications the authed user can publish to as editor or writer. Returns id + name pairs; use the id with publish_post's publication_id to publish into a publication. Requires the Medium integration token (MEDIUM_INTEGRATION_TOKEN).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual handler for list_own_publications in the MediumClient class. Calls GET /me to get the user ID, then GET /users/{uid}/publications to retrieve the list of publications the authenticated user can publish to.
    def list_own_publications(self) -> list[dict[str, Any]]:
        me = self._api(method="GET", path="/me")
        uid = me.get("id")
        if not uid:
            return []
        data = self._api(method="GET", path=f"/users/{uid}/publications")
        return data if isinstance(data, list) else []
  • MCP tool schema/registration for list_own_publications. Defines the tool description and input_schema (no required parameters).
    "list_own_publications": {
        "description": (
            "Read-only. Publications the authed user can publish to as editor or "
            "writer. Returns id + name pairs; use the id with publish_post's "
            "publication_id to publish into a publication. Requires the Medium "
            "integration token (MEDIUM_INTEGRATION_TOKEN)."
        ),
        "input_schema": {"type": "object", "properties": {}},
    },
  • Dispatch logic in _dispatch() that routes the 'list_own_publications' tool name to c.list_own_publications() on the MediumClient.
    if name == "list_own_publications":
        return c.list_own_publications()
  • CLI command 'profile publications' that wraps c.list_own_publications() for command-line usage.
    @profile_app.command("publications")
    def profile_publications() -> None:
        """Publications you can publish to (integration token)."""
        with _client() as c:
            _json(c.list_own_publications())
Behavior4/5

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

The description declares the tool as read-only, which is a key behavioral trait. It also specifies the authentication requirement (Medium integration token). Without annotations, it effectively discloses the essential behaviors, though it lacks details on potential limitations like pagination or rate limits.

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?

The description is extremely concise at two sentences, with the most critical information (read-only nature) placed first. Every sentence adds value without waste.

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?

Given the tool's simplicity (zero parameters, no output schema), the description is complete. It covers purpose, return format, usage recommendation, and auth requirement, leaving no obvious gaps for the agent.

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?

The input schema has zero parameters, so no parameter documentation is needed. The description adds no parameter-specific info, but the baseline for no parameters is 4. The description compensates by explaining the return value and usage context.

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 clearly states the tool lists publications where the user can publish as editor/writer, and specifies the return format (id + name pairs). It distinguishes from siblings like list_posts and list_responses, which serve different purposes.

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 explains that the id can be used with publish_post's publication_id, providing actionable guidance. It does not explicitly mention alternatives, but no other sibling tool lists publications, so the context is sufficient.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/06ketan/medium-ops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server